From a56b3ea671e9cc74b3f9ea723bc149e83212b998 Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 30 Dec 2018 16:06:06 -0500 Subject: pre-send the auth details to map servers instead of blindly trusting 0x0072 --- tools/protocol.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'tools') diff --git a/tools/protocol.py b/tools/protocol.py index 2940744..413bb67 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -6231,6 +6231,38 @@ def build_context(): Party leader was changed. ''', ) + char_map.s(0x3829, 'account auth', + fixed=[ + at(0, u16, 'packet id'), + at(2, account_id, 'account id'), + at(6, char_id, 'char id'), + at(10, u32, 'login id1'), + at(14, u32, 'login id2'), + at(18, ip4, 'ip'), + ], + fixed_size=22, + pre=[], + post=[], + desc=''' + send auth data to map server + ''', + ) + char_map.r(0x3830, 'account auth reply', + fixed=[ + at(0, u16, 'packet id'), + at(2, account_id, 'account id'), + at(6, char_id, 'char id'), + at(10, u32, 'login id1'), + at(14, u32, 'login id2'), + at(18, ip4, 'ip'), + ], + fixed_size=22, + pre=[], + post=[], + desc=''' + reply to char server + ''', + ) # TOC_MISC # any client -- cgit v1.2.3-60-g2f50