Skip to content

🕵️‍♂️ (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.

Fix: Result is printed when email validator isn't found

Vamatob45edf0c111f
diff --git a/user_scanner/core/email_orchestrator.py b/user_scanner/core/email_orchestrator.py
index 77dceb7..4728f37 100644
--- a/user_scanner/core/email_orchestrator.py
+++ b/user_scanner/core/email_orchestrator.py
@@ -1,10 +1,11 @@
import asyncio
from pathlib import Path
-from typing import List
from types import ModuleType
+from typing import List
+
from colorama import Fore, Style
-from user_scanner.core.helpers import load_categories, load_modules, find_category
+from user_scanner.core.helpers import find_category, load_categories, load_modules
from user_scanner.core.result import Result
# Concurrency control
@@ -13,11 +14,21 @@ MAX_CONCURRENT_REQUESTS = 15
async def _async_worker(module: ModuleType, email: str, sem: asyncio.Semaphore) -> Result:
async with sem:
- module_name = module.__name__.split('.')[-1]
+ module_name = module.__name__.split(".")[-1]
func_name = f"validate_{module_name}"
+ actual_cat = find_category(module) or "Email"
+
+ params = {
+ "site_name": module_name.capitalize(),
+ "username": email,
+ "category": actual_cat,
+ "is_email": True,
+ }
if not hasattr(module, func_name):
- return Result.error(f"Function {func_name} not found")
+ return (
+ Result.error(f"Function {func_name} not found").update(**params).show()
+ )
func = getattr(module, func_name)
@@ -27,21 +38,10 @@ async def _async_worker(module: ModuleType, email: str, sem: asyncio.Semaphore)
except Exception as e:
result = Result.error(e)
- # Use helper to get actual dir name for the Result object
- actual_cat = find_category(module) or "Email"
-
- result.update(
- site_name=module_name.capitalize(),
- username=email,
- category=actual_cat,
- is_email=True
- )
-
- print(result.get_console_output())
- return result
+ return result.update(**params).show()
-async def _run_batch(modules: List[ModuleType], email:str) -> List[Result]:
+async def _run_batch(modules: List[ModuleType], email: str) -> List[Result]:
sem = asyncio.Semaphore(MAX_CONCURRENT_REQUESTS)
tasks = []
for module in modules:
diff --git a/user_scanner/core/orchestrator.py b/user_scanner/core/orchestrator.py
index 1857514..bc15445 100644
--- a/user_scanner/core/orchestrator.py
+++ b/user_scanner/core/orchestrator.py
@@ -15,7 +15,11 @@ def _worker_single(module: ModuleType, username: str) -> Result:
site_name = get_site_name(module)
if not func:
- return Result.error(f"{site_name} has no validate_ function", site_name=site_name, username=username)
+ return Result.error(
+ f"{site_name} has no validate_ function",
+ site_name=site_name,
+ username=username,
+ )
try:
result: Result = func(username)
@@ -48,8 +52,7 @@ def run_user_category(category_path: Path, username: str) -> List[Result]:
for result in exec_map:
result.update(category=category_name)
results.append(result)
-
- print(result.get_console_output())
+ result.show()
return results
diff --git a/user_scanner/core/result.py b/user_scanner/core/result.py
index 3feed93..14bcb42 100644
--- a/user_scanner/core/result.py
+++ b/user_scanner/core/result.py
@@ -61,6 +61,7 @@ class Result:
for field in ("username", "site_name", "category", "is_email"):
if field in kwargs and kwargs[field] is not None:
setattr(self, field, kwargs[field])
+ return self
@classmethod
def taken(cls, reason: str | Exception | None = None, **kwargs):
@@ -148,11 +149,18 @@ class Result:
def get_console_output(self) -> str:
site_name = self.site_name
- username = self.username
status_text = self.status.to_label(self.is_email)
+ username = ""
+ if self.username:
+ username = f"({self.username})"
color = self.get_output_color()
icon = self.get_output_icon()
reason = f" ({self.get_reason()})" if self.has_reason() else ""
- return f" {color}{icon} {site_name} ({username}): {status_text}{reason}{Style.RESET_ALL}"
+ return f" {color}{icon} {site_name} {username}: {status_text}{reason}{Style.RESET_ALL}"
+
+ def show(self):
+ """Prints the console output and returns itself for chaining"""
+ print(self.get_console_output())
+ return self