🕵️♂️ (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: ruff fixes
kaifcodec6157d45ee5e6
diff --git a/pyproject.toml b/pyproject.tomlindex c08426c..961955e 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -16,7 +16,7 @@ dependencies = ["colorama"]-requires-python = ">=3.7"+requires-python = ">=3.10"keywords = ["username", "checker", "availability", "social", "tech", "python", "user-scanner"][project.urls]@@ -30,4 +30,4 @@ exclude = ["tests/", "docs/", ".github/", ".git", "rm_pycache.py", "che.py", ".g[tool.pytest.ini_options]pythonpath = "."-testpaths = ["tests"]\ No newline at end of file+testpaths = ["tests"]diff --git a/user_scanner/__main__.py b/user_scanner/__main__.pyindex 8da024f..de6e7e1 100644--- a/user_scanner/__main__.py+++ b/user_scanner/__main__.py@@ -1,6 +1,5 @@import argparseimport time-import reimport sysfrom user_scanner.cli import printerfrom user_scanner.core.orchestrator import generate_permutations, load_categories@@ -119,7 +118,7 @@ def main():print(Printer.get_start())for i, name in enumerate(usernames):is_last = i == len(usernames) - 1- if arg == None:+ if arg is None:results.extend(func(name, Printer, is_last))else:results.extend(func(arg, name, Printer, is_last))diff --git a/user_scanner/cli/banner.py b/user_scanner/cli/banner.pyindex 9c40c7d..e127c87 100644--- a/user_scanner/cli/banner.py+++ b/user_scanner/cli/banner.py@@ -1,4 +1,3 @@-import jsonfrom colorama import Fore, Style, initfrom ..core.version import load_local_versiondiff --git a/user_scanner/cli/printer.py b/user_scanner/cli/printer.pyindex 4192bfa..845cb24 100644--- a/user_scanner/cli/printer.py+++ b/user_scanner/cli/printer.py@@ -15,7 +15,7 @@ def indentate(msg: str, indent: int):class Printer:def __init__(self, format: Literal["console", "csv", "json"]) -> None:- if not format in ["console", "csv", "json"]:+ if format not in ["console", "csv", "json"]:raise ValueError(f"Invalid output-format: {format}")self.mode: str = formatself.indent: int = 0diff --git a/user_scanner/core/orchestrator.py b/user_scanner/core/orchestrator.pyindex 670600e..aade967 100644--- a/user_scanner/core/orchestrator.py+++ b/user_scanner/core/orchestrator.py@@ -32,8 +32,8 @@ def load_categories() -> Dict[str, Path]:for subfolder in root.iterdir():if subfolder.is_dir() and \- not subfolder.name.lower() in ["cli", "utils", "core"] and \- not "__" in subfolder.name: # Removes __pycache__+ subfolder.name.lower() not in ["cli", "utils", "core"] and \+ "__" not in subfolder.name: # Removes __pycache__categories[subfolder.name] = subfolder.resolve()return categories@@ -90,9 +90,9 @@ def run_module_single(module, username: str, printer: Printer, last: bool = Trueif category:result.update(category=category)- site_name = get_site_name(module)+ get_site_name(module)msg = printer.get_result_output(result)- if last == False and printer.is_json:+ if not last and printer.is_json:msg += ","print(msg)@@ -116,9 +116,9 @@ def run_checks_category(category_path: Path, username: str, printer: Printer, laresults.append(result)is_last = last and is_last_value(modules, i)- site_name = get_site_name(modules[i])+ get_site_name(modules[i])msg = printer.get_result_output(result)- if is_last == False and printer.is_json:+ if not is_last and printer.is_json:msg += ","print(msg)@@ -142,7 +142,7 @@ def run_checks(username: str, printer: Printer, last: bool = True) -> List[Resuldef make_request(url: str, **kwargs) -> httpx.Response:"""Simple wrapper to **httpx.get** that predefines headers and timeout"""- if not "headers" in kwargs:+ if "headers" not in kwargs:kwargs["headers"] = {'User-Agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",@@ -151,7 +151,7 @@ def make_request(url: str, **kwargs) -> httpx.Response:'sec-fetch-dest': "document",}- if not "timeout" in kwargs:+ if "timeout" not in kwargs:kwargs["timeout"] = 5.0method = kwargs.pop("method", "GET")diff --git a/user_scanner/core/result.py b/user_scanner/core/result.pyindex 57a027b..865657f 100644--- a/user_scanner/core/result.py+++ b/user_scanner/core/result.py@@ -1,5 +1,4 @@from enum import Enum-from typing import LiteralDEBUG_MSG = """Result {{status: {status},@@ -80,10 +79,10 @@ class Result:return self.status.valuedef has_reason(self) -> bool:- return self.reason != None+ return self.reason is not Nonedef get_reason(self) -> str:- if self.reason == None:+ if self.reason is None:return ""if isinstance(self.reason, str):return self.reasondiff --git a/user_scanner/creator/hashnode.py b/user_scanner/creator/hashnode.pyindex 139bf20..1098486 100644--- a/user_scanner/creator/hashnode.py+++ b/user_scanner/creator/hashnode.py@@ -1,4 +1,3 @@-import httpxfrom user_scanner.core.result import Resultfrom user_scanner.core.orchestrator import generic_validatediff --git a/user_scanner/social/discord.py b/user_scanner/social/discord.pyindex 8a69000..ef3ea05 100644--- a/user_scanner/social/discord.py+++ b/user_scanner/social/discord.py@@ -1,4 +1,3 @@-import httpxfrom user_scanner.core.result import Resultfrom user_scanner.core.orchestrator import generic_validate