🕵️♂️ (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
formatted: removed unnecessary code
Vamatod797538d9e4d
diff --git a/user_scanner/core/result.py b/user_scanner/core/result.pyindex dc175e3..ea55b47 100644--- a/user_scanner/core/result.py+++ b/user_scanner/core/result.py@@ -37,7 +37,7 @@ class Result:return cls(Status.ERROR, reason)@classmethod- def from_number(cls, i: int, reason: str | None):+ def from_number(cls, i: int, reason: str | Exception | None = None):try:status = Status(i)except ValueError:@@ -60,6 +60,9 @@ class Result:msg = humanize_exception(self.reason)return f"{type(self.reason).__name__}: {msg.capitalize()}"+ def __str__(self):+ return self.get_reason()+def __eq__(self, other):if isinstance(other, Status):return self.status == otherdiff --git a/user_scanner/creator/hashnode.py b/user_scanner/creator/hashnode.pyindex 4fdfa19..4087ab7 100644--- a/user_scanner/creator/hashnode.py+++ b/user_scanner/creator/hashnode.py@@ -1,5 +1,4 @@import httpx-import jsonfrom user_scanner.core.result import Resultdiff --git a/user_scanner/creator/itch_io.py b/user_scanner/creator/itch_io.pyindex 58329b2..417f3d7 100644--- a/user_scanner/creator/itch_io.py+++ b/user_scanner/creator/itch_io.py@@ -2,11 +2,6 @@ from user_scanner.core.orchestrator import status_validatedef validate_itch_io(user):- """- Checks if a itch.io username is available.- Returns: 1 -> available, 0 -> taken, 2 -> error- """-url = f"https://{user}.itch.io"return status_validate(url, 404, 200, follow_redirects=True)diff --git a/user_scanner/creator/medium.py b/user_scanner/creator/medium.pyindex 6072ca2..2fb8872 100644--- a/user_scanner/creator/medium.py+++ b/user_scanner/creator/medium.py@@ -1,5 +1,5 @@-import httpx-from httpx import ConnectError, TimeoutException+from user_scanner.core.orchestrator import generic_validate+from user_scanner.core.result import Resultdef validate_medium(user):@@ -10,24 +10,19 @@ def validate_medium(user):'Accept': "text/html",}- try:- response = httpx.get(url, headers=headers, timeout=3.0)-+ def process(response):if response.status_code == 200:html_text = response.textusername_tag = f'property="profile:username" content="{user}"'if username_tag in html_text:- return 0+ return Result.taken()else:- return 1- return 2+ return Result.available()+ return Result.error()- except (ConnectError, TimeoutException):- return 2- except Exception:- return 2+ return generic_validate(url, process, headers=headers)if __name__ == "__main__":diff --git a/user_scanner/creator/patreon.py b/user_scanner/creator/patreon.pyindex d02a961..a7714c9 100644--- a/user_scanner/creator/patreon.py+++ b/user_scanner/creator/patreon.py@@ -8,12 +8,6 @@ def validate_patreon(user):if __name__ == "__main__":- try:- import httpx- except ImportError:- print("Error: 'httpx' library is not installed.")- exit()-user = input("Username?: ").strip()result = validate_patreon(user)diff --git a/user_scanner/creator/producthunt.py b/user_scanner/creator/producthunt.pyindex 85e9ca6..4b130d2 100644--- a/user_scanner/creator/producthunt.py+++ b/user_scanner/creator/producthunt.py@@ -1,5 +1,4 @@-import httpx-from httpx import ConnectError, TimeoutException+from user_scanner.core.orchestrator import status_validatedef validate_producthunt(user):@@ -12,23 +11,7 @@ def validate_producthunt(user):'Accept-Language': "en-US,en;q=0.9",}- try:- response = httpx.get(url, headers=headers,- timeout=3.0, follow_redirects=True)- status = response.status_code-- if status == 200:- return 0- elif status == 404:- return 1- else:- return 2-- except (ConnectError, TimeoutException):- return 2- except Exception:- return 2-+ status_validate(url, 404, 200, headers=headers, follow_redirects=True)if __name__ == "__main__":user = input("Username?: ").strip()diff --git a/user_scanner/dev/npmjs.py b/user_scanner/dev/npmjs.pyindex 5268e7f..c39fc04 100644--- a/user_scanner/dev/npmjs.py+++ b/user_scanner/dev/npmjs.py@@ -24,5 +24,4 @@ if __name__ == "__main__":elif result == 0:print("Unavailable!")else:- reason = result.get_reason()- print(f"Error occurred! Reason: {reason}")+ print(f"Error occurred! Reason: {result}")diff --git a/user_scanner/donation/buymeacoffee.py b/user_scanner/donation/buymeacoffee.pyindex 26a36cc..239fc9e 100644--- a/user_scanner/donation/buymeacoffee.py+++ b/user_scanner/donation/buymeacoffee.py@@ -1,6 +1,3 @@-import httpx-from httpx import ConnectError, TimeoutException-from user_scanner.core.orchestrator import status_validatediff --git a/user_scanner/gaming/chess_com.py b/user_scanner/gaming/chess_com.pyindex 29ebff7..e170d6b 100644--- a/user_scanner/gaming/chess_com.py+++ b/user_scanner/gaming/chess_com.py@@ -27,12 +27,6 @@ def validate_chess_com(user):if __name__ == "__main__":- try:- import httpx- except ImportError:- print("Error: 'httpx' library is not installed.")- exit()-user = input("Username?: ").strip()result = validate_chess_com(user)diff --git a/user_scanner/gaming/minecraft.py b/user_scanner/gaming/minecraft.pyindex 87642e6..8976d7d 100644--- a/user_scanner/gaming/minecraft.py+++ b/user_scanner/gaming/minecraft.py@@ -2,11 +2,6 @@ from user_scanner.core.orchestrator import status_validatedef validate_minecraft(user):- """- Checks for minecraft username with mojang api.- Returns: 1 -> available, 0 -> taken, 2 -> error- """-url = f"https://api.mojang.com/minecraft/profile/lookup/name/{user}"return status_validate(url, 404, 200, follow_redirects=True)diff --git a/user_scanner/gaming/monkeytype.py b/user_scanner/gaming/monkeytype.pyindex e2e9872..ece5446 100644--- a/user_scanner/gaming/monkeytype.py+++ b/user_scanner/gaming/monkeytype.py@@ -34,12 +34,6 @@ def validate_monkeytype(user: str) -> int:if __name__ == "__main__":- try:- import httpx # noqa: F401- except ImportError:- print("Error: 'httpx' library is not installed.")- raise SystemExit(1)-user = input("Username?: ").strip()result = validate_monkeytype(user)diff --git a/user_scanner/gaming/osu.py b/user_scanner/gaming/osu.pyindex 3ab73f5..e1c937c 100644--- a/user_scanner/gaming/osu.py+++ b/user_scanner/gaming/osu.py@@ -2,11 +2,6 @@ from user_scanner.core.orchestrator import status_validatedef validate_osu(user):- """- Checks if a Osu username is available.- Returns: 1 -> available, 0 -> taken, 2 -> error- """-url = f"https://osu.ppy.sh/users/{user}"return status_validate(url, 404, [200, 302], follow_redirects=True)diff --git a/user_scanner/gaming/roblox.py b/user_scanner/gaming/roblox.pyindex 701b824..0901ac4 100644--- a/user_scanner/gaming/roblox.py+++ b/user_scanner/gaming/roblox.py@@ -3,11 +3,6 @@ from user_scanner.core.result import Resultdef validate_roblox(user):- """- Checks if a roblox username is available.- Returns: 1 -> available, 0 -> taken, 2 -> error- """-# official apiurl = f"https://users.roblox.com/v1/users/search?keyword={user}&limit=10"diff --git a/user_scanner/gaming/steam.py b/user_scanner/gaming/steam.pyindex 1832b14..34685e2 100644--- a/user_scanner/gaming/steam.py+++ b/user_scanner/gaming/steam.py@@ -3,19 +3,15 @@ from user_scanner.core.result import Resultdef validate_steam(user):- """- Checks if a steam username is available.- Returns: 1 -> available, 0 -> taken, 2 -> error- """-url = f"https://steamcommunity.com/id/{user}/"def process(response):if response.status_code == 200:- if response.text.find("Error</title>") != -1:+ if "Error</title>" in response.text:return Result.available()else:return Result.taken()+return Result.error("Invalid status code")return generic_validate(url, process)diff --git a/user_scanner/social/mastodon.py b/user_scanner/social/mastodon.pyindex d739a00..2b516cb 100644--- a/user_scanner/social/mastodon.py+++ b/user_scanner/social/mastodon.py@@ -8,12 +8,6 @@ def validate_mastodon(user):if __name__ == "__main__":- try:- import httpx- except ImportError:- print("Error: 'httpx' library is not installed.")- exit()-user = input("Username?: ").strip()result = validate_mastodon(user)diff --git a/user_scanner/social/reddit.py b/user_scanner/social/reddit.pyindex 68d1e9c..0e81d48 100644--- a/user_scanner/social/reddit.py+++ b/user_scanner/social/reddit.py@@ -1,4 +1,5 @@from user_scanner.core.orchestrator import generic_validate+from user_scanner.core.result import Resultdef validate_reddit(user):@@ -7,11 +8,11 @@ def validate_reddit(user):def process(response):if response.status_code == 200:if "Sorry, nobody on Reddit goes by that name." in response.text:- return 1+ return Result.available()else:- return 0+ return Result.taken()else:- return 2+ return Result.error()return generic_validate(url, process, follow_redirects=True)diff --git a/user_scanner/social/telegram.py b/user_scanner/social/telegram.pyindex a9f7b65..538fa6b 100644--- a/user_scanner/social/telegram.py+++ b/user_scanner/social/telegram.py@@ -1,18 +1,18 @@import refrom user_scanner.core.orchestrator import generic_validate+from user_scanner.core.result import Resultdef validate_telegram(user: str) -> int:- """- Checks if a Telegram username is available.- Returns: 1 -> available, 0 -> taken, 2 -> error- """url = f"https://t.me/{user}"def process(r):if r.status_code == 200:- return 0 if re.search(r'<div[^>]*class="tgme_page_extra"[^>]*>', r.text) else 1- return 2+ if re.search(r'<div[^>]*class="tgme_page_extra"[^>]*>', r.text):+ return Result.taken()+ else:+ return Result.available()+ return Result.error()return generic_validate(url, process, follow_redirects=True)diff --git a/user_scanner/social/x.py b/user_scanner/social/x.pyindex 3a0b8ee..98a8200 100644--- a/user_scanner/social/x.py+++ b/user_scanner/social/x.py@@ -1,10 +1,5 @@-import httpx-import json-from colorama import Fore, Style-from httpx import ConnectError, TimeoutException--from user_scanner.core.orchestrator import Result-+from user_scanner.core.result import Result+from user_scanner.core.orchestrator import generic_validatedef validate_x(user):url = "https://api.twitter.com/i/users/username_available.json"@@ -20,8 +15,7 @@ def validate_x(user):"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",}- try:- response = httpx.get(url, params=params, headers=headers, timeout=3.0)+ def process(response):status = response.status_codeif status in [401, 403, 429]:@@ -34,15 +28,11 @@ def validate_x(user):elif data.get('reason') == 'taken':return Result.taken()elif (data.get('reason') == "improper_format" or data.get('reason') == "invalid_username"):- return Result.error(f"{Fore.CYAN}{Fore.CYAN}X says: {data.get('desc')}{Style.RESET_ALL}")+ return Result.error(f"X says: {data.get('desc')}")return Result.error()- except (ConnectError, TimeoutException, json.JSONDecodeError):- return 2- except Exception:- return 2-+ return generic_validate(url, process, params=params, headers=headers)if __name__ == "__main__":user = input("Username?: ").strip()diff --git a/user_scanner/social/youtube.py b/user_scanner/social/youtube.pyindex e32b605..f7e7f39 100644--- a/user_scanner/social/youtube.py+++ b/user_scanner/social/youtube.py@@ -1,5 +1,4 @@-import httpx-from httpx import ConnectError, TimeoutException+from user_scanner.core.orchestrator import status_validatedef validate_youtube(user):@@ -29,22 +28,7 @@ def validate_youtube(user):'priority': "u=0, i"}- try:- response = httpx.get(url, headers=headers,- follow_redirects=True, timeout=3.0)- status = response.status_code-- if status == 200:- return 0- elif status == 404:- return 1- else:- return 2-- except (ConnectError, TimeoutException):- return 2- except Exception:- return 2+ status_validate(url, 404, 200, headers=headers, follow_redirects=True)if __name__ == "__main__":