Advertisement
janter13

konfrim

Sep 1st, 2014
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.54 KB | None | 0 0
  1. <?php
  2.  
  3. $dataLog = array( "host" =>  "amtja.ajt",
  4. "pass" => "pass",
  5. "email" => "email",
  6. );
  7.  
  8. $login = array(
  9.        'email' => $dataLog[email],
  10.        'pass' => $dataLog[pass],
  11.        'login' => 'Log In',
  12.    );
  13.  
  14. //MENDAPATKAN LOGIN / COOKIE (coker_log)
  15.  
  16. $curl = curl_init();
  17.    curl_setopt($curl, CURLOPT_URL,'https://m.facebook.com/login.php');
  18.    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  19.    curl_setopt($curl, CURLOPT_POST, 1);
  20.    curl_setopt($curl, CURLOPT_POSTFIELDS, $login);
  21.    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
  22.    curl_setopt($curl, CURLOPT_ENCODING, '');
  23.    curl_setopt($curl, CURLOPT_COOKIEJAR,'coker_log');
  24.    curl_setopt($curl,CURLOPT_COOKIEFILE,'coker_log');
  25.   $c_data = curl_exec($curl);
  26.   curl_close($curl);
  27.  
  28. for($i=1;$i<=2;$i++){
  29.    $confirms=auto('https://m.facebook.com/friends/center/requests/?refid=8');
  30.    $confir = explode('<a',$confirms);
  31.       for($i=1;$i<= count($confir);$i++){
  32.            $link = substr($confir[$i-1], strpos($confir[$i-1], 'href=') + 6);
  33.            $link = substr($link, 0, strpos($link, '"'));
  34.                 if(ereg('confirm=',$link)){
  35.                 $link=str_replace('&amp;','&',$link);  
  36.                 auto('https://m.facebook.com'.$link);
  37.                 echo $link.'<hr/>';
  38.           }
  39.      }
  40.   }
  41. }
  42. function auto($url){
  43.   $curl = curl_init();
  44.   curl_setopt($curl, CURLOPT_URL,$url);
  45.   curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
  46.   curl_setopt($curl, CURLOPT_COOKIEFILE,'coker_log');
  47.   $ch = curl_exec($curl);
  48.   curl_close($curl);
  49.   return($ch);
  50.   }
  51. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement