Skip to content

Instantly share code, notes, and snippets.

@GugSaas
Last active December 27, 2022 19:01
Show Gist options
  • Save GugSaas/49b377c0e56334ca755ef3ce6f8b6f9b to your computer and use it in GitHub Desktop.
Save GugSaas/49b377c0e56334ca755ef3ce6f8b6f9b to your computer and use it in GitHub Desktop.
Code to understand LFI
<?php
if(isset($_GET['page']) and !empty($_GET['page'])) {
echo file_get_contents("paginas/".$_GET['page']);
} else {
echo file_get_contents("paginas/home.html");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment