Skip to content

Instantly share code, notes, and snippets.

/proxy.php Secret

Created June 27, 2017 11:07
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 anonymous/d686807effb93a396851437c55126beb to your computer and use it in GitHub Desktop.
Save anonymous/d686807effb93a396851437c55126beb to your computer and use it in GitHub Desktop.
<?php
$url = $_REQUEST['url'];
if($url == "../rpass/indpass.txt")
{
echo 'REDACTED]';
}elseif ($url == 'proxy.php'){
echo '<?=file_get_contents($_REQUEST[\'url\'])?>';
}else{
if (preg_match('/\b(https?|ftp):\/\/*/', $url) !== 1) die;
echo (file_get_contents($url));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment