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
'Linux Exploitation > settings' 카테고리의 다른 글
[Pwnable] ROP 가젯 찾기 어려울 때 할 수 있는 방법들... (0) | 2024.01.03 |
---|---|
pwntools version (pwntools 버전 확인 하는 법) (0) | 2023.08.17 |
[스크랩] gdb attach (0) | 2023.08.08 |
[Pwnable] 디버깅 심볼 다운로드 및 오프셋 알아내기 (0) | 2023.07.14 |
[Pwnable] 로더 파일 설정, patchelf 사용법 (0) | 2023.07.14 |