🕵️♂️ (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(pornhub): properly handle invalid email domains and refine error handling logic
kaifcodeca03fbc598794
diff --git a/user_scanner/email_scan/adult/pornhub.py b/user_scanner/email_scan/adult/pornhub.pyindex c300668..b11b27b 100644--- a/user_scanner/email_scan/adult/pornhub.py+++ b/user_scanner/email_scan/adult/pornhub.py@@ -49,13 +49,20 @@ async def _check(email: str) -> Result:data = response.json()status = data.get("email")error_msg = data.get("error_message", "")+ email_dom = email.split("@")[-1]++ if status == "create_account_failed":+ if "Email extension" in error_msg:+ return Result.available(url=show_url, reason=f"Domain '{email_dom}' is not allowed by PornHub")+ if "delivery issues" in error_msg:+ return Result.error(url=show_url, reason="The email is experiencing email delivery issues")if status == "create_account_passed":return Result.available(url=show_url)- elif "already in use" in error_msg.lower() or status != "create_account_passed":+ elif "already in use" in error_msg.lower() or "already registered" in error_msg:return Result.taken(url=show_url)else:- return Result.error(f"Unexpected API response: {status}")+ return Result.error(f"Unexpected API response: {status}: {error_msg}")except Exception as e:return Result.error(e)