solved secure

This commit is contained in:
Richard
2023-11-18 20:24:09 +01:00
parent ffedfe533d
commit 843b9f68c9
2 changed files with 135 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
import socket
from struct import pack, unpack
from time import time, sleep
from binascii import unhexlify
def sock():
addr = ("localhost", 13370)
@@ -9,8 +10,10 @@ def sock():
return s
def test(s):
s.sendall(b"\x0010x snoeperfloep,123x sapperflap\n")
s.sendall(b"\x04\x01\x0010x snoeperfloep,123x sapperflap\x11")
print(s.recv(1024))
s.close()
test(sock())
def insane(s): s.sendall(unhexlify("03050105050500"))
insane(sock())