π΅οΈββοΈ (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
Fix for X & args
kaifcodec3fbe525434d8
diff --git a/user_scanner/__init__.py b/user_scanner/__init__.pynew file mode 100644index 0000000..e69de29diff --git a/user_scanner/__main__.py b/user_scanner/__main__.pyindex 1a0f06b..6a34a88 100644--- a/user_scanner/__main__.py+++ b/user_scanner/__main__.py@@ -1,18 +1,89 @@import argparse-from user_scanner.core.orchestrator import run_checks+from user_scanner.core.orchestrator import run_checks, load_modules+from colorama import Fore, Style++CATEGORY_MAPPING = {+ "dev": "dev",+ "social": "social",+ "creator": "creator",+ "community": "community"+}++def list_modules(category=None):+ from user_scanner import dev, social, creator, community+ packages = {+ "dev": dev,+ "social": social,+ "creator": creator,+ "community": community+ }++ categories_to_list = [category] if category else packages.keys()++ for cat_name in categories_to_list:+ package = packages[cat_name]+ modules = load_modules(package)+ print(Fore.MAGENTA + f"\n== {cat_name.upper()} SITES =={Style.RESET_ALL}")+ for module in modules:+ site_name = module.__name__.split(".")[-1]+ print(f" - {site_name}")def main():parser = argparse.ArgumentParser(prog="user-scanner",- description="Scan a username across dev, social, creator, and community platforms."+ description="Scan usernames across multiple platforms.")parser.add_argument(- "-u", "--username",- required=True,- help="Username to scan across all supported platforms."+ "-u", "--username", help="Username to scan across platforms")+ parser.add_argument(+ "-c", "--category", choices=CATEGORY_MAPPING.keys(),+ help="Scan all platforms in a category"+ )+ parser.add_argument(+ "-m", "--module", help="Scan a single specific module across all categories"+ )+ parser.add_argument(+ "-l", "--list", action="store_true", help="List all available modules by category"+ )+ parser.add_argument(+ "-v", "--verbose", action="store_true", help="Enable verbose output"+ )+args = parser.parse_args()- run_checks(args.username)++ if args.list:+ list_modules(args.category)+ return++ if not args.username:+ print(Fore.RED + "[!] Please provide a username with -u or --username." + Style.RESET_ALL)+ return++ from user_scanner import dev, social, creator, community++ if args.module:+ # Single module search across all categories+ packages = [dev, social, creator, community]+ found = False+ for package in packages:+ modules = load_modules(package)+ for module in modules:+ site_name = module.__name__.split(".")[-1]+ if site_name.lower() == args.module.lower():+ from user_scanner.core.orchestrator import run_module_single+ run_module_single(module, args.username)+ found = True+ if not found:+ print(Fore.RED + f"[!] Module '{args.module}' not found in any category." + Style.RESET_ALL)+ elif args.category:+ # Category-wise scan+ category_package = eval(CATEGORY_MAPPING[args.category])+ from user_scanner.core.orchestrator import run_checks_category+ run_checks_category(category_package, args.username, args.verbose)+ else:+ # Full scan+ run_checks(args.username)if __name__ == "__main__":main()diff --git a/user_scanner/core/orchestrator.py b/user_scanner/core/orchestrator.pyindex 0d4ecff..baf78b4 100644--- a/user_scanner/core/orchestrator.py+++ b/user_scanner/core/orchestrator.py@@ -13,6 +13,40 @@ def load_modules(package):print(f"Failed to import {name}: {e}")return modules+def run_module_single(module, username):+ """+ Run a single module's validate_ function on the given username.+ """+ func = next((getattr(module, f) for f in dir(module)+ if f.startswith("validate_") and callable(getattr(module, f))), None)+ site_name = module.__name__.split('.')[-1].capitalize()+ if site_name == "X":+ site_name = "X (Twitter)"++ if func:+ try:+ result = func(username)+ if result == 1:+ print(f" {Fore.GREEN}[β] {site_name}: Available{Style.RESET_ALL}")+ elif result == 0:+ print(f" {Fore.RED}[β] {site_name}: Taken{Style.RESET_ALL}")+ else:+ print(f" {Fore.YELLOW}[!] {site_name}: Error{Style.RESET_ALL}")+ except Exception as e:+ print(f" {Fore.YELLOW}[!] {site_name}: Exception - {e}{Style.RESET_ALL}")+ else:+ print(f" {Fore.YELLOW}[!] {site_name} has no validate_ function{Style.RESET_ALL}")++def run_checks_category(package, username, verbose=False):+ """+ Run all modules in a given package (category) on the username.+ """+ 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)def run_checks(username):diff --git a/user_scanner/social/x.py b/user_scanner/social/x.pyindex 72940a1..b73c540 100644--- a/user_scanner/social/x.py+++ b/user_scanner/social/x.py@@ -4,11 +4,11 @@ from httpx import ConnectError, TimeoutExceptiondef validate_x(user):url = "https://api.twitter.com/i/users/username_available.json"-+params = {"username": user,- "full_name": "Test User",- "email": "[email protected]"+ "full_name": "John Doe",+ "email": "[email protected]"}headers = {@@ -19,9 +19,10 @@ def validate_x(user):try:response = httpx.get(url, params=params, headers=headers, timeout = 3.0)status = response.status_code-+ print(status)if status in [401, 403, 429]:return 2+elif status == 200:data = response.json()