范例:

from pwn import *
 
#connect to server
r = process('./add')    # localhost binary
r = remote('140.113.0.3', 8080)    # remote binary
 
s = r.recvuntil(':')    # receive from binary until ':'
print '1:'+s
 
r.sendline('3 5')    # send to server
 
r.interactive()    #switch to interactive mode