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

30
test.py Normal file
View File

@@ -0,0 +1,30 @@
from sampy.raknet.bitstream import Bitstream
a = Bitstream()
"""
a.buffer.append(0x42)
a.buffer.append(0x13)
a.buffer.append(0xFF)
a.buffer.append(0xAC)
a.buffer.append(0x00)
a.buffer.append(0x69)
"""
"""
a.write(1)
a.write(0)
a.write(1)
a.write(1)
a.write(1)
a.write(1)
a.write(0)
a.write(1)
a.write(1)
"""
data = [int(x, 16) for x in "00 00 42 90 0b 61 61 61 61 62 62 62 62 63 63 63 63 66 66 66 66 00".split(" ")]
for b in data:
a.buffer.append(b)
print(a)