#!/usr/bin/env python from pwn import * p = process('./indexing') p.recvuntil('Index: ') p.sendline() # TODO (must be string) # Give value p.recvuntil('Value: ') p.sendline() # TODO (must be string) p.interactive()