gipu/polictf/tea_cversion/test.py

12 lines
195 B
Python
Raw Normal View History

from pwn import *
r = remote("127.0.0.1", 8888)
with open("./encrypted") as f:
data = f.read()
print(r.recv())
r.send("{}\n".format(len(data)))
r.send("{}\n".format(data))
print(r.recv())