Guest User

Untitled

a guest
Dec 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $input = $_GET['x'];
  2. $dangerous = array("{", "}", "", "(", ")", "<", ">", "&", "*", "|", "=", "?", ";", "[", "]", "$", "–", "~", "!", ".", "%", "/", ":", "+", "'");
  3.  
  4. $input = str_replace("\","\\",$input);
  5. foreach ($dangerous as $char) {
  6. $input = str_replace($char,"\$char",$input);
  7. }
  8.  
  9. echo passthru("echo '$input'");
  10. echo "<br><br>executed: " . $input ;
Add Comment
Please, Sign In to add comment