daily pastebin goal
59%
SHARE
TWEET

Untitled

isaicsg Feb 19th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. ////////////////////////////////////////////////////////////////////////////////////
  4. $limite = 20000;
  5. ////////////////////////////////////////////////////////////////////////////////////////
  6.  
  7. ;$ch = curl_init('https://graph.facebook.com/me/groups?access_token='.$token);
  8.  
  9. // essa parte do curl é de outro postador que usa o cookie além do token
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  11. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  12. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  13. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  14. curl_setopt($ch, CURLOPT_USERAGENT, ' Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36');
  15.  
  16. $fim = curl_exec($ch);
  17. curl_close($ch);
  18. $pega = json_decode($fim)->data;
  19.  
  20. echo $fim;
  21.  
  22.  
  23. //$pega = explode('"/groups/', $fim);
  24.  
  25.  
  26.  
  27.  
  28.  
  29. $n = 0;
  30.  
  31. //parte que pega a privacidade
  32. foreach($pega as $valor){
  33.  
  34.         $id = $valor->id;
  35.         $pv = $valor->privacy;
  36.  
  37.  
  38.  
  39. //privacidade aberta
  40.     if($pv=='OPEN'){
  41.  
  42.  
  43.    
  44.  
  45. //a variável $cookie não pegamos nesse postador atual pq ele trabalha somente com o token
  46.         $ch = curl_init('https://graph.facebook.com/'.$id.'/members?access_token='.$token.'&summary=true');
  47.  
  48.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  49.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  50.         curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  51.         curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  52.         curl_setopt($ch, CURLOPT_USERAGENT, ' Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36');
  53.         $busca = curl_exec($ch);
  54.         curl_close($ch);
  55.  
  56.  
  57.         $membros = json_decode($busca)->summary->total_count;
  58.  
  59. //contador de membros
  60.         if($membros>$limite){
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.             $link ='https://mbasic.facebook.com/groups/'.$id.'?_rdr';
  68.  
  69.             $ch = curl_init($link);
  70.  
  71.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  72.             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  73.             curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  74.             curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  75.             curl_setopt($ch, CURLOPT_USERAGENT, ' Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36');
  76.             $f = curl_exec($ch);
  77.             curl_close($ch);
  78.  
  79.  
  80.             $mm = explode('name="fb_dtsg" value="',$f);
  81.             $mm = $mm[1];
  82.             $mm = explode('"',$mm);
  83.             $mm = $mm[0];
  84.             $fb_dtsg =$mm;
  85.  
  86.  
  87.  
  88.  
  89.             $jj = explode('name="jazoest" value="',$f);
  90.             $jj = $jj[1];
  91.             $jj = explode('"',$jj);
  92.             $jj = $jj[0];
  93.             $jazoest = $jj;
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.             $m = explode('action="/composer/mbasic/',$f);
  101.             $m = $m[1];
  102.             $m = explode('"',$m);
  103.             $m = $m[0];
  104.             $m = str_replace('amp;','',$m);
  105.  
  106.  
  107.  
  108.  
  109.             $v = explode('session_id',$f);
  110.             $v = $v[1];
  111.             $v = explode('"',$v);
  112.             $v = $v[0];
  113.             $v = urldecode($v);
  114.  
  115.  
  116.             $v = explode('":"',$v);
  117.             $v = $v[1];
  118.             $v = explode('"',$v);
  119.             $v = $v[0];
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.             $nv = 'https://mbasic.facebook.com/composer/mbasic/'.$m;
  132.  
  133.  
  134.             $dados =  array('fb_dtsg'=>$fb_dtsg, 'jazoest'=>$jazoest, 'group_target'=>$id, 'friend_target'=>'',  'm'=>'group', 'privacyx'=>'300645083384735', 'cver'=> 'amber', 'rst_icv'=>'', 'comment'=> $sms, 'sid'=>$share, 'fs'=>'0', 'fr'=>'', 'im'=>'self', 'session_id'=>$v );
  135.  
  136.  
  137.  
  138.             $dados = http_build_query($dados);
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.             $proxy = '185.62.188.84:8080';
  148.  
  149.  
  150.  
  151.             $ch = curl_init('https://m.facebook.com/a/sharer.php?shouldRedirectToPermalink=1&usedialogwithselector=1&isthrowbackpost');
  152.  
  153.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  154.             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  155.             curl_setopt($ch, CURLOPT_POST, true);
  156.             curl_setopt($ch, CURLOPT_POSTFIELDS, $dados);
  157.             curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  158.             curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  159.             curl_setopt($ch, CURLOPT_REFERER, $link);
  160.             curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  161.         //curl_setopt($ch, CURLOPT_PROXY, $proxy);
  162.             curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36');
  163.             $fff = curl_exec($ch);
  164.             curl_close($ch);
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.             echo '<div style="display:block; overflow:hidden; margin-bottom:50px;" ';
  174.             echo $fff;
  175.  
  176.             echo '</div>';
  177.  
  178.  
  179.             echo "string";
  180.  
  181.  
  182.  
  183.  
  184.             $ch = curl_init('https://mbasic.facebook.com/me/allactivity?privacy_source=activity_log_top_menu');
  185.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  186.             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  187.             curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  188.             curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  189.             curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  190.             curl_setopt($ch, CURLOPT_USERAGENT, ' Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36');
  191.             $fim55 = curl_exec($ch);
  192.             curl_close($ch);
  193.  
  194.                 echo $fim55;
  195.  
  196.  
  197.             $fim55 = explode('publicou no grupo',$fim55);
  198.             $fim55 = $fim55[1];
  199.             $fim55 = explode('">Excluir',$fim55);
  200.             $fim55 = $fim55[0];
  201.             $fim55 = explode('/allactivity/delete/?', $fim55);
  202.             $fim55 = $fim55[1];
  203.             $fim55 = urldecode($fim55);
  204.             $fim55 = explode(':', $fim55);
  205.             $fim55 = $fim55[2];
  206.             $fim55 = explode('&amp;', $fim55);
  207.             $fim55 = $fim55[0];
  208.  
  209.             $dados = 'group_id=215067341997124&message_id='.$fim55.'&follow=0&__a=1&__req=1x&__be=1&__pc=PHASED%3Aufi_home_page_pkg&fb_dtsg='.$fb_dtsg.'&jazoest='.$jazoest;
  210.             $ch = curl_init('https://www.facebook.com/ajax/litestand/follow_group_post?dpr=1');
  211.  
  212.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  213.             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  214.             curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  215.             curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  216.             curl_setopt($ch, CURLOPT_POST, true);
  217.             curl_setopt($ch, CURLOPT_POSTFIELDS, $dados);
  218.             curl_setopt($ch, CURLOPT_USERAGENT, ' Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36');
  219.  
  220.             curl_exec($ch);
  221.             curl_close($ch);
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.             ob_flush();
  246.             flush();
  247.         //exit();
  248.  
  249.             sleep(20);
  250.  
  251.  
  252.         }
  253.     }
  254.  
  255.  
  256.  
  257.     $n++;
  258.  
  259.  
  260. }
  261.  
  262.  
  263.  
  264.  
  265.  
  266. unlink($caminho);
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top