import sys
import time
import platform
import os
import hashlib
from time import sleep
from datetime import datetime
import requests
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QFileDialog, QListWidget
def clear():
if platform.system() == 'Windows':
os.system('cls & title Python Example')
elif platform.system() == 'Linux':
os.system('clear')
elif platform.system() == 'Darwin':
os.system("clear && printf '\\e[3J'")
def getchecksum():
md5_hash = hashlib.md5()
file = open(''.join(sys.argv), 'rb')
md5_hash.update(file.read())
digest = md5_hash.hexdigest()
return digest
# KeyAuth related code removed
def get_user_info(token):
headers = {
'accept': '*/*',
'authorization': token,
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'
}
try:
response = requests.get('https://discordapp.com/api/v8/users/@me', headers=headers)
if response.status_code == 200:
return response.json()
except Exception as e:
print(f"Error fetching user info: {e}")
return None
def translate_boolean(value):
return '✔' if value else '❌'
def translate_nitro(value):
if value == 0:
return 'Yok'
elif value == 1:
return 'Basic'
elif value == 2:
return 'Boost'
return 'Bilinmeyen'
class Worker(QtCore.QThread):
finished = QtCore.pyqtSignal()
progress = QtCore.pyqtSignal(str)
def __init__(self, token_file_path, capture_tokens, save_hits):
super(Worker, self).__init__()
self.token_file_path = token_file_path
self.capture_tokens = capture_tokens
self.save_hits = save_hits
def run(self):
try:
with open(self.token_file_path, 'r') as file:
tokens = file.readlines()
if self.save_hits:
hits_file = open('hits.txt', 'a', encoding='utf-8')
for token in tokens:
token = token.strip()
user_info = get_user_info(token)
if not user_info or self.capture_tokens:
result = f"Başarılı Token: {token}\nKullanıcı ID: {user_info.get('id')}\nKullanıcı Adı: {user_info.get('username')}\nE-Posta: {user_info.get('email')}\nE-Posta Onaylı mı ?: {translate_boolean(user_info.get('verified'))}\nNumara: {user_info.get('phone')}\n2 FA Varmı ?: {translate_boolean(user_info.get('mfa_enabled'))}\nNitro Durumu: {translate_nitro(user_info.get('premium_type'))}"
else:
result = f'Başarılı Token: {token}'
self.progress.emit(result)
if self.save_hits:
hits_file.write(result + '\n\n')
if self.save_hits:
hits_file.close()
except Exception as e:
self.progress.emit(f'Hata oluştu: {e}')
self.finished.emit()
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(600, 400)
self.centralwidget = QtWidgets.QWidget(MainWindow)
MainWindow.setCentralWidget(self.centralwidget)
self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget)
self.textBrowser.setGeometry(10, 10, 580, 200)
self.loadButton = QtWidgets.QPushButton("Token Dosyası Yükle", self.centralwidget)
self.loadButton.setGeometry(10, 220, 150, 30)
self.loadButton.clicked.connect(self.load_token_file)
self.startButton = QtWidgets.QPushButton("Kontrolü Başlat", self.centralwidget)
self.startButton.setGeometry(170, 220, 150, 30)
self.startButton.clicked.connect(self.start_check)
self.checkBox = QtWidgets.QCheckBox("Token'ları yakala", self.centralwidget)
self.checkBox.setGeometry(330, 220, 150, 30)
self.checkBox_2 = QtWidgets.QCheckBox("Başarıları kaydet", self.centralwidget)
self.checkBox_2.setGeometry(490, 220, 150, 30)
self.tokenHitsListWidget = QListWidget(self.centralwidget)
self.tokenHitsListWidget.setGeometry(10, 260, 580, 130)
class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.setupUi(self)
self.token_file_path = None
self.setWindowIcon(QtGui.QIcon('logolar/logo.png'))
def load_token_file(self):
options = QFileDialog.Options()
file_name, _ = QFileDialog.getOpenFileName(self, 'Token Dosyasını Seçin', '', 'Text Files (*.txt);;All Files (*)', options=options)
if file_name:
self.token_file_path = file_name
self.textBrowser.append(f'Dosya yolu alındı: {self.token_file_path}')
def start_check(self):
if not self.token_file_path:
self.textBrowser.setPlainText('Token dosyasını yüklemeniz gerekiyor.')
return
self.textBrowser.append('Başlatıldı')
capture_tokens = self.checkBox.isChecked()
save_hits = self.checkBox_2.isChecked()
self.worker = Worker(self.token_file_path, capture_tokens, save_hits)
self.worker.finished.connect(self.on_finish)
self.worker.progress.connect(self.on_progress)
self.worker.start()
def on_progress(self, message):
self.tokenHitsListWidget.addItem(message)
def on_finish(self):
self.textBrowser.append('İşlem tamamlandı.')
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())