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

前端之家收集整理的这篇文章主要介绍了pwntools 解决安装terminator后 unable to find a shell前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

背景:

@H_301_2@安装了terminator之后,在python脚本使用pwntools中的gdbattach程序会遇到错误

@H_301_2@日志信息如下:

@H_301_2@pythonexp.py

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

@H_301_2@

@H_301_2@起的shell里报错:

@H_301_2@Unabletofindashell

@H_301_2@

解决方法

@H_301_2@在python脚本中,设置

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

原文链接:https://www.f2er.com/bash/389810.html

猜你在找的Bash相关文章