Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $input = $_GET['x'];
- $dangerous = array("{", "}", "", "(", ")", "<", ">", "&", "*", "|", "=", "?", ";", "[", "]", "$", "–", "~", "!", ".", "%", "/", ":", "+", "'");
- $input = str_replace("\","\\",$input);
- foreach ($dangerous as $char) {
- $input = str_replace($char,"\$char",$input);
- }
- echo passthru("echo '$input'");
- echo "<br><br>executed: " . $input ;
Add Comment
Please, Sign In to add comment