🕵️♂️ (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: fix linktree regex validation for the data extraction logic
Kaif01be687145e5
diff --git a/user_scanner/user_scan/creator/linktree.py b/user_scanner/user_scan/creator/linktree.pyindex 563374d..2a88b36 100644--- a/user_scanner/user_scan/creator/linktree.py+++ b/user_scanner/user_scan/creator/linktree.py@@ -18,9 +18,22 @@ def validate_linktree(user):if response.status_code == 200:html = response.textextra = {}- title = re.search(r'<title>([^\|]+)\|', html)+ title = re.search(r'<title[^>]*>(.*?)</title>', html, re.IGNORECASE)if title:- extra["name"] = title.group(1).strip()+ title_text = title.group(1).strip()+ if " | Linktree" in title_text:+ title_text = title_text.split(" | Linktree")[0]+ elif "| Linktree" in title_text:+ title_text = title_text.split("| Linktree")[0]+ extra["name"] = title_text.strip()++ desc = re.search(r'<meta[^>]*property="og:description"[^>]*content="([^"]+)"', html, re.IGNORECASE)+ if desc:+ extra["description"] = desc.group(1).strip()++ img = re.search(r'<meta[^>]*property="og:image"[^>]*content="([^"]+)"', html, re.IGNORECASE)+ if img:+ extra["image"] = img.group(1).strip()return Result.taken(extra=extra, url=show_url)elif response.status_code == 404:return Result.available(url=show_url)