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(facebook.py): adapting regex search to the new changes of response pattern of facebook's /login enpoint

kaifcodec853c7c0a616a
diff --git a/user_scanner/email_scan/social/facebook.py b/user_scanner/email_scan/social/facebook.py
index 6099dbc..df2d0ee 100644
--- a/user_scanner/email_scan/social/facebook.py
+++ b/user_scanner/email_scan/social/facebook.py
@@ -35,16 +35,27 @@ async def _check(email: str) -> Result:
'priority': "u=0, i"
}
res2 = await client.get(url2, params=params2, headers=headers2)
+
html = res2.text
- j_match = re.search(r'name="jazoest" value="(\d+)"', html)
- l_match = re.search(r'name="lsd" value="([^"]+)"', html)
+ # Try to find LSD New JSON format first, then old HTML format
+ lsd_match = re.search(r'\["LSD",\[\],\{"token":"([^"]+)"\}', html) or \
+ re.search(r'name="lsd"\s+value="([^"]+)"', html) or \
+ re.search(r'"lsd":"([^"]+)"', html)
- if not j_match or not l_match:
- return Result.error("Failed to extract tokens (LSD/Jazoest)")
+ # Try to find jazoest URL param first, then hidden input
+ j_match = re.search(r'jazoest=(\d+)', html) or \
+ re.search(r'name="jazoest"\s+value="(\d+)"', html)
+
+ lsd = lsd_match.group(1) if lsd_match else None
+ jazoest = j_match.group(1) if j_match else None
- jazoest = j_match.group(1)
- lsd = l_match.group(1)
+ # see which one is missing
+ if not lsd or not jazoest:
+ return Result.error(f"Token extraction failed (LSD: {bool(lsd)}, Jazoest: {bool(jazoest)})")
+
+ if not j_match or not lsd_match:
+ return Result.error("Failed to extract tokens (LSD/Jazoest)")
url3 = "https://www.facebook.com/ajax/login/help/identify.php"
params3 = {'ctx': "recover"}