Advertisement
Guest User

Untitled

a guest
Feb 8th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1. <?php
  2. #$url = 'http://hidemyass.com/proxy-list/search-231484';
  3. $url = 'http://hidemyass.com/proxy-list';
  4. $b=preg_replace('/display:none">[0-9\s]+<\//', 'display:none"></', file_get_contents($url));
  5. $b=preg_replace('/[\r\n\t]+/', '', $b);
  6. preg_match_all('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}[\s\r\t\n]+[0-9]+/', strip_tags($b), $o);
  7. foreach($o[0] as $ip){ $ip=preg_replace('/[\s]+/', ':', $ip); echo $ip."\n"; }
  8.  
  9. $q=2;
  10. while($q<10){
  11.     $b=preg_replace('/display:none">[0-9\s]+<\//', 'display:none"></', file_get_contents($url.'/'.$q));
  12.     $b=preg_replace('/[\r\n\t]+/', '', $b);
  13.     preg_match_all('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}[\s\r\t\n]+[0-9]+/', strip_tags($b), $o);
  14.     foreach($o[0] as $ip){ $ip=preg_replace('/[\s]+/', ':', $ip); echo $ip."\n"; }
  15.     $q++;
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement