pwntools 解决安装terminator后 unable to find a shell

来源:互联网 发布:imgur知乎 编辑:程序博客网 时间:2024/05/21 14:55

背景:

安装了terminator之后,在python脚本使用pwntools中的gdb attach程序会遇到错误。

日志信息如下:

python exp.py

[*] running in new terminal: /usr/bin/gdb -q  "/home/thinkycx/Desktop/20171104pwn/simple_login" 111121
[\] Waiting for debugger


起的shell里报错:

Unable to find a shell


解决方法:

在python脚本中,设置

context.terminal = ['terminator','-x','sh','-c']

原创粉丝点击