A protocol decryption and dissection tool for the game 'Path of Exile'
It looks something like this:
As well as decrypting the login and game streams, it breaks it up into its constituent packets and outputs them to disk and the UI dissection pane. Further analysis of each packet is provided (where available - this is an ongoing reverse engineering task) and can be browsed in the UI. It can also be read from a named pipe for access with external tools.
For example, this Python script will print changes to your characters health
import json
import codecs
def connectToPipe():
pipename = "\\\\.\\pipe\\ExilePipe"
pipe = codecs.open(pipename, 'rb', encoding='utf-16-le')
return pipe
if __name__ == "__main__":
currentPlayerID = 0
pipe = connectToPipe()
while True:
ln = pipe.readline()
if len(ln) == 0: continue
js = json.loads(ln)
if js['MsgType'] == 'SRV_NOTIFY_PLAYERID':
currentPlayerID = js['Payload']['ID1']
continue
if js['MsgType'] == 'SRV_MOBILE_UPDATE_HMS':
if js['Payload']['Stat'] == 0: #life
print(js['Payload']['NewValue'])
continue
For the long explanation of what it is and how it works read this
Version 1.0.1
Memory changes:
Packets now use less memory.
Filtered messages were consuming far too much memory so they are now discarded.
Previously filtered messages will not return when the filters are cleared. Refer to the logfiles to recover them if needed.
I'll implement a hex->packet reconstruction utility soon.
Handle more packets
0x3b - CLI_USE_ITEM_ON_OBJ
0x81 - SRV_CHANGE_LIGHTING
0x82 - CLI_TRANSFER_ITEM
0xdb - SRV_NOTIFY_AFK
0xf6 - SRV_UNK_0xf6
Improve existing packets
0x75 - SRV_MOVE_OBJECT
Minor display/naming improvements:
0x70 - SRV_GRANTED_XP
0xA3 - CLI_UNK_A3
0xF3 - CLI_UNK_F3
exileSniffer doesn't modify the Path of Exile binary or its memory. There are no code caves or hardcoded offsets to pointer chains or any of that awful stuff - just some heureustics to read the session key from process memory during login. It then closes the process handle and never interacts with it again (or until the player logs out). All the other information is obtained by network sniffing.
(SHA256 = 84821EA23D0B117C761FB79BADE5136D63ED9A0F3FC347397C4D2B3E7684DC23)
Be running Windows. Unzip the archive with 7zip.
Make sure WinPcap is installed. If you can sniff with wireshark, you should be able to sniff with this.
If you get a message about wpcap.dll not being found - you need to install winpcap.
Run exilesniffer.exe. Login to Eath of Exile.
exileSniffer must be running before you log in to your account.
Once you have logged in, wait for the decryption to sync up.
Once that is done the packet list will be displayed
You can now press play and decrypt the game stream.
Much of the indepth display of packet contents relies on PyPoE extracted game data. This data is provided as ggpk_exports.json, but you can generate your own with the provided gen_ggpk_exports.py if you have PyPoE setup for your Python installation.
I've occasionally encountered a bug where the transition from login stream to game stream doesn't happen, but haven't narrowed down the cause yet.
Many packet types are not analysed yet. If you notice a new packet (there are many!) you are welcome to submit pull requests, even updates to messageTypes.json are useful.