H4T3D

sync.me Directory Searcher

Feb 26th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.30 KB | None | 0 0
  1. <?php
  2.   set_time_limit(0);
  3.   error_reporting(0);
  4.  
  5. function getSslPage($url,$number) {
  6.     $ch = curl_init();
  7.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  8.     curl_setopt($ch, CURLOPT_HEADER, 0);
  9.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  10.     curl_setopt($ch, CURLOPT_URL, $url);
  11.     curl_setopt($ch, CURLOPT_REFERER, $url);
  12.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  13.    
  14.     $result = curl_exec($ch);
  15.     curl_close($ch);
  16.     return $result;
  17. }
  18.  
  19.  
  20. $url="https://sync.me/search/?number=923350989585&g=1";
  21.  
  22. for($i=0;$i<1;$i++){
  23.  
  24. $number="300".rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9);
  25. echo $number;
  26. $data=getSslPage($url,$number);
  27.  
  28. echo $data;
  29.  
  30.  if(eregi('Activated', $data))
  31.                         {
  32.  
  33.  
  34.  $myfile = fopen("numbers.txt", "a") or die("Unable to open file!");
  35.                         fwrite($myfile,"0".$number);
  36.                         fwrite($myfile,"\n");
  37.                         fclose($myfile);
  38.  
  39. $value=preg_match_all("/<div\s+class='row'>(.*)<\/div>/", $data,$matches);
  40.  
  41. echo "<pre>";
  42. foreach ($matches[1] as $realtitle) {
  43.     echo $realtitle . " </br>";
  44.     flush();@ob_flush();
  45. }
  46. echo "</pre>";
  47.  
  48.  
  49.             }
  50.  
  51. }
  52.  
  53.  
  54. $no = file_get_contents("https://sync.me/search/?number=923350989585&g=1");
  55.  
  56. echo $no;
  57. ?>
Add Comment
Please, Sign In to add comment