Created
May 6, 2021 15:26
-
-
Save Sazzo/40c123c6da108fdacfedba53336ebfd3 to your computer and use it in GitHub Desktop.
This file contains 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 | |
// The outer code is just a print. | |
print <<<INNER_CODE | |
<?php | |
// This is a sample remote file inclusion vulnerability. | |
// It will simply count how many files there are in the | |
// vulnerable script's directory. | |
\$files = count(glob('*.*')); | |
print "This folder contains {\$files} files."; | |
// Just sayin'. | |
// shell_exec("FORMAT A: /Y /AUTOTEST"); | |
INNER_CODE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment