Skip to content

Instantly share code, notes, and snippets.

@bheesham
Created September 4, 2012 13:14
Show Gist options
  • Save bheesham/3621049 to your computer and use it in GitHub Desktop.
Save bheesham/3621049 to your computer and use it in GitHub Desktop.
Test to see what online PHP testers do to escape this listing the files of the current directory.
function stev_al($str) {
$test = "eval";
$test($str);
}
echo stev_al(base64_decode("JGZpbGVzID0gZGlyKCcuLycpOw0Kd2hpbGUgKGZhbHNlICE9PSAoJGVudHJ5ID0gJGQtPnJlYWQoKSkpIHsNCiAgIGVjaG8gJGVudHJ5LiAiPGJyPiI7DQp9DQokZC0"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment