You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generated a simple script with pwn template ./a.out > xpl.py. When running the script with GDB everything works just find. When I add the following line as usual: context.terminal = "tmux splitw -h".split(" ") and run the script ./xpl.py GDB I get the following error:
Traceback (most recent call last):
File "/io/exercise_bufferoverflow_shellcode/./xpl.py", line 43, in <module>
io = start()
File "/io/exercise_bufferoverflow_shellcode/./xpl.py", line 21, in start
return gdb.debug([exe.path] + argv, gdbscript=gdbscript, *a, **kw)
File "/usr/local/lib/python3.9/dist-packages/pwnlib/context/__init__.py", line 1524, in setter
return function(*a, **kw)
File "/usr/local/lib/python3.9/dist-packages/pwnlib/gdb.py", line 576, in debug
tmp = attach((host, port), exe=exe, gdbscript=gdbscript, ssh=ssh, sysroot=sysroot, api=api)
File "/usr/local/lib/python3.9/dist-packages/pwnlib/context/__init__.py", line 1524, in setter
return function(*a, **kw)
File "/usr/local/lib/python3.9/dist-packages/pwnlib/gdb.py", line 1046, in attach
gdb_pid = misc.run_in_new_terminal(cmd, preexec_fn = preexec_fn)
File "/usr/local/lib/python3.9/dist-packages/pwnlib/util/misc.py", line 297, in run_in_new_terminal
pid = int(out)
ValueError: invalid literal for int() with base 10: b''
Hello :)
I generated a simple script with
pwn template ./a.out > xpl.py
. When running the script withGDB
everything works just find. When I add the following line as usual:context.terminal = "tmux splitw -h".split(" ")
and run the script./xpl.py GDB
I get the following error:Maybe this is related to recent changes in
pwnlib/util/misc.py
(https://github.com/Gallopsled/pwntools/commits/dev/pwnlib/util/misc.py)Thanks!
The text was updated successfully, but these errors were encountered: