QuaS
Cykotitan Pwned =/
Hey folks.
Do any of you have the idea how to decompress deflated XTEA decoded server packet?
The packet structure is:
As I am able to decrypt XTEA payload it get me:
Now I am stuck on decrypted XTEA payload which has compression byte indicating compression.
It seems to be compressed with deflate huffman compression, yet no matter how hard I try to mangle payload I can't inflate it back.
I looked up all the things I were able to find, including:
There must be something more here. I am kind of stuck.
Deflate algorithm screams that the compressed data header is invalid.
Any ideas?
Do any of you have the idea how to decompress deflated XTEA decoded server packet?
The packet structure is:
Code:
2 byte packet length (standard)
2 byte sequence number (each packet has this number incremented)
2 byte (or two 1 byte) indicator about compression - 0x00 and 0x00 for uncompressed and 0x00 0xC0 for compressed packet
(packet length - 6) bytes - rest of packet XTEA encrypted.
As I am able to decrypt XTEA payload it get me:
Code:
2 byte decrypted payload length
payload length bytes - decrypted xtea packet
some padding XTEA related bytes (up to 7, as XTEA encryption requires % 8 == 0)
Now I am stuck on decrypted XTEA payload which has compression byte indicating compression.
It seems to be compressed with deflate huffman compression, yet no matter how hard I try to mangle payload I can't inflate it back.
I looked up all the things I were able to find, including:
Protocol Version 1111
With this morning's update, CipSoft made some changes to their packet structure. They removed the Adler-32 checksum and replaced it with an incremental counter (it's still four bytes at the same index). This goes for both client and server packets. They also added support for compressing packets...
otland.net
Flash-News/scripts/tibia/network/NetworkPacketReader.as at master · comedinha/Flash-News
Check Tibia Flash Changes. Contribute to comedinha/Flash-News development by creating an account on GitHub.
github.com
There must be something more here. I am kind of stuck.
Deflate algorithm screams that the compressed data header is invalid.
Any ideas?