scriptz-team

[PHP] PROXY GETTER

Aug 4th, 2012
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. <?php
  2. ob_implicit_flush();
  3. set_time_limit(0);
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <title>[PROXY GETTER]</title>
  10. <style type="text/css">
  11. html {
  12. background: #f1f1f1;
  13. }
  14. body {
  15. background: #fff;
  16. margin: 22px auto;
  17. width: 764px;
  18. padding: 22px;
  19. text-align: center;
  20. font-family: Georgia, "Times New Roman", Times, serif;
  21. color: #464646;
  22. }
  23. h2 {
  24. font-size: 3em;
  25. font-weight: normal;
  26. }
  27. </style>
  28. </head>
  29.  
  30. <body>
  31. <pre>
  32. _____ _____ _ _____ _____ _____ _____ _____ _____
  33. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  34. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  35. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  36. |s C R i P T z - T E A M . i N F O|
  37.  
  38. [PROXY GETTER]
  39. </pre>
  40. <form action="" method="POST">
  41. Max. pages (1-5): <input type="text" name="pages" value="5" size="1" maxlength="1"> -
  42. Timeout: <input type="text" name="timeout" value="1" size="1" maxlength="1"><br />
  43. Show all results: <select name="show"><option value="no">No</option><option value="yes">Yes</option></select><br />
  44. Stop processing if there's <input type="text" name="stop" value="0" size="2" maxlength="2"> positive matches<br /><br />
  45. <input type="submit" name="get" value="Give me proxys!">
  46. </form>
  47. <?php
  48. if(isset($_POST['get']))
  49. {
  50. echo '<div class="result">';
  51. $proxyList = array();
  52. $pages = (!is_numeric($_POST['pages']) or $_POST['pages'] < 1 or $_POST['pages'] > 5) ? 5 : abs($_POST['pages']);
  53. $timeOut = (!is_numeric($_POST['timeout'])) ? 5 : abs($_POST['timeout']);
  54. $show = ($_POST['show'] != 'no' && $_POST['show'] != 'yes') ? 'yes' : $_POST['show'];
  55. $stop = ($_POST['stop'] == 0 or !is_numeric($_POST['stop']) or $_POST['stop'] > 50) ? 'all' : abs($_POST['stop']);
  56. $counter = 0;
  57. $quit = false;
  58. #This section of the code
  59. #is for proxys.com.ar
  60. for($i = 0; $i <= $pages; $i++)
  61. {
  62. if($quit)
  63. {
  64. break;
  65. }else{
  66. $web = ($i == 0) ? 'http://www.proxys.com.ar/' : 'http://www.proxys.com.ar/index.php?act=list&port=&type=&country=&page='.$i;
  67. $webContent = @file_get_contents($web);
  68. $_pattern1 = "/<tr class=\"cells\" onmouseover=\"this\.className='cells2'\" onmouseout=\"this\.className='cells'\">(.*?)<\/tr>/is";
  69. $pregMatch = @preg_match_all($_pattern1, $webContent, $proxyData, PREG_SET_ORDER);
  70. for($x = 0; $x<count($proxyData); $x++)
  71. {
  72. $_pattern2 = "/<td>(.*)<\/td>/i";
  73. $pregMatch = @preg_match_all($_pattern2, $proxyData[$x][1], $proxyConnect, PREG_SET_ORDER);
  74. $proxyIp = $proxyConnect[0][1];
  75. $proxyPort = $proxyConnect[1][1];
  76. $proxyCountry = $proxyConnect[3][1];
  77. $proxyTarget = $proxyIp.':'.$proxyPort;
  78.  
  79.  
  80. echo '<br /><font color="green">'.$proxyTarget.' > '.$proxyCountry.'</font><br />';
  81.  
  82. }
  83. }
  84. }
  85. //echo count($proxyList).' matches.';
  86. echo '</div>';
  87. }
  88. ?>
Advertisement
Add Comment
Please, Sign In to add comment