Research notes

This commit is contained in:
2020-04-04 16:04:40 +02:00
parent cb2d31e033
commit 558be67f61
11 changed files with 248 additions and 9 deletions

25
notes/packet_writeup.md Normal file
View 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
View 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)

View File

@@ -0,0 +1,3 @@
0x07 UNRELIABLE_SEQUENCED
0x0A RELIABLE_SEQUENCED
0x09 RELIABLE_ORDERED