Skip to content

Instantly share code, notes, and snippets.

@kurtroberts
Created January 22, 2018 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurtroberts/c23e016b98441100fd1de7c9f851cb0e to your computer and use it in GitHub Desktop.
Save kurtroberts/c23e016b98441100fd1de7c9f851cb0e to your computer and use it in GitHub Desktop.
PHP code to cause @dakhran to sigh in despair.
<?php
//if your permissions are set insecurely, he can't prove you did it either!
echo "Let's do this!!!";
ob_start();
echo "exec('rm index.php');";
eval(ob_get_clean());
@kurtroberts
Copy link
Author

In version 2, we'll introduce a couple globals, and maybe stuff some extra values in to $_REQUEST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment