puknulvnos

Untitled

Aug 19th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.60 KB | None | 0 0
  1. const Blowfish = require('javascript-blowfish');
  2. const key = "phonk_s_r_m";
  3. const bf = new Blowfish(key);
  4.  
  5. const bot_token = ''
  6. const reports__token = ''
  7. const moderators__token = ''
  8.  
  9. const {Core} = require('vk-bot-core')
  10. const reports = new Core(reports__token)
  11. const moderators = new Core(moderators__token)
  12.  
  13. const reports__group_id = -114915716
  14. const reports__topic_id = 34689231
  15. const send__chat_id = '11'
  16.  
  17. var sleep = require('system-sleep');
  18. var request = require("request");
  19.  
  20. var TMs = [
  21. '105385870',
  22. '82660578',
  23. '150686144',
  24. '158880373'
  25. ]
  26. var messages = [
  27. 'ВИДИТ-БОТ обнаружил новое сообщение в Жалобах!',
  28. 'Одинокая девушка ищет спутника в Жалобах.',
  29. 'Не мешайте, я смотрю! Жалоба!',
  30. 'Без лишних слов, новая жалоба!'
  31. ]
  32. var randomMsg = Math.floor(Math.random() * messages.length)
  33.  
  34. reports.on('board_post_new', msg => () => {
  35. var randomID = Math.floor(Math.random() * 1000000)
  36. if (msg.topic_owner_id == reports__group_id & msg.topic_id == reports__topic_id & !msg.text.startsWith('[') & msg.text.length > 25) {
  37. console.log('[Жалобы] Пришло сообщение от https://vk.com/id' + msg.from_id)
  38.  
  39. reports.api.call('messages.send', {
  40. chat_id: send__chat_id,
  41. random_id: randomID,
  42. message: `[Жалобы] ${messages[randomMsg]}\nСсылка: https://vk.com/topic${msg.topic_owner_id}_${msg.topic_id}?post=${msg.id}\nОт: https://vk.com/id${msg.from_id}`,
  43. access_token: bot_token
  44. })
  45. }
  46. })
  47. reports.startAsLongPoll()
  48.  
  49. moderators.on('wall_post_new', msg => () => {
  50. console.log('[Овощебаза] Пришло сообщение от https://vk.com/id' + msg.from_id)
  51. var types = [
  52. 'варн',
  53. 'анварн',
  54. 'бан',
  55. 'мут',
  56. 'разбан',
  57. 'мут по IP',
  58. 'бан по IP',
  59. 'обход',
  60. 'хз'
  61. ]
  62. var currenttype
  63.  
  64. if (msg.text.includes('/warn') || msg.text.includes('варн'))
  65. currenttype = types[types.length - 9]
  66. else if (msg.text.includes('/unwarn') || msg.text.includes('разварн') || msg.text.includes('анварн'))
  67. currenttype = types[types.length - 8]
  68. else if (msg.text.includes('/tempban') || msg.text.includes('забаньте') || msg.text.includes('бан'))
  69. currenttype = types[types.length - 7]
  70. else if (msg.text.includes('/tempmute') || msg.text.includes('замутьте') || msg.text.includes('мут') || msg.text.includes('/mute'))
  71. currenttype = types[types.length - 6]
  72. else if (msg.text.includes('/unban') || msg.text.includes('разбан') || msg.text.includes('разбаньте'))
  73. currenttype = types[types.length - 5]
  74. else if (msg.text.includes('/ipmute'))
  75. currenttype = types[types.length - 4]
  76. else if (msg.text.includes('/ipban'))
  77. currenttype = types[types.length - 3]
  78. else if (msg.text.includes('обход') || msg.text.includes('2.12') || msg.text.includes('2.13') || msg.text.includes('/ban'))
  79. currenttype = types[types.length - 2]
  80. else
  81. currenttype = types[types.length - 1]
  82.  
  83. var randomIDD = Math.floor(Math.random() * 10000000)
  84. moderators.api.call('messages.send', {
  85. chat_id: send__chat_id,
  86. random_id: randomIDD,
  87. message: '[Овощебаза] Новая запись!\nСсылка: https://vk.com/wall' +
  88. msg.owner_id + '_' + msg.id + '\nТип: ' + currenttype,
  89. access_token: bot_token
  90. })
  91.  
  92. var randomI3D = Math.floor(Math.random() * 1000000)
  93.  
  94. if (currenttype == 'обход' || currenttype == 'разбан' || currenttype == 'мут по IP' || currenttype == 'бан по IP') {
  95. TMs.forEach(function(TM) {
  96. setTimeout(function() {
  97. moderators.api.call('messages.send', {
  98. user_id: TM,
  99. random_id: randomI3D,
  100. message: `[${currenttype}] Новая запись!\nСсылка: https://vk.com/wall${msg.owner_id}_${msg.id}`,
  101. access_token: bot_token
  102. })
  103. }, 3500);
  104. })
  105. }
  106. })
  107.  
  108. moderators.on('message_new', msg => () => {
  109. var randomID228 = Math.floor(Math.random() * 1000000)
  110. if (msg.text.startsWith('/проверка')) {
  111. var hash = msg.text
  112. var result = debugHash(hash)
  113.  
  114. var username = msg.__user.first_name + ' ' + msg.__user.last_name
  115.  
  116. console.log('\n' + username + ' проверил хэш: ' + hash)
  117. moderators.api.call('messages.send', {
  118. user_id: msg.__user.user_id,
  119. random_id: randomID228,
  120. message: result
  121. })
  122. } else if (msg.text.startsWith('/скибидивапа')) {
  123. var hash = msg.text
  124. var result = debugHash(hash)
  125. moderators.api.call('messages.send', {
  126. user_id: msg.__user.user_id,
  127. random_id: randomID228,
  128. message: result
  129. })
  130. }
  131. })
  132.  
  133. moderators.startAsLongPoll()
  134.  
  135.  
  136. function debugHash(text) {
  137. try {
  138. var hash = text
  139. var trash = [
  140. '\n',
  141. '/проверка ',
  142. '/скибидивапа ',
  143. 'vto.pe',
  144. 'vksteal',
  145. 'PROSTOCRAFT_bmljZXRyeWJyb18'
  146. ]
  147. trash.forEach(function(a) {
  148. hash = hash.replace(a, '')
  149. })
  150.  
  151. hash = bf.decrypt(bf.base64Decode(hash))
  152.  
  153. hash = hash.replace(/#1/g,'дата установки; может быть абсолютно любой версии')
  154. hash = hash.replace(/#2/g,'дата запуска; может быть абсолютно любой версии')
  155. hash = hash.replace(/#3/g,'дата запуска')
  156. hash = hash.replace('&','Читы')
  157. hash = hash.replace('~','Результат')
  158. hash = hash.replace('!','Список пользователей')
  159. hash = hash.replace('@','Время пользователя')
  160. hash = hash.replace('$','Дата запуска системы')
  161. hash = hash.replace('^','Затрачено времени')
  162. hash = hash.replace('^^','секунд')
  163.  
  164. return hash
  165.  
  166. } catch (e) {
  167. return 'Убедитесь, что вы ввели полный хэш\nЕсли уверены, что все сделали верно, но по-прежнему выводится ошибка - напишите Триггексу: https://vk.com/id252847438\n\nError - ' + e
  168. console.log('Error - ' + e)
  169. }
  170. }
  171.  
  172. const sending = async () => {
  173. try {
  174. var count = 0;
  175. for(i=0; i < 999; i++) {
  176. var randID1 = Math.floor(Math.random() * 1000000)
  177. request({
  178. url: "https://api.vk.com/method/messages.send?peer_id=" + "-172839726" + "&random_id=" + randID1 + "&message=" + encodeURI("тык") + "&dont_parse_links=" + "0" + "&disable_mentions=" + "0" + "&v=" + "5.95" + "&access_token=" + moderators__token,
  179. method: 'GET'
  180. }, function (error, response, body) {
  181. if(body.startsWith("{\"response\"")) {
  182. count++;
  183. }
  184. });
  185. sleep(301000);
  186. }
  187. } catch (e) { console.log(e); }
  188. }
  189.  
  190. sending();
Add Comment
Please, Sign In to add comment