🕵️♂️ (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: typing errors found by mypy
Vamatod168a0423083
diff --git a/user_scanner/cli/printer.py b/user_scanner/cli/printer.pyindex efa3922..4192bfa 100644--- a/user_scanner/cli/printer.py+++ b/user_scanner/cli/printer.py@@ -42,7 +42,7 @@ class Printer:def get_end(self, json_char: str = "]") -> str:if not self.is_json:- return+ return ""self.indent = max(self.indent - 1, 0)return indentate(json_char, self.indent)diff --git a/user_scanner/core/orchestrator.py b/user_scanner/core/orchestrator.pyindex 94e1770..670600e 100644--- a/user_scanner/core/orchestrator.py+++ b/user_scanner/core/orchestrator.py@@ -6,7 +6,7 @@ from itertools import permutationsimport httpxfrom pathlib import Pathfrom user_scanner.cli.printer import Printer-from user_scanner.core.result import Result, AnyResult+from user_scanner.core.result import Resultfrom typing import Callable, Dict, Listfrom user_scanner.core.utils import get_site_name, is_last_value@@ -17,6 +17,8 @@ def load_modules(category_path: Path):if file.name == "__init__.py":continuespec = importlib.util.spec_from_file_location(file.stem, str(file))+ if spec is None or spec.loader is None:+ continuemodule = importlib.util.module_from_spec(spec)spec.loader.exec_module(module)@@ -131,7 +133,7 @@ def run_checks(username: str, printer: Printer, last: bool = True) -> List[Resulcategories = list(load_categories().values())for i, category_path in enumerate(categories):- last_cat: int = last and (i == len(categories) - 1)+ last_cat = last and (i == len(categories) - 1)temp = run_checks_category(category_path, username, printer, last_cat)results.extend(temp)@@ -157,14 +159,13 @@ def make_request(url: str, **kwargs) -> httpx.Response:return httpx.request(method.upper(), url, **kwargs)-def generic_validate(url: str, func: Callable[[httpx.Response], AnyResult], **kwargs) -> AnyResult:+def generic_validate(url: str, func: Callable[[httpx.Response], Result], **kwargs) -> Result:"""A generic validate function that makes a request and executes the provided function on the response."""try:response = make_request(url, **kwargs)result = func(response)- result.url = urlreturn resultexcept Exception as e:return Result.error(e, url=url)diff --git a/user_scanner/core/result.py b/user_scanner/core/result.pyindex 36b3b1f..57a027b 100644--- a/user_scanner/core/result.py+++ b/user_scanner/core/result.py@@ -124,5 +124,3 @@ class Result:return NotImplemented--AnyResult = Literal[0, 1, 2] | Resultdiff --git a/user_scanner/gaming/monkeytype.py b/user_scanner/gaming/monkeytype.pyindex ece5446..db5394c 100644--- a/user_scanner/gaming/monkeytype.py+++ b/user_scanner/gaming/monkeytype.py@@ -1,7 +1,8 @@from user_scanner.core.orchestrator import generic_validatefrom user_scanner.core.result import Result-def validate_monkeytype(user: str) -> int:++def validate_monkeytype(user: str) -> Result:url = f"https://api.monkeytype.com/users/checkName/{user}"diff --git a/user_scanner/social/telegram.py b/user_scanner/social/telegram.pyindex 538fa6b..bae31e7 100644--- a/user_scanner/social/telegram.py+++ b/user_scanner/social/telegram.py@@ -3,13 +3,13 @@ from user_scanner.core.orchestrator import generic_validatefrom user_scanner.core.result import Result-def validate_telegram(user: str) -> int:+def validate_telegram(user: str) -> Result:url = f"https://t.me/{user}"def process(r):if r.status_code == 200:if re.search(r'<div[^>]*class="tgme_page_extra"[^>]*>', r.text):- return Result.taken()+ return Result.taken()else:return Result.available()return Result.error()