Здравствуйте Дорогие форумчане HTM сегодня я публикаю очень быстрый дискорд чекер который дает полностью се информацию от Верефа до нитро.
Python:
import aiohttp
import asyncio
import random
from colorama import Fore, Style, init
import pyfiglet
from datetime import datetime, timezone
init(autoreset=True)
DISCORD_API = "https://discord.com/api/v10/users/@me"
USER_AGENTS = [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) Gecko/20100101 Firefox/89.0",
"Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1",
]
def generate_headers(token):
return {
"Authorization": token,
"User-Agent": random.choice(USER_AGENTS),
"Accept": "[I]/[/I]",
"Accept-Language": "en-US,en;q=0.5",
"Connection": "keep-alive",
}
def get_account_creation_time(user_id):
snowflake_time = (int(user_id) >> 22) + 1420070400000
creation_time = datetime.fromtimestamp(snowflake_time / 1000, timezone.utc)
return creation_time.strftime('%Y-%m-%d %H:%M:%S')
def print_token_info(token, user_data):
username = f'{user_data["username"]}#{user_data["discriminator"]}'
email = user_data.get("email", "Not linked")
phone = user_data.get("phone", None)
verified_email = user_data.get("verified", False)
nitro = "Yes" if user_data.get("premium_type", 0) > 0 else "No"
user_id = user_data["id"]
phone_verified = phone is not None and phone.strip() != ""
creation_time = get_account_creation_time(user_id)
days_old = (datetime.now(timezone.utc) - datetime.strptime(creation_time, '%Y-%m-%d %H:%M:%S').replace(tzinfo=timezone.utc)).days
print(f"{creation_time} | Username: {Fore.MAGENTA}{username}{Style.RESET_ALL} | Email_verified: {Fore.GREEN}{verified_email}{Style.RESET_ALL} | Phone_verified: {Fore.GREEN if phone_verified else Fore.RED}{phone_verified}{Style.RESET_ALL} | Days_old: {Fore.CYAN}{days_old}{Style.RESET_ALL}")
return {
"token": token,
"username": username,
"email_verified": verified_email,
"phone_verified": phone_verified,
"creation_time": creation_time,
"days_old": days_old
}
async def check_token(session, token):
headers = generate_headers(token)
try:
async with session.get(DISCORD_API, headers=headers, timeout=10) as response:
if response.status == 200:
user_data = await response.json()
token_info = print_token_info(token, user_data)
return token_info
elif response.status == 401:
print(f"{Fore.RED}[INVALID]{Style.RESET_ALL} Token: {token[:10]}...{token[-5:]}")
return None
else:
print(f"{Fore.YELLOW}[WARNING]{Style.RESET_ALL} Unexpected status code {response.status} for token.")
return None
except Exception as e:
print(f"{Fore.RED}[ERROR]{Style.RESET_ALL} Request failed for token: {str(e)}")
return None
async def process_tokens(tokens, valid_file, invalid_file):
valid_tokens_info = []
invalid_tokens = []
async with aiohttp.ClientSession() as session:
tasks = [check_token(session, token) for token in tokens]
results = await asyncio.gather(*tasks)
for token, token_info in zip(tokens, results):
if token_info:
valid_tokens_info.append(token_info)
else:
invalid_tokens.append(token)
with open(valid_file, "w") as vf:
for token_info in valid_tokens_info:
vf.write(f"Token: {token_info['token']}, Username: {token_info['username']}, Email Verified: {token_info['email_verified']}, Phone Verified: {token_info['phone_verified']}, Creation Time: {token_info['creation_time']}, Days Old: {token_info['days_old']}\n")
with open(invalid_file, "w") as inf:
inf.write("\n".join(invalid_tokens))
print(f"\n{Fore.GREEN}Validation complete.{Style.RESET_ALL}\nValid tokens: {len(valid_tokens_info)}\nInvalid tokens: {len(invalid_tokens)}")
async def main():
ascii_banner = pyfiglet.figlet_format("Diskordek Checker", font="small")
print(Fore.MAGENTA + ascii_banner)
print(Fore.GREEN + "Made by: kmskyni aka Fleyzi Aka TG: @eelicedcer" + Style.RESET_ALL)
file_name = input(f"{Fore.CYAN}Enter the token file name (e.g., tokens.txt): {Style.RESET_ALL}")
try:
with open(file_name, "r") as file:
tokens = [line.strip() for line in file if line.strip()]
if not tokens:
print(f"{Fore.RED}[ERROR]{Style.RESET_ALL} No tokens found in the file.")
else:
print(f"{Fore.YELLOW}Total tokens found: {len(tokens)}{Style.RESET_ALL}")
start = input(f"{Fore.GREEN}Do you want to start processing? (yes/no): {Style.RESET_ALL}").strip().lower()
if start == "yes":
valid_file = "valid_tokens.txt"
invalid_file = "invalid_tokens.txt"
await process_tokens(tokens, valid_file, invalid_file)
else:
print(f"{Fore.RED}Process aborted.{Style.RESET_ALL}")
except FileNotFoundError:
print(f"{Fore.RED}[ERROR]{Style.RESET_ALL} File '{file_name}' not found. Please check the file name and try again.")
except Exception as e:
print(f"{Fore.RED}[ERROR]{Style.RESET_ALL} An unexpected error occurred: {e}")
if [B]name[/B] == "[B]main[/B]":
asyncio.run(main())
Последнее редактирование: