π΅οΈββοΈ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
Implement threading
Vamato99584ab82ce7
diff --git a/user_scanner/core/orchestrator.py b/user_scanner/core/orchestrator.pyindex a89b51b..843d9be 100644--- a/user_scanner/core/orchestrator.py+++ b/user_scanner/core/orchestrator.py@@ -1,6 +1,11 @@import importlibimport pkgutilfrom colorama import Fore, Style+import threading++lock = threading.Condition()+#Basically which thread is the one to print+print_queue = 0def load_modules(package):@@ -13,7 +18,8 @@ def load_modules(package):print(f"Failed to import {name}: {e}")return modules-def run_module_single(module, username):+def worker_single(module, username, i):+ global print_queuefunc = next((getattr(module, f) for f in dir(module)if f.startswith("validate_") and callable(getattr(module, f))), None)@@ -21,27 +27,51 @@ def run_module_single(module, username):if site_name == "X":site_name = "X (Twitter)"+ output = ""if func:try:result = func(username)if result == 1:- print(f" {Fore.GREEN}[β] {site_name}: Available{Style.RESET_ALL}")+ output = f" {Fore.GREEN}[β] {site_name}: Available{Style.RESET_ALL}"elif result == 0:- print(f" {Fore.RED}[β] {site_name}: Taken{Style.RESET_ALL}")+ output = f" {Fore.RED}[β] {site_name}: Taken{Style.RESET_ALL}"else:- print(f" {Fore.YELLOW}[!] {site_name}: Error{Style.RESET_ALL}")+ output = f" {Fore.YELLOW}[!] {site_name}: Error{Style.RESET_ALL}"except Exception as e:- print(f" {Fore.YELLOW}[!] {site_name}: Exception - {e}{Style.RESET_ALL}")+ output = f" {Fore.YELLOW}[!] {site_name}: Exception - {e}{Style.RESET_ALL}"else:- print(f" {Fore.YELLOW}[!] {site_name} has no validate_ function{Style.RESET_ALL}")+ output = f" {Fore.YELLOW}[!] {site_name} has no validate_ function{Style.RESET_ALL}"++ with lock:+ #Waits for in-order printing+ while i != print_queue:+ lock.wait()++ print(output)+ print_queue += 1+ lock.notify_all()+def run_module_single(module, username):+ #Just executes as if it was a thread+ worker_single(module, username, print_queue)+def run_checks_category(package, username, verbose=False):+ global print_queue+modules = load_modules(package)category_name = package.__name__.split('.')[-1].capitalize()print(f"{Fore.MAGENTA}== {category_name} SITES =={Style.RESET_ALL}")- for module in modules:- run_module_single(module, username)+ print_queue = 0++ threads = []+ for i, module in enumerate(modules):+ t = threading.Thread(target=worker_single, args=(module, username, i))+ threads.append(t)+ t.start()++ for t in threads:+ t.join()def run_checks(username):from user_scanner import dev, social, creator, community, gaming