remote("ip", port)
process("Fun")
context.log_level=‘DEBUG‘
gdb.attach(p)
send(payload) 发送payload
sendline(payload) 发送payload,并进行换行(末尾\n)
sendafter(some_string, payload) 接收到 some_string 后, 发送你的 payload
recvn(N) 接受 N(数字) 字符
recvline() 接收一行输出
recvlines(N) 接收 N(数字) 行输出
recvuntil(some_string) 接收到 some_string 为止
symbols[‘a_function‘] 找到 a_function 的地址
got[‘a_function‘] 找到 a_function的 got
plt[‘a_function‘] 找到 a_function 的 plt
next(e.search("some_characters")) 找到包含 some_characters(字符串,汇编代码或者某个数值)的地址.
原文:https://www.cnblogs.com/0xHack/p/10741351.html