wangur

Script Auto Delete Request Friends Facebook

Oct 6th, 2016
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.02 KB | None | 0 0
  1. <?php
  2. /*
  3.  
  4. * Auto Delete Request Friends Work's
  5. *On Tanggal: 06/10/2016
  6. * Created By: Endo Sulistio
  7. * FB: https://facebook.com/100002167444279
  8. *** NOTE , Cukup edit bagian data login, Masukan password dan email kamu. ***
  9.  
  10. ****** EDIT SESUKA HATI KALIAN, ASALKAN JANGAN GANTI NAMA PEMBUAT ******
  11. * Terimakasih
  12. * Covered By Wangur Team
  13. *
  14. *
  15. *
  16. *
  17. *
  18. *
  19. *
  20. *
  21. *
  22. *
  23. *
  24. *
  25. *
  26. *
  27. *
  28.  
  29.  
  30. ** Tunggu Versi Auto Konfirmasi ^_^
  31. ** Masih Sibuk Di Dunia Nyata
  32.  
  33. */
  34.  
  35. $bot = new bot($wangur);
  36. class bot{
  37. private $wangur;
  38. function __construct($dataLog){
  39.  //Data Login
  40.    $this->pass = 'PASSWORD';
  41.    $this->email = 'EMAIL';
  42.     }
  43.  
  44.  
  45. private function get_contents($url,$type=null,$fields=null){
  46.    $opts = array(
  47.             42 => false,
  48.             19913 => 1,
  49.             10002 => $url,
  50.             52 => false,
  51.             10018 => 'Opera/9.80 (Series 60; Opera Mini/6.5.27309/34.1445; U; en) Presto/2.8.119 Version/11.10',
  52.            78 => 5,
  53.            13 => 5,
  54.            47 => false,
  55.             );
  56.    $ch=curl_init();
  57.    if($type){
  58.        if($type == 1){
  59.               $opts[10082] = 'coker_log';
  60.               }
  61.        if($type == 3){
  62.               $opts[42] = 1;
  63.              }
  64.        $opts[10031] = 'coker_log';
  65.     }
  66.   if($fields){
  67.       $opts[47] = false;
  68.       $opts[10015] = $fields;
  69.       }
  70.    curl_setopt_array($ch,$opts);
  71.    $result = curl_exec($ch);
  72.    curl_close($ch);
  73.    return $result;
  74.   }
  75.  
  76.  
  77. public function kanca(){
  78.    $url = $this->getUrl('m','friends/center/requests/#friends_center_main');
  79.    $getToken = $this->get_contents($url,3);
  80.  
  81.            $oauth = '<x>'.$getToken;
  82.            $oauth = preg_replace('#<x>(.+?)<body(.+?)><div class="_55x2">(.+?)<div class="_5vvc">(.+?)</body></html>#siu','\3',$oauth);
  83.           $oauth = preg_replace('<table(.+?)_5s61">','\3',$oauth);
  84.  
  85.   $ft_id = explode('<img',$oauth);
  86.  
  87. for($i=1; $i<=20; $i++){
  88. $delete=$this->cut($ft_id[$i],'delete=','"');
  89.  
  90. echo $i.' ';
  91.  $this->get_contents('https://mobile.facebook.com/a/notifications.php?delete='.str_replace('&amp;','&',$delete),3);
  92.   }
  93.  
  94.    }
  95.  
  96. private function getUrl($domain,$dir,$uri=null){
  97.     if($uri){
  98.          foreach($uri as $key =>$value){
  99.              $parsing[] = $key . '=' . $value;
  100.                 }
  101.              $parse = '?' . implode('&',$parsing);
  102.                 }
  103.      return 'https://' . $domain . '.facebook.com/' . $dir . $parse;
  104.        }
  105.  
  106. public function cut($content,$start,$end){
  107. if($content && $start && $end) {
  108. $r = explode($start, $content);
  109. if (isset($r[1])){
  110. $r = explode($end, $r[1]);
  111. return $r[0];
  112. }
  113. return '';
  114. }
  115. }
  116.  
  117. public function login(){
  118.   $login = array(
  119.      'pass' => $this -> pass,
  120.      'email' => $this -> email,
  121.      'login'  => 'Login',
  122.              );
  123.   $this->get_contents($this->getUrl('m','login.php'),1,$login);
  124.    }
  125.  
  126. }
  127.  
  128. if($bot->kanca()){
  129.     echo $bot->kanca();
  130.     }else{
  131.     $bot->login();
  132.     }
  133.  
  134. $a=$_GET['b'];
  135. $c=($a+1);
  136.    print '<meta http-equiv="refresh" content="0;url=?b='.$c.'" />';
  137. ?>
Add Comment
Please, Sign In to add comment