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.

feat: thread only_found parameter through email scan orchestrator

ebit89f4deca9756
diff --git a/user_scanner/core/email_orchestrator.py b/user_scanner/core/email_orchestrator.py
index a7c1010..b4f43e9 100644
--- a/user_scanner/core/email_orchestrator.py
+++ b/user_scanner/core/email_orchestrator.py
@@ -12,7 +12,7 @@ from user_scanner.core.result import Result
MAX_CONCURRENT_REQUESTS = 15
-async def _async_worker(module: ModuleType, email: str, sem: asyncio.Semaphore, show_url: bool = False) -> Result:
+async def _async_worker(module: ModuleType, email: str, sem: asyncio.Semaphore, show_url: bool = False, only_found: bool = False) -> Result:
async with sem:
module_name = module.__name__.split(".")[-1]
func_name = f"validate_{module_name}"
@@ -27,7 +27,7 @@ async def _async_worker(module: ModuleType, email: str, sem: asyncio.Semaphore,
if not hasattr(module, func_name):
return (
- Result.error(f"Function {func_name} not found").update(**params).show(show_url=show_url)
+ Result.error(f"Function {func_name} not found").update(**params).show(show_url=show_url, only_found=only_found)
)
func = getattr(module, func_name)
@@ -38,33 +38,33 @@ async def _async_worker(module: ModuleType, email: str, sem: asyncio.Semaphore,
except Exception as e:
result = Result.error(e)
- return result.update(**params).show(show_url=show_url)
+ return result.update(**params).show(show_url=show_url, only_found=only_found)
-async def _run_batch(modules: List[ModuleType], email: str, show_url: bool = False) -> List[Result]:
+async def _run_batch(modules: List[ModuleType], email: str, show_url: bool = False, only_found: bool = False) -> List[Result]:
sem = asyncio.Semaphore(MAX_CONCURRENT_REQUESTS)
tasks = []
for module in modules:
- tasks.append(_async_worker(module, email, sem, show_url=show_url))
+ tasks.append(_async_worker(module, email, sem, show_url=show_url, only_found=only_found))
if not tasks:
return []
return list(await asyncio.gather(*tasks))
-def run_email_module_batch(module: ModuleType, email: str, show_url: bool = False) -> List[Result]:
- return asyncio.run(_run_batch([module], email, show_url=show_url))
+def run_email_module_batch(module: ModuleType, email: str, show_url: bool = False, only_found: bool = False) -> List[Result]:
+ return asyncio.run(_run_batch([module], email, show_url=show_url, only_found=only_found))
-def run_email_category_batch(category_path: Path, email: str, show_url: bool = False) -> List[Result]:
+def run_email_category_batch(category_path: Path, email: str, show_url: bool = False, only_found: bool = False) -> List[Result]:
cat_name = category_path.stem.capitalize()
print(f"\n{Fore.MAGENTA}== {cat_name} SITES =={Style.RESET_ALL}")
modules = load_modules(category_path)
- return asyncio.run(_run_batch(modules, email, show_url=show_url))
+ return asyncio.run(_run_batch(modules, email, show_url=show_url, only_found=only_found))
-def run_email_full_batch(email: str, show_url: bool = False) -> List[Result]:
+def run_email_full_batch(email: str, show_url: bool = False, only_found: bool = False) -> List[Result]:
categories = load_categories(is_email=True)
all_results = []
@@ -72,7 +72,7 @@ def run_email_full_batch(email: str, show_url: bool = False) -> List[Result]:
print(f"\n{Fore.MAGENTA}== {cat_name.upper()} SITES =={Style.RESET_ALL}")
modules = load_modules(cat_path)
- cat_results = asyncio.run(_run_batch(modules, email, show_url=show_url))
+ cat_results = asyncio.run(_run_batch(modules, email, show_url=show_url, only_found=only_found))
all_results.extend(cat_results)
return all_results