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(mypy): resolve union-attr type errors in XenForo PoW parser

Kaifa42e9568cd8b
diff --git a/user_scanner/user_scan/community/defensivecarry.py b/user_scanner/user_scan/community/defensivecarry.py
index 76c5d0c..4a3853b 100644
--- a/user_scanner/user_scan/community/defensivecarry.py
+++ b/user_scanner/user_scan/community/defensivecarry.py
@@ -23,7 +23,13 @@ def validate_defensivecarry(user: str) -> Result:
char_match = re.search(r"difficulty_char:'([^']+)'", html_text)
issued_match = re.search(r"issued_at:'([^']+)'", html_text)
- if not all([nonce_match, hmac_match, diff_match, char_match, issued_match]):
+ if (
+ nonce_match is None or
+ hmac_match is None or
+ diff_match is None or
+ char_match is None or
+ issued_match is None
+ ):
return Result.error("Failed to parse PoW challenge parameters", url=url)
nonce = nonce_match.group(1)
diff --git a/user_scanner/user_scan/community/thefirearmsforum.py b/user_scanner/user_scan/community/thefirearmsforum.py
index eb6a584..0dcec43 100644
--- a/user_scanner/user_scan/community/thefirearmsforum.py
+++ b/user_scanner/user_scan/community/thefirearmsforum.py
@@ -23,7 +23,13 @@ def validate_thefirearmsforum(user: str) -> Result:
char_match = re.search(r"difficulty_char:'([^']+)'", html_text)
issued_match = re.search(r"issued_at:'([^']+)'", html_text)
- if not all([nonce_match, hmac_match, diff_match, char_match, issued_match]):
+ if (
+ nonce_match is None or
+ hmac_match is None or
+ diff_match is None or
+ char_match is None or
+ issued_match is None
+ ):
return Result.error("Failed to parse PoW challenge parameters", url=url)
nonce = nonce_match.group(1)