획득한 리버스쉘을 interactive하게 업그레이드 하는 방법에 대한 포스팅.
which python
혹은 which python3
등으로 파이썬이 있는지 확인 후 있으면 아래의 명령어로 쉘을 연다.
python3 -c 'import pty;pty.spawn("/bin/bash")'
export TERM=xterm
혹은export TERM=xterm-256color
로 한다.ctrl+z
stty raw -echo; fg
stty rows 38 columns 116