Research notes
This commit is contained in:
25
notes/packet_writeup.md
Normal file
25
notes/packet_writeup.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# General packet
|
||||
## Client to server spesific
|
||||
* Encode (encrypt) data
|
||||
* use first byte as checksum
|
||||
* every byte ^ 0xAA added together
|
||||
* xor
|
||||
* Server port ^ 0xCCCC
|
||||
* Every other byte
|
||||
* Lookup table (use byte as indexing value)
|
||||
|
||||
|
||||
## Shared
|
||||
* Can be internal packet
|
||||
|
||||
# Internal packet
|
||||
|condition|name|bit length|type|notes|
|
||||
|---|---|---|---|---|
|
||||
||messageNumber|0x10|ushort||
|
||||
||reliability|0x04|uchar|Has to be over 5 (value > 5)|
|
||||
|reliability in (7, 10, 9)|orderingChannel|0x05|||
|
||||
|reliability in (7, 10, 9)|orderingIndex|0x10|ushort||
|
||||
||isSplitPacket|0x01|bool|Drop packet as we no longer support split packet?|
|
||||
|isSplitPacket == 0|dataBitLength|0x10|ushort||
|
||||
|isSplitPacket == 0|data|dataBitLength|uchar*||
|
||||
|
||||
13
notes/packetlist.txt
Normal file
13
notes/packetlist.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
0x07 ID_PING
|
||||
0x08 ID_PING_OPEN_CONNECTIONS
|
||||
0x0B ID_CONNECTION_REQUEST
|
||||
0x18 ID_OPEN_CONNECTION_REQUEST
|
||||
0x19 ID_OPEN_CONNECTION_REPLY
|
||||
0x1D ID_CONNECTION_ATTEMPT_FAILED
|
||||
0x1F ID_NO_FREE_INCOMING_CONNECTIONS
|
||||
0x24 ID_CONNECTION_BANNED
|
||||
0x25 ID_INVALID_PASSWORD
|
||||
0x27 ID_PONG
|
||||
0x37 ID_ADVERTISE_SYSTEM
|
||||
|
||||
0x26 ID_MODIFIED_PACKET # default behavior (did not find the packet||could not handle because not found)
|
||||
3
notes/reliabilityLayer.txt
Normal file
3
notes/reliabilityLayer.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
0x07 UNRELIABLE_SEQUENCED
|
||||
0x0A RELIABLE_SEQUENCED
|
||||
0x09 RELIABLE_ORDERED
|
||||
Reference in New Issue
Block a user