Skip to content

🕵️‍♂️ (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.

fix(stackb): tolerate reordered and attributed markup (#624)

Kristo Isberge5d7fc29ad34
diff --git a/user_scanner/email_scan/gaming/stackb.py b/user_scanner/email_scan/gaming/stackb.py
index 35e695e..13f0e04 100644
--- a/user_scanner/email_scan/gaming/stackb.py
+++ b/user_scanner/email_scan/gaming/stackb.py
@@ -34,7 +34,7 @@ async def _check(email: str) -> Result:
login_response.text,
)
snapshot_match = re.search(
- r'<div wire:snapshot="([^"]+)"[^>]*wire:id="[^"]+"'
+ r'<div[^>]*wire:snapshot="([^"]+)"'
r'[^>]*x-data="loginFormCaptcha',
login_response.text,
)
diff --git a/user_scanner/user_scan/gaming/stackb.py b/user_scanner/user_scan/gaming/stackb.py
index b0d7f81..63c4da3 100644
--- a/user_scanner/user_scan/gaming/stackb.py
+++ b/user_scanner/user_scan/gaming/stackb.py
@@ -27,7 +27,7 @@ def validate_stackb(user: str) -> Result:
login_text = login_response.text
csrf_match = re.search(r'<meta name="csrf-token" content="([^"]+)"', login_text)
snapshot_match = re.search(
- r'<div wire:snapshot="([^"]+)"[^>]*wire:id="([^"]+)"[^>]*x-data="loginFormCaptcha',
+ r'<div[^>]*wire:snapshot="([^"]+)"[^>]*x-data="loginFormCaptcha',
login_text,
)
if not csrf_match or not snapshot_match:
@@ -98,7 +98,7 @@ def validate_stackb(user: str) -> Result:
)
response_text = profile_response.text
profile = {}
- for json_match in re.finditer(r'<script type="application/ld\+json">(.*?)</script>', response_text, re.DOTALL):
+ for json_match in re.finditer(r'<script[^>]*type="application/ld\+json"[^>]*>(.*?)</script>', response_text, re.DOTALL):
try:
data = json.loads(html.unescape(json_match.group(1)))
except json.JSONDecodeError: