🕵️♂️ (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(donatello): confirm a creator page instead of returning taken on any 200 (#548)
BrunoLMcf88c7864799
diff --git a/user_scanner/user_scan/donation/donatello.py b/user_scanner/user_scan/donation/donatello.pyindex 349f8c3..6eff36b 100644--- a/user_scanner/user_scan/donation/donatello.py+++ b/user_scanner/user_scan/donation/donatello.py@@ -1,21 +1,40 @@-from user_scanner.core.orchestrator import generic_validate, Resultimport re+from user_scanner.core.impersonate import impersonate_validate+from user_scanner.core.result import Result++CLOUDFLARE_BLOCK_MARKER = "Attention Required! | Cloudflare"++# Only a creator page carries its own handle in og:url; the site's own pages+# (/about, /login, /terms) answer 200 with the bare domain there instead.+OG_HANDLE_RE = re.compile(r'<meta property="og:url" content="https://donatello\.to/([^"/?]+)"')+AUTHOR_RE = re.compile(r'<meta name="author" content="([^"]+)">')++def validate_donatello(user):url = f"https://donatello.to/{user}"- show_url = f"https://donatello.to/{user}"def process(response):if response.status_code == 200:+ handle_match = OG_HANDLE_RE.search(response.text)+ if not handle_match:+ return Result.error("200 without a creator page, cannot confirm the handle")+extra = {}- author_match = re.search(r'<meta name="author" content="([^"]+)">', response.text)+ author_match = AUTHOR_RE.search(response.text)if author_match:name = author_match.group(1).strip()if name.lower() != user.lower():extra["name"] = namereturn Result.taken(extra=extra)- elif response.status_code == 404:++ if response.status_code == 404:return Result.available()++ # Cloudflare blocks whole regions from this domain; that is not a verdict.+ if response.status_code == 403 and CLOUDFLARE_BLOCK_MARKER in response.text:+ return Result.error("Blocked by Cloudflare, the site is unreachable from here")+return Result.error(f"Unexpected status {response.status_code}")- return generic_validate(url, process, show_url=show_url)+ return impersonate_validate(url, process, show_url=url)