wangur

Script Auto Delete Request Friends Facebook

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