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: handle None category name during single module checks

kaifcodec4adebe11be17
diff --git a/user_scanner/core/orchestrator.py b/user_scanner/core/orchestrator.py
index 13775e8..9188ef3 100644
--- a/user_scanner/core/orchestrator.py
+++ b/user_scanner/core/orchestrator.py
@@ -49,6 +49,20 @@ def find_module(name: str):
return matches
+def find_category(module) -> str | None:
+
+ module_file = getattr(module, '__file__', None)
+ if not module_file:
+ return None
+
+ category = Path(module_file).parent.name.lower()
+ categories = load_categories()
+ if category in categories:
+ return category.capitalize()
+
+ return None
+
+
def worker_single(module, username: str) -> Result:
func = next((getattr(module, f) for f in dir(module)
@@ -68,9 +82,12 @@ def worker_single(module, username: str) -> Result:
def run_module_single(module, username: str, printer: Printer, last: bool = True) -> List[Result]:
- # Just executes as if it was a thread
result = worker_single(module, username)
+ category = find_category(module)
+ if category:
+ result.update(category=category)
+
site_name = get_site_name(module)
msg = printer.get_result_output(result)
if last == False and printer.is_json:
@@ -80,6 +97,7 @@ def run_module_single(module, username: str, printer: Printer, last: bool = True
return [result]
+
def run_checks_category(category_path: Path, username: str, printer: Printer, last: bool = True) -> List[Result]:
modules = load_modules(category_path)