🕵️♂️ (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: RedTube, Tube8, YouPorn email module false positives
Kristo Isberg4575a08ae877
diff --git a/user_scanner/email_scan/adult/redtube.py b/user_scanner/email_scan/adult/redtube.pyindex 2d17427..f2fbba4 100644--- a/user_scanner/email_scan/adult/redtube.py+++ b/user_scanner/email_scan/adult/redtube.py@@ -1,6 +1,6 @@import httpximport re-from user_scanner.core.helpers import is_valid_email+import secretsfrom user_scanner.core.result import ResultRATE_LIMITED_MSG = "Rate limited, wait for a few minutes"@@ -35,32 +35,32 @@ async def _check(email: str) -> Result:token = token_match.group(1)- params = {"token": token}- payload = {- "token": token,- "check_what": "email",- "email": email,- }-- response = await client.post(- check_api,- params=params,- headers=headers,- data=payload,- )+ async def check(address: str) -> dict | Result:+ response = await client.post(+ check_api,+ params={"token": token},+ headers=headers,+ data={"token": token, "check_what": "email", "email": address},+ )++ if response.status_code == 429:+ return Result.error(RATE_LIMITED_MSG)++ if response.status_code != 200:+ return Result.error(f"HTTP Error: {response.status_code}")- if response.status_code == 429:- return Result.error(RATE_LIMITED_MSG)+ data = response.json()- if response.status_code != 200:- return Result.error(f"HTTP Error: {response.status_code}")+ # An anti-abuse throttle answers with a bare "NOK" / "NOK <n>" string+ # instead of the usual JSON object.+ if not isinstance(data, dict):+ return Result.error(RATE_LIMITED_MSG)- data = response.json()+ return data- # An anti-abuse throttle answers with a bare "NOK" / "NOK <n>" string- # instead of the usual JSON object.- if not isinstance(data, dict):- return Result.error(RATE_LIMITED_MSG)+ data = await check(email)+ if isinstance(data, Result):+ return datastatus = data.get("email")error_msg = data.get("error_message", "")@@ -71,9 +71,14 @@ async def _check(email: str) -> Result:if status == "create_account_failed":if "already registered" in error_msg:return Result.taken(url=show_url)- # For a well-formed address, RedTube reports an existing account- # by refusing registration rather than saying it's taken.- if "does not meet our registration requirements" in error_msg and is_valid_email(email):+ if "does not meet our registration requirements" in error_msg:+ domain = email.rsplit("@", 1)[-1]+ probe = await check(f"{secrets.token_hex(16)}@{domain}")+ if isinstance(probe, Result):+ return probe+ probe_error = probe.get("error_message", "")+ if "does not meet our registration requirements" in probe_error:+ return Result.available(url=show_url, reason=error_msg)return Result.taken(url=show_url)return Result.available(url=show_url, reason=error_msg)diff --git a/user_scanner/email_scan/adult/tube8.py b/user_scanner/email_scan/adult/tube8.pyindex ce6922a..50df93f 100644--- a/user_scanner/email_scan/adult/tube8.py+++ b/user_scanner/email_scan/adult/tube8.py@@ -1,6 +1,6 @@import httpximport re-from user_scanner.core.helpers import is_valid_email+import secretsfrom user_scanner.core.result import ResultRATE_LIMITED_MSG = "Rate limited, wait for a few minutes"@@ -32,23 +32,25 @@ async def _check(email: str) -> Result:token = token_match.group(1)- params = {"token": token}- payload = {"token": token, "email": email}+ async def check(address: str) -> dict | Result:+ response = await client.post(+ check_api,+ params={"token": token},+ headers=headers,+ data={"token": token, "email": address},+ )- response = await client.post(- check_api,- params=params,- headers=headers,- data=payload,- )+ if response.status_code == 429:+ return Result.error(RATE_LIMITED_MSG)- if response.status_code == 429:- return Result.error(RATE_LIMITED_MSG)+ if response.status_code != 200:+ return Result.error(f"HTTP Error: {response.status_code}")- if response.status_code != 200:- return Result.error(f"HTTP Error: {response.status_code}")+ return response.json()- data = response.json()+ data = await check(email)+ if isinstance(data, Result):+ return dataif data.get("success") is True:return Result.available(url=show_url)@@ -56,12 +58,22 @@ async def _check(email: str) -> Result:messages = data.get("messages", [])message = " ".join(messages) if isinstance(messages, list) else str(messages)- # A well-formed address that fails the requirements check is Tube8's- # way of reporting an existing account rather than saying it's taken.if "does not meet our registration requirements" in message:- if is_valid_email(email):- return Result.taken(url=show_url)- return Result.available(url=show_url, reason=message)+ domain = email.rsplit("@", 1)[-1]+ probe = await check(f"{secrets.token_hex(16)}@{domain}")+ if isinstance(probe, Result):+ return probe+ probe_messages = probe.get("messages", [])+ probe_message = (+ " ".join(probe_messages)+ if isinstance(probe_messages, list)+ else str(probe_messages)+ )+ if "does not meet our registration requirements" in probe_message:+ return Result.available(url=show_url, reason=message)+ if "not available" in probe_message.lower():+ return Result.error(RATE_LIMITED_MSG)+ return Result.taken(url=show_url)# A stale or over-used token answers "Not available." instead of a verdict.if "not available" in message.lower():diff --git a/user_scanner/email_scan/adult/youporn.py b/user_scanner/email_scan/adult/youporn.pyindex 47106a8..0373659 100644--- a/user_scanner/email_scan/adult/youporn.py+++ b/user_scanner/email_scan/adult/youporn.py@@ -1,6 +1,6 @@import httpximport re-from user_scanner.core.helpers import is_valid_email+import secretsfrom user_scanner.core.result import ResultRATE_LIMITED_MSG = "Rate limited, wait for a few minutes"@@ -32,23 +32,25 @@ async def _check(email: str) -> Result:token = token_match.group(1)- params = {"token": token}- payload = {"token": token, "email": email}+ async def check(address: str) -> dict | Result:+ response = await client.post(+ check_api,+ params={"token": token},+ headers=headers,+ data={"token": token, "email": address},+ )- response = await client.post(- check_api,- params=params,- headers=headers,- data=payload,- )+ if response.status_code == 429:+ return Result.error(RATE_LIMITED_MSG)- if response.status_code == 429:- return Result.error(RATE_LIMITED_MSG)+ if response.status_code != 200:+ return Result.error(f"HTTP Error: {response.status_code}")- if response.status_code != 200:- return Result.error(f"HTTP Error: {response.status_code}")+ return response.json()- data = response.json()+ data = await check(email)+ if isinstance(data, Result):+ return dataif data.get("success") is True:return Result.available(url=show_url)@@ -56,12 +58,22 @@ async def _check(email: str) -> Result:messages = data.get("messages", [])message = " ".join(messages) if isinstance(messages, list) else str(messages)- # A well-formed address that fails the requirements check is YouPorn's- # way of reporting an existing account rather than saying it's taken.if "does not meet our registration requirements" in message:- if is_valid_email(email):- return Result.taken(url=show_url)- return Result.available(url=show_url, reason=message)+ domain = email.rsplit("@", 1)[-1]+ probe = await check(f"{secrets.token_hex(16)}@{domain}")+ if isinstance(probe, Result):+ return probe+ probe_messages = probe.get("messages", [])+ probe_message = (+ " ".join(probe_messages)+ if isinstance(probe_messages, list)+ else str(probe_messages)+ )+ if "does not meet our registration requirements" in probe_message:+ return Result.available(url=show_url, reason=message)+ if "not available" in probe_message.lower():+ return Result.error(RATE_LIMITED_MSG)+ return Result.taken(url=show_url)# A stale or over-used token answers "Not available." instead of a verdict.if "not available" in message.lower():