Research notes
This commit is contained in:
30
test.py
Normal file
30
test.py
Normal 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)
|
||||
Reference in New Issue
Block a user