PwnTools的官网如下:http://pwntools.com/ 安装方法是使用pip命令,pip install pwn。这样就可以安装上pwn库了。使用时用from pwn import *来进行调用。 连接 本地process()、远程remote()。对于remote函数可以接url并且指定端口。 IO模块 下面给出了PwnTools中的主要IO函
CTF-二进制从入门到放弃(三)-pwntools的使用 1 2frompwnimport*3fromctypesimport*4p=remote(url,port) p=process() ==linux.nc5p.recv([bytes]) p.recvuntil() p.recvline()6p.send() p.sendline() p.sendlineafter(str,payload)7p.interactive()8#string to bytes9#str.encode() bytes.decode() b'...