Skip to content

Instantly share code, notes, and snippets.

@Sazzo
Created May 6, 2021 15:26
Show Gist options
  • Save Sazzo/40c123c6da108fdacfedba53336ebfd3 to your computer and use it in GitHub Desktop.
Save Sazzo/40c123c6da108fdacfedba53336ebfd3 to your computer and use it in GitHub Desktop.
<?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