Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. <?php
  2.  
  3. # Ваш access_token
  4. # Для получения, пройдите по данной ссылке: https://oauth.vk.com/authorize?client_id=3087106&scope=notify,friends,photos,audio,video,docs,notes,pages,status,offers,questions,wall,groups,messages,email,notifications,stats,ads,market,offline&redirect_uri=blank.html&display=popup&response_type=token
  5. $access_token = '060153419973eadf2222f2584d2a4fcf1716d18e6b405ca45a4e5f8a79ae30a5f9b3f8c322';
  6. $online = curl('https://api.vk.com/method/account.setOnline?access_token='.$access_token); // Вечный Online!
  7.  
  8. # Список ID групп для раскрутки
  9. $groups = array(
  10. '59221166','54889220','70334063','53946539','76862936','77404716','104041019','102483013','113545377','44133911','69826673','57929163',
  11. '42584387','32391312','62340709','33704965','69815411','26734396','65233201','103721540','67004847','85307712','25850386','53242527',
  12. '3399995','260','77819881','45432243','14446726','60042211','58435717','55262798','35359693','32538224','94766517','382634','96955309',
  13. '52641008','59833666','50061797','114675475','24370682','18924208','43524240','48260982','94512931','74806465','75441946','54658026',
  14. '115090946','41328473','59067700','70146464','49938046','48627440','13672693','58980886','71334356','54305980','35296726','102777394',
  15. '49098642','71480694','72690157','33769416','23990493','77778520','88444026','81768293','29273548','50016775','55888808','79765857',
  16. '65861336','72544603','9436169','57079423','76887857','47901577','57893500','16526901','44723042','58281865','94946045','92537219',
  17. '76949162','48177500','54614892','98801189','55778655','70079183','55149458','76331265','95019548','55734302','47828674','73690371',
  18. '20215278','54224042','51155922','111745449','62630460','47550982','46087024','82335096','32244683','36697600','79289982','24375763',
  19. '20138186','36689965','11266048','50619935','68324713','55367092','67823806','51231761','75390995','28772209','50608558','92294735',
  20. '63966396','62927970','75408673','89406281','108550518','28995074','23905651','55986158','85300923','15336495','30739877','79626196',
  21. '39281112','75460958','55214888','74131389','99867602','60576408','68345935','20295050','73739402','21918698','55530464','31443054',
  22. '47688706','69586153','50125055','63975038','55161898','50346332','1222773','76980623','53425205','43879666','67049463','61421329',
  23. '64872649','56666142','77305491','42397088','85008553','93549274','69398403','67083952','22597419','84216460','33277274','33602050',
  24. '62499266','52995017','34471334','10196095','81864155','61413825','39978131','36539410','82400487','50189240','34245360','83103331',
  25. '53486528','41306027','82235375','49479753','105824160','62919013','17886','50243775','72774496','52805991','101933932','29738750',
  26. '89108626','77208800','64105315','52629688','52199211','82918460','73372981','82014283','96870719','83193541','49871683','37765841',
  27. '52172891','48558818','62923579','58547989','66184500','56638180','58640337','83521634','28805901','56173695','76524131','58641452',
  28. '67721865','78891808','62177611','112059554','77713352','50704665','74738426','53194143','52160189', '28950811','56104852','46034006',
  29. '92688551','30563999','111886597','39673900','63331273','46258034','101920693','17164406','8337923','41294653', '59721672','42297612',
  30. '67816144','47160067','27508536','36352266','36231266','42416529','62584051','72686157','52669455','53966216','39130136','30127198',
  31. '42059861','66939974','41356567','28361911','41760883','51609737','58794015','69596891','60682774','44267115','53249195','68101640','54830915');
  32.  
  33. # Текст
  34. $t[0] = '
  35. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  36. ♻ ∂ℴᎴªℬხ ℬ ∂ℙɣჳხ9 ♻
  37. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  38. ✅ ПℙℑℳᎽ ℬℂ६χ ✅
  39. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  40. �� χ٥4Ꮍ ⃣⃣⃣⃣⃣ ᗫℙɣჳعℐ ��
  41. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  42. �� �� Пℴ∂℘ℐผℑᶄøℬ ��
  43. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖';
  44.  
  45. $t[1] = '
  46. �� DОБАВЛЮ ВSEX GO B DR��
  47. ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖
  48. �� ХОЧУ 10.000 ДРУЗЕЙ! ��
  49. ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖
  50. �� ДОБАВЛЮ В ТЕЧЕНИИ СЕКУНДЫ ��
  51. ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖
  52. �� ВЗАUМНЫЕ ЛАЙКИ ��
  53. ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖';
  54.  
  55. $t[2] = '
  56. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  57. �� ДОБАВЬ В ДРУЗЬЯ ⭕
  58. �� ПРИМУ ВСЕХ ��
  59. �� 0 ПОДПИСЧИКОВ ��
  60. �� ХОЧУ 1O.OOO ДРУЗЕЙ ��
  61. �� СДЕЛАЙ МНЕ СИГНУ В ЛС ♻
  62. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  63. ��������������������������������������������������������������������
  64. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖';
  65.  
  66. $t[3] = '
  67. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  68. �� ДОБАВЛЯЮ ВСЕХ ��
  69. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  70. ✅ КИДАЙ ЗАЯВКУ В ДРУЗЬЯ ✅
  71. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
  72. �� ПРUМУ ВСЕХ ДO 1О.ООО ❤
  73. ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖';
  74.  
  75. $t[4] = 'Дᴏбᴀʙляúᴛᴇᴄь! ^)';
  76.  
  77. $t = $t[rand(0, count($t)-1)];
  78.  
  79. # Публикация записи
  80. for($i = 0; $i < count($groups); $i++) {
  81. $post = curl('https://api.vk.com/method/wall.post?owner_id=-'.$groups[$i].'&message='.urlencode($t).'&access_token='.$access_token);
  82. }
  83.  
  84. # Получение списка заявок на добавление в друзья
  85. $resp = curl('https://api.vk.com/method/friends.getRequests?count=100&out=0&v=5.53&access_token='.$access_token);
  86. $resp_decoded = json_decode($resp,1);
  87. $usr_count = $resp_decoded['response']['count'];
  88.  
  89. # Одобряем полученные заявки
  90. if ($usr_count!=0) {
  91. for ($i = 0; $i < $usr_count; $i++) {
  92. $usr_id = $resp_decoded['response']['items'][$i];
  93. curl('https://api.vk.com/method/friends.add?user_id='.$usr_id.'&access_token='.$access_token);
  94. };
  95. };
  96.  
  97. function curl( $url ){
  98. $ch = curl_init( $url );
  99. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  100. curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );
  101. curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
  102. $response = curl_exec( $ch );
  103. curl_close( $ch );
  104. return $response;
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement