π΅οΈββοΈ (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
feat: add email file support and built-in proxy validation
Mohamed Saidi3307ad1d9733
diff --git a/README.md b/README.mdindex 39fe701..4dbd721 100644--- a/README.md+++ b/README.md@@ -35,7 +35,9 @@ Perfect for finding a **unique username** across GitHub, Twitter, Reddit, Instag- β Command-line interface ready: works immediately after `pip install`.- β Lightweight with minimal dependencies; runs on any machine.- β **Proxy support** with round-robin rotation (contributed by [moh-saidi](https://github.com/moh-saidi))+- β **Proxy validation** to test and filter working proxies before scanning (contributed by [moh-saidi](https://github.com/moh-saidi))- β **Bulk username scanning** from file support for checking multiple usernames at once (contributed by [moh-saidi](https://github.com/moh-saidi))+- β **Bulk email scanning** from file support for checking multiple emails at once (contributed by [moh-saidi](https://github.com/moh-saidi))---## Installation@@ -77,6 +79,22 @@ user-scanner -uf usernames.txt -c dev # scan multiple users on dev platforms onluser-scanner -uf usernames.txt -m github # scan multiple users on GitHub only```+### Bulk email scanning++Scan multiple emails from a file (one email per line):++```bash+user-scanner -ef emails.txt+user-scanner --email-file emails.txt # long version+```++Combine with categories or modules:++```bash+user-scanner -ef emails.txt -c social # scan multiple emails on social platforms+user-scanner -ef emails.txt -m instagram # scan multiple emails on Instagram+```+### Selective scanningScan only specific categories or single modules:@@ -110,6 +128,18 @@ Route requests through proxy servers:user-scanner -u john_doe -P proxies.txt```+Validate proxies before scanning (tests each proxy against google.com):++```bash+user-scanner -u john_doe -P proxies.txt --validate-proxies+```++This will:+1. Test all proxies from the file+2. Filter out non-working proxies+3. Save working proxies to `validated_proxies.txt`+4. Use only validated proxies for scanning+See [PROXY_USAGE.md](PROXY_USAGE.md) for detailed proxy configuration and usage.## Important Flags@@ -119,11 +149,13 @@ See [PROXY_USAGE.md](PROXY_USAGE.md) for detailed proxy configuration and usage.| `-u, --username USERNAME` | Scan a single username across platforms || `-e, --email EMAIL` | Scan a single email across platforms || `-uf, --username-file FILE` | Scan multiple usernames from file (one per line) |+| `-ef, --email-file FILE` | Scan multiple emails from file (one per line) || `-c, --category CATEGORY` | Scan all platforms in a specific category || `-l, --list` | List all available modules for username scanning || `-m, --module MODULE` | Scan a single specific module || `-p, --permute PERMUTE` | Generate username permutations using a pattern/suffix || `-P, --proxy-file FILE` | Use proxies from file (one per line) |+| `--validate-proxies` | Validate proxies before scanning (tests against google.com) || `-s, --stop STOP` | Limit the number of permutations generated || `-d, --delay DELAY` | Delay (in seconds) between requests || `-f, --format {csv,json}` | Select output format |diff --git a/bulk_results.json b/bulk_results.jsonnew file mode 100644index 0000000..dc20aa1--- /dev/null+++ b/bulk_results.json@@ -0,0 +1,72 @@+[+ {+ "username": "john_doe",+ "category": "Dev",+ "site_name": "Github",+ "status": "Error",+ "reason": "Cannot start/end with hyphen or use double hyphens, underscores"+ },+ {+ "username": "alice_smith",+ "category": "Dev",+ "site_name": "Github",+ "status": "Error",+ "reason": "Cannot start/end with hyphen or use double hyphens, underscores"+ },+ {+ "username": "testuser",+ "category": "Dev",+ "site_name": "Github",+ "status": "Taken",+ "reason": ""+ },+ {+ "username": "developer123",+ "category": "Dev",+ "site_name": "Github",+ "status": "Taken",+ "reason": ""+ },+ {+ "username": "coderlife",+ "category": "Dev",+ "site_name": "Github",+ "status": "Taken",+ "reason": ""+ },+ {+ "username": "techguru",+ "category": "Dev",+ "site_name": "Github",+ "status": "Taken",+ "reason": ""+ },+ {+ "username": "gamerpro",+ "category": "Dev",+ "site_name": "Github",+ "status": "Taken",+ "reason": ""+ },+ {+ "username": "creative_mind",+ "category": "Dev",+ "site_name": "Github",+ "status": "Error",+ "reason": "Cannot start/end with hyphen or use double hyphens, underscores"+ },+ {+ "username": "digital_nomad",+ "category": "Dev",+ "site_name": "Github",+ "status": "Error",+ "reason": "Cannot start/end with hyphen or use double hyphens, underscores"+ },+ {+ "username": "code_master",+ "category": "Dev",+ "site_name": "Github",+ "status": "Error",+ "reason": "Cannot start/end with hyphen or use double hyphens, underscores"+ }+]\ No newline at end of filediff --git a/emails.txt b/emails.txtnew file mode 100644index 0000000..3e6ee04--- /dev/null+++ b/emails.txt@@ -0,0 +1,7 @@+# Test emails for bulk scanning+invalid-email-no-atdiff --git a/user_scanner/__main__.py b/user_scanner/__main__.pyindex 364574e..388d25d 100644--- a/user_scanner/__main__.py+++ b/user_scanner/__main__.py@@ -54,6 +54,8 @@ def main():group.add_argument("-e", "--email", help="Email to scan across platforms")group.add_argument("-uf", "--username-file",help="File containing usernames (one per line)")+ group.add_argument("-ef", "--email-file",+ help="File containing emails (one per line)")parser.add_argument("-c", "--category",help="Scan all platforms in a category")@@ -83,6 +85,10 @@ def main():parser.add_argument("-P", "--proxy-file", type=str, help="Path to proxy list file (one proxy per line)")+ parser.add_argument(+ "--validate-proxies", action="store_true",+ help="Validate proxies before scanning (tests against google.com)")+parser.add_argument("-U", "--update", action="store_true", help="Update the tool")@@ -111,16 +117,45 @@ def main():print(f" - {get_site_name(module)}")return- if not (args.username or args.email or args.username_file):+ if not (args.username or args.email or args.username_file or args.email_file):parser.print_help()return# Initialize proxy manager if proxy file is providedif args.proxy_file:try:- set_proxy_manager(args.proxy_file)- proxy_count = get_proxy_count()- print(f"{G}[+] Loaded {proxy_count} proxies from {args.proxy_file}{X}")+ # Validate proxies if flag is set+ if args.validate_proxies:+ print(f"{C}[*] Validating proxies from {args.proxy_file}...{X}")+ from user_scanner.core.helpers import validate_proxies, ProxyManager++ # Load proxies first+ temp_manager = ProxyManager(args.proxy_file)+ all_proxies = temp_manager.proxies+ print(f"{C}[*] Testing {len(all_proxies)} proxies...{X}")++ # Validate them+ working_proxies = validate_proxies(all_proxies)++ if not working_proxies:+ print(f"{R}[β] No working proxies found{X}")+ sys.exit(1)++ print(f"{G}[+] Found {len(working_proxies)} working proxies out of {len(all_proxies)}{X}")++ # Save working proxies to temp file+ temp_proxy_file = "validated_proxies.txt"+ with open(temp_proxy_file, 'w', encoding='utf-8') as f:+ for proxy in working_proxies:+ f.write(proxy + '\n')++ set_proxy_manager(temp_proxy_file)+ proxy_count = get_proxy_count()+ print(f"{G}[+] Using {proxy_count} validated proxies{X}")+ else:+ set_proxy_manager(args.proxy_file)+ proxy_count = get_proxy_count()+ print(f"{G}[+] Loaded {proxy_count} proxies from {args.proxy_file}{X}")except Exception as e:print(f"{R}[β] Error loading proxies: {e}{X}")sys.exit(1)@@ -128,8 +163,35 @@ def main():check_for_updates()print_banner()+ # Handle bulk email file+ if args.email_file:+ try:+ with open(args.email_file, 'r', encoding='utf-8') as f:+ emails = [line.strip() for line in f if line.strip() and not line.startswith('#')]++ # Validate email formats+ valid_emails = []+ for email in emails:+ if re.findall(r"^[^@\s]+@[^@\s]+\.[^@\s]+$", email):+ valid_emails.append(email)+ else:+ print(f"{Y}[!] Skipping invalid email format: {email}{X}")++ if not valid_emails:+ print(f"{R}[β] Error: No valid emails found in {args.email_file}{X}")+ sys.exit(1)++ print(f"{C}[+] Loaded {len(valid_emails)} emails from {args.email_file}{X}")+ is_email = True+ targets = valid_emails+ except FileNotFoundError:+ print(f"{R}[β] Error: File not found: {args.email_file}{X}")+ sys.exit(1)+ except Exception as e:+ print(f"{R}[β] Error reading email file: {e}{X}")+ sys.exit(1)# Handle bulk username file- if args.username_file:+ elif args.username_file:try:with open(args.username_file, 'r', encoding='utf-8') as f:usernames = [line.strip() for line in f if line.strip() and not line.startswith('#')]@@ -155,14 +217,14 @@ def main():targets = [target_name]# Handle permutations (only for single username/email)- if args.permute and not args.username_file:+ if args.permute and not (args.username_file or args.email_file):target_name = args.username or args.emailtargets = generate_permutations(target_name, args.permute, args.stop, is_email)print(C + f"[+] Generated {len(targets)} permutations" + Style.RESET_ALL)- elif args.permute and args.username_file:- print(f"{R}[β] Error: Permutations not supported with username file{X}")+ elif args.permute and (args.username_file or args.email_file):+ print(f"{R}[β] Error: Permutations not supported with file-based scanning{X}")sys.exit(1)results = []diff --git a/user_scanner/core/helpers.py b/user_scanner/core/helpers.pyindex 7afc4f6..86e4b8c 100644--- a/user_scanner/core/helpers.py+++ b/user_scanner/core/helpers.py@@ -6,6 +6,8 @@ from pathlib import Pathfrom typing import Dict, List, Optionalimport randomimport threading+import httpx+from concurrent.futures import ThreadPoolExecutor, as_completeddef get_site_name(module) -> str:@@ -97,6 +99,30 @@ def generate_permutations(username: str, pattern: str, limit: int | None = None,return sorted(permutations_set)+def validate_proxies(proxy_list: List[str], timeout: int = 5, max_workers: int = 50) -> List[str]:+ """Validate proxies by testing them against google.com. Returns list of working proxies."""+ working_proxies = []++ def test_proxy(proxy: str) -> Optional[str]:+ try:+ with httpx.Client(proxy=proxy, timeout=timeout) as client:+ response = client.get("https://www.google.com")+ if response.status_code == 200:+ return proxy+ except:+ pass+ return None++ with ThreadPoolExecutor(max_workers=max_workers) as executor:+ futures = {executor.submit(test_proxy, proxy): proxy for proxy in proxy_list}+ for future in as_completed(futures):+ result = future.result()+ if result:+ working_proxies.append(result)++ return working_proxies++class ProxyManager:"""Thread-safe proxy manager that loads and rotates proxies from a file."""diff --git a/validated_proxies.txt b/validated_proxies.txtnew file mode 100644index 0000000..c65922c--- /dev/null+++ b/validated_proxies.txt@@ -0,0 +1,5 @@+http://139.162.78.109:3128+http://139.59.1.14:3128+http://72.10.164.178:27637+http://8.219.97.248:80+http://138.36.22.229:8081