希望用 pwn.gdb 调试程序,但是Linux虚拟机是server版没有图形界面,所以找不到 Terminal 或 gnome-terminal。可以使用 tmux 进行分屏操作。

context.terminal = ['tmux', 'splitw', '-h']
p = process('./vul')
gdb.attach(proc.pidof(p)[0], gdbscript="b main")

在 bash 里运行还是不行,需要先进入 tmux 再执行上述程序才可以打开新的 tmux。运行起来还是很酷的。
虚拟机中调用 pwn.gdb 一直 waiting for debugger

相关文章:

  • 2021-12-17
  • 2021-07-28
  • 2021-06-14
  • 2021-12-12
  • 2022-12-23
  • 2021-08-04
  • 2021-07-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-16
  • 2021-09-24
  • 2021-09-30
  • 2022-12-23
相关资源
相似解决方案