Linux Exploitation/settings
gdb.attach (in docker enviornment)
Rosieblue
2023. 8. 17. 01:21
728x90
To open new terminal in docker environment, we have to add this line to our python code.
context.terminal = ['tmux', 'splitw', '-h']
If you didn't install tmux, you have to install it. It's one kind of Linux terminal.
unfortunally I got this kind of error below..
You can solve it by changing your pwntools version (reference below)
https://github.com/Gallopsled/pwntools/issues/1874
https://github.com/Gallopsled/pwntools/issues/1907
I downgraded it into 4.9.0 version but it doesn't work
So I downgraded into 4.4.0 again and got new error :(
Maybe it's because that I wasn't running python script inside tmux.
https://github.com/Gallopsled/pwntools/issues/1140#issue-316464648
I should have run it inside of tmux 😅
Now it finally works!
reference