Last active
December 27, 2022 19:01
-
-
Save GugSaas/49b377c0e56334ca755ef3ce6f8b6f9b to your computer and use it in GitHub Desktop.
Code to understand LFI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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