md5_hashcheck.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //===== rAthena Documentation ================================
  2. //= MD5 Hash Check
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20140208
  7. //===== Description: =========================================
  8. //= This file outlines the login server's MD5 hash check.
  9. //============================================================
  10. The login server is able to perform a check of the client's MD5 hash.
  11. This will ensure that a user has not tampered with the client and that
  12. the client is the one specific to your server.
  13. The client can only send the correct MD5 hash to the server on certain
  14. server types, so a client diff is required to ensure the hash is sent.
  15. Please refer to your client diff tool manual for the appropriate patch,
  16. called "Force Send Client Hash Packet" or a similar name. A link
  17. containing the WeeDiffGen plugin can be found at:
  18. http://rathena.org/board/topic/70841-r16771-client-md5-hash-check/
  19. The server-side settings for the hash check are located in
  20. 'conf\login_athena.conf':
  21. // Client MD5 hash check
  22. // If turned on, the login server will check if the client's hash matches
  23. // the value below, and will not connect tampered clients.
  24. // Note: see 'doc/md5_hashcheck.txt' for more details.
  25. client_hash_check: off
  26. // Client MD5 hashes
  27. // The client with the specified hash can be used to log in by players with
  28. // a group_id equal to or greater than the given value.
  29. // If you specify 'disabled' as hash, players with a group_id greater than or
  30. // equal to the given value will be able to log in regardless of hash (and even
  31. // if their client does not send a hash at all.)
  32. // Format: group_id, hash
  33. // Note: see 'doc/md5_hashcheck.txt' for more details.
  34. client_hash: 0, 113e195e6c051bb1cfb12a644bb084c5
  35. client_hash: 10, cb1ea78023d337c38e8ba5124e2338ae
  36. client_hash: 99, disabled
  37. To enable MD5 hash checks, set 'client_hash_check' to 'on' and add one
  38. 'client_hash' entry for each client you want to use.
  39. The group_id can be any of the groups in 'conf/groups.conf', and it is
  40. useful in case if you want to allow GMs to use a different client
  41. than normal players; for example, a GM client could be hexed
  42. differently, perhaps with dual-clienting enabled and chat flood
  43. disabled.
  44. You will need to replace the example MD5 hashes with the actual hash of
  45. your client. You can use any MD5 hash tools to generate it, e.g.:
  46. - md5sum (command line) on linux
  47. - WinMD5 on Windows
  48. - md5 (command line) on Mac OS X