Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dataLog = array( "host" => "amtja.ajt",
- "pass" => "pass",
- "email" => "email",
- );
- $login = array(
- 'email' => $dataLog[email],
- 'pass' => $dataLog[pass],
- 'login' => 'Log In',
- );
- //MENDAPATKAN LOGIN / COOKIE (coker_log)
- $curl = curl_init();
- curl_setopt($curl, CURLOPT_URL,'https://m.facebook.com/login.php');
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($curl, CURLOPT_POST, 1);
- curl_setopt($curl, CURLOPT_POSTFIELDS, $login);
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
- curl_setopt($curl, CURLOPT_ENCODING, '');
- curl_setopt($curl, CURLOPT_COOKIEJAR,'coker_log');
- curl_setopt($curl,CURLOPT_COOKIEFILE,'coker_log');
- $c_data = curl_exec($curl);
- curl_close($curl);
- for($i=1;$i<=2;$i++){
- $confirms=auto('https://m.facebook.com/friends/center/requests/?refid=8');
- $confir = explode('<a',$confirms);
- for($i=1;$i<= count($confir);$i++){
- $link = substr($confir[$i-1], strpos($confir[$i-1], 'href=') + 6);
- $link = substr($link, 0, strpos($link, '"'));
- if(ereg('confirm=',$link)){
- $link=str_replace('&','&',$link);
- auto('https://m.facebook.com'.$link);
- echo $link.'<hr/>';
- }
- }
- }
- }
- function auto($url){
- $curl = curl_init();
- curl_setopt($curl, CURLOPT_URL,$url);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
- curl_setopt($curl, CURLOPT_COOKIEFILE,'coker_log');
- $ch = curl_exec($curl);
- curl_close($curl);
- return($ch);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement