🕵️♂️ (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
Add Monkeytype username validator module
articulatebass363148173e22
diff --git a/user_scanner/gaming/monkeytype.py b/user_scanner/gaming/monkeytype.pynew file mode 100644index 0000000..57a5406--- /dev/null+++ b/user_scanner/gaming/monkeytype.py@@ -0,0 +1,77 @@+import httpx+from httpx import ConnectError, TimeoutException+import json+++def validate_monkeytype(user: str) -> int:+ """+ Check if a Monkeytype username is available.++ Returns:+ 1 -> Available+ 0 -> Taken+ 2 -> Error / Could not check+ """+ # Monkeytype username check endpoint:+ # GET https://api.monkeytype.com/users/checkName/{name}+ url = f"https://api.monkeytype.com/users/checkName/{user}"++ headers = {+ "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"+ ),+ "Accept": "application/json, text/plain, */*",+ "Accept-Encoding": "gzip, deflate, br",+ "Accept-Language": "en-US,en;q=0.9",+ }++ try:+ response = httpx.get(url, headers=headers, timeout=3.0)+ status = response.status_code++ if status == 200:+ data = response.json()+ # Expected shape:+ # { "message": "string", "data": { "available": true/false } }+ payload = data.get("data", {})+ available = payload.get("available")++ if available is True:+ # available: True => username NOT taken+ return 1+ elif available is False:+ # available: False => username IS taken+ return 0+ else:+ # Unexpected response shape+ return 2+ else:+ # Non-200 response (400, 429, 500, etc) -> treat as error+ return 2++ except (ConnectError, TimeoutException):+ return 2+ except json.JSONDecodeError:+ return 2+ except Exception:+ return 2+++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)++ if result == 1:+ print("Available!")+ elif result == 0:+ print("Unavailable!")+ else:+ print("Error occurred!")