🕵️♂️ (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: 4 new email OSINT modules to email_scan, dev(3) and shopping(1)
kaifcodecf9d94295bcc9
diff --git a/user_scanner/email_scan/dev/hackerearth.py b/user_scanner/email_scan/dev/hackerearth.pynew file mode 100644index 0000000..18fe288--- /dev/null+++ b/user_scanner/email_scan/dev/hackerearth.py@@ -0,0 +1,79 @@+import httpx+import secrets+from user_scanner.core.result import Result++def _generate_random_name() -> str:+ """Generates short random names to keep individual payloads unique."""+ first_names = ["Hunan", "Hedge", "Zack", "Dex", "Jace", "Kira", "Cole", "Finn", "Nuter"]+ last_names = ["Fish", "Code", "Byte", "Web", "Null", "Dev", "Node", "Flux", "Jones"]+ return secrets.choice(first_names), secrets.choice(last_names)++async def _check(email: str) -> Result:+ url = "https://www.hackerearth.com/api/v1/sparta/auth/signup/"+ show_url = "https://www.hackerearth.com"++ first, last = _generate_random_name()++ headers = {+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Mobile Safari/537.36",+ 'Accept-Encoding': "gzip, deflate",+ 'Content-Type': "application/json",+ 'sec-ch-ua-platform': '"Android"',+ 'sec-ch-ua': '"Brave";v="149", "Chromium";v="149", "Not)A;Brand";v="24"',+ 'sec-ch-ua-mobile': "?1",+ 'sec-gpc': "1",+ 'accept-language': "en-US,en;q=0.7",+ 'origin': "https://www.hackerearth.com",+ 'sec-fetch-site': "same-origin",+ 'sec-fetch-mode': "cors",+ 'sec-fetch-dest': "empty",+ 'referer': show_url,+ 'priority': "u=1, i"+ }++ params = {+ 'sxhr': "true",+ 'next': "/community/dashboard/"+ }++ payload = {+ "first_name": first,+ "last_name": last,+ "email": email,+ "password": "", # Blank to force targeted validation errors+ "policy_accepted": True,+ "next": "/community/dashboard/"+ }++ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.post(url, params=params, json=payload, headers=headers)++ if response.status_code == 403:+ return Result.error("Caught by WAF (403)")+ if response.status_code == 429:+ return Result.error("Rate limited (429)")++ try:+ data = response.json()+ except Exception:+ return Result.error("Failed to parse JSON response")++ errors = data.get("errors", {})+ email_error = errors.get("email", "")++ # If 'email' key exists in errors with the taken string -> Taken+ if "already registered" in email_error.lower():+ return Result.taken(url=show_url)++ # If password error exists but email error does not -> Email is available+ if "password" in errors and not email_error:+ return Result.available(url=show_url)++ return Result.error("Unexpected response field layout")++ except Exception as e:+ return Result.error(str(e))++async def validate_hackerearth(email: str) -> Result:+ return await _check(email)diff --git a/user_scanner/email_scan/dev/hackerrank.py b/user_scanner/email_scan/dev/hackerrank.pynew file mode 100644index 0000000..bbdaccd--- /dev/null+++ b/user_scanner/email_scan/dev/hackerrank.py@@ -0,0 +1,64 @@+import httpx+from user_scanner.core.result import Result++async def _check(email: str) -> Result:+ url = "https://www.hackerrank.com/auth/valid_email"+ show_url = "https://www.hackerrank.com"++ headers = {+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Mobile Safari/537.36",+ 'Accept': "application/json",+ 'Accept-Encoding': "gzip, deflate, br, zstd",+ 'Content-Type': "application/json",+ 'sec-ch-ua-platform': '"Android"',+ 'sec-ch-ua': '"Google Chrome";v="149", "Chromium";v="149", "Not)A;Brand";v="24"',+ 'sec-ch-ua-mobile': "?1",+ 'sec-gpc': "1",+ 'accept-language': "en-US,en;q=0.9",+ 'origin': "https://www.hackerrank.com",+ 'sec-fetch-site': "same-origin",+ 'sec-fetch-mode': "cors",+ 'sec-fetch-dest': "empty",+ 'referer': show_url,+ 'priority': "u=1, i"+ }++ payload = {+ "email": email+ }++ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.post(url, json=payload, headers=headers)++ if response.status_code == 403:+ return Result.error("Caught by Cloudflare/WAF (403)")+ if response.status_code == 429:+ return Result.error("Rate limited (429)")+ if response.status_code != 200:+ return Result.error(f"HTTP Error: {response.status_code}")++ try:+ data = response.json()+ except Exception:+ return Result.error("Failed to parse JSON response")++ status = data.get("status")+ internal_code = data.get("internal_status_code")+ errors_msg = data.get("errors", "")++ # If status is False or explicit strings match -> Taken+ if status is False or internal_code == "already_registered" or "already registered" in str(errors_msg).lower():+ return Result.taken(url=show_url)++ # If status is True -> Free to register+ if status is True:+ return Result.available(url=show_url)++ return Result.error("Unexpected response payload schema")++ except Exception as e:+ return Result.error(str(e))++async def validate_hackerrank(email: str) -> Result:+ return await _check(email)diff --git a/user_scanner/email_scan/dev/rubygems.py b/user_scanner/email_scan/dev/rubygems.pynew file mode 100644index 0000000..f19b7eb--- /dev/null+++ b/user_scanner/email_scan/dev/rubygems.py@@ -0,0 +1,68 @@+import httpx+import re+from user_scanner.core.result import Result++async def _check(email: str) -> Result:+ url_signup = "https://rubygems.org/sign_up"+ url_users = "https://rubygems.org/users"+ show_url = "https://rubygems.org"++ headers = {+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Mobile Safari/537.36",+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",+ 'Accept-Encoding': "gzip, deflate, br, zstd",+ 'sec-ch-ua': '"Brave";v="149", "Chromium";v="149", "Not)A;Brand";v="24"',+ 'sec-ch-ua-mobile': "?1",+ 'sec-ch-ua-platform': '"Android"',+ 'upgrade-insecure-requests': "1",+ 'sec-gpc': "1",+ 'accept-language': "en-US,en;q=0.7",+ 'origin': "https://rubygems.org",+ 'referer': url_signup+ }++ try:+ # Using a unified client session context to automatically hold and pass back the _rubygems_session cookie+ async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:++ # Initialize session state and extract Rails CSRF token+ init_res = await client.get(url_signup, headers=headers)+ if init_res.status_code != 200:+ return Result.error(f"Failed to grab verification context: {init_res.status_code}")++ # Extract the authenticity token from the hidden input element field+ token_match = re.search(r'name="authenticity_token" value="([^"]+)"', init_res.text)+ if not token_match:+ return Result.error("Could not scrape Rails authenticity token")++ csrf_token = token_match.group(1)++ # Fire validation payload with empty password gate+ payload = {+ 'authenticity_token': csrf_token,+ 'user[full_name]': "",+ 'user[email]': email,+ 'user[handle]': "",+ 'user[password]': "",+ 'user[public_email]': "0",+ 'commit': "Sign up"+ }++ response = await client.post(url_users, data=payload, headers=headers)+ response_text = response.text++ # Targeted field-level string verification inside the generated #errorExplanation block+ if "has already been taken" in response_text:+ return Result.taken(url=show_url)++ # If Rails triggers validation errors but email is NOT flagged as taken, the target is clear+ if "prohibited this user from being saved" in response_text or "Password can't be blank" in response_text:+ return Result.available(url=show_url)++ return Result.error("Unexpected signature inside response DOM tree")++ except Exception as e:+ return Result.error(str(e))++async def validate_rubygems(email: str) -> Result:+ return await _check(email)diff --git a/user_scanner/email_scan/shopping/nykaaman.py b/user_scanner/email_scan/shopping/nykaaman.pynew file mode 100644index 0000000..7d5088d--- /dev/null+++ b/user_scanner/email_scan/shopping/nykaaman.py@@ -0,0 +1,68 @@+import httpx+from user_scanner.core.result import Result++async def _check(email: str) -> Result:+ url = "https://www.nykaaman.com/app-api/index.php/customer/check_existence"+ show_url = "https://www.nykaaman.com"++ headers = {+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Mobile Safari/537.36",+ 'Accept': "application/json, text/plain, */*",+ 'Accept-Encoding': "identity",+ 'sec-ch-ua-platform': '"Android"',+ 'sec-ch-ua': '"Brave";v="149", "Chromium";v="149", "Not)A;Brand";v="24"',+ 'sec-ch-ua-mobile': "?1",+ 'sec-gpc': "1",+ 'accept-language': "en-US,en;q=0.9",+ 'origin': "https://www.nykaaman.com",+ 'sec-fetch-site': "same-origin",+ 'sec-fetch-mode': "cors",+ 'sec-fetch-dest': "empty",+ 'referer': f"{show_url}?ptype=auth&root=myAccount_topBar",+ 'Cookie': "storeId=men"+ }++ params = {+ 'catalog_tag_filter': "men"+ }++ payload = {+ 'email': email,+ 'platform': "web",+ 'captcha_type': "v3"+ }++ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ # Send payload using standard form encoding data format+ response = await client.post(url, params=params, data=payload, headers=headers)++ if response.status_code == 403:+ return Result.error("Caught by WAF (403)")+ if response.status_code == 429:+ return Result.error("Rate limited (429)")+ if response.status_code != 200:+ return Result.error(f"HTTP Error: {response.status_code}")++ try:+ data = response.json()+ except Exception:+ return Result.error("Failed to parse JSON response")++ inner_response = data.get("response", {})+ is_exists = inner_response.get("is_exists")++ # Evaluate direct boolean flag or match validation strings+ if is_exists is True or "already registered" in inner_response.get("message", "").lower():+ return Result.taken(url=show_url)++ if is_exists is False or "welcome to nykaa" in inner_response.get("message", "").lower():+ return Result.available(url=show_url)++ return Result.error("Unexpected JSON response structure")++ except Exception as e:+ return Result.error(str(e))++async def validate_nykaaman(email: str) -> Result:+ return await _check(email)