🕵️♂️ (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
feat(email_scan): add 8 language learning modules (#662)
Kristo Isbergba479ce5fbcc
diff --git a/user_scanner/core/helpers.py b/user_scanner/core/helpers.pyindex f227361..ad07133 100644--- a/user_scanner/core/helpers.py+++ b/user_scanner/core/helpers.py@@ -47,6 +47,10 @@ LOUD_MODULES: Dict[str, List[str]] = {"hanzii","programminghub","talkpal",+ "memrise",+ "duocards",+ "speakly",+ "linga","dragongroot","hoichoi","fantasia",diff --git a/user_scanner/email_scan/learning/duocards.py b/user_scanner/email_scan/learning/duocards.pynew file mode 100644index 0000000..2c07ba8--- /dev/null+++ b/user_scanner/email_scan/learning/duocards.py@@ -0,0 +1,47 @@+import httpx++from user_scanner.core.result import Result++QUERY = """mutation EmailAuthGetEmailInfoMutation($email: String!) {+ getEmailInfo(email: $email) {+ exists+ password+ apple+ loginLinkSent+ }+}"""+++async def validate_duocards(email: str) -> Result:+ """Check DuoCards login methods. May send a link to passwordless accounts."""+ show_url = "https://app.duocards.com"+ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.post(+ "https://api.duocards.com/graphql?EmailAuthGetEmailInfoMutation",+ json={"query": QUERY, "variables": {"email": email}},+ )++ if response.status_code == 429:+ return Result.error("Rate limited", url=show_url)+ if response.status_code != 200:+ return Result.error(+ f"Unexpected response status: {response.status_code}",+ url=show_url,+ )++ data = response.json()+ info = data.get("data", {}).get("getEmailInfo", {})+ if info.get("exists") is True:+ extra = {+ key: True+ for key in ("password", "google", "apple", "loginLinkSent")+ if info.get(key) is True+ }+ return Result.taken(extra=extra, url=show_url)+ if info.get("exists") is False:+ return Result.available(url=show_url)+ return Result.error("Unexpected response body", url=show_url)+ except (httpx.HTTPError, ValueError) as exc:+ return Result.error(exc, url=show_url)diff --git a/user_scanner/email_scan/learning/linga.py b/user_scanner/email_scan/learning/linga.pynew file mode 100644index 0000000..a13cca9--- /dev/null+++ b/user_scanner/email_scan/learning/linga.py@@ -0,0 +1,66 @@+import base64+import hashlib+import json+import time++import httpx++from user_scanner.core.result import Result++_APP_VERSION = "3.5.2/275"+_SIGNING_KEY = (+ "UDNuWUUwaXplRzdEWHVOTEg4TkJVOGJMZXBGemE0VnczS2svMXg5ZnZVM2ZQVXEyd1FzbG"+ "NFQ1ZhSm1tMVJ0agpKT1VVZ3FyNTB3c3hvU05Ub3M1SWFyL0V5ajgyellZcncwR3dkYWl0"+ "djA1ZklLNi8vQUY2WC9kYTdqZkRWSjYrCnovdUNDZz09"+)+++def _signature(body: str, timestamp: str) -> str:+ body_hash = hashlib.sha256(body.encode()).hexdigest()+ value = (+ f"web_{_APP_VERSION}_{_SIGNING_KEY}_scanner_{timestamp}__"+ f"POST_/recovery_{body_hash}"+ )+ value = base64.b64encode(value.encode()).decode()[::-1]+ value = value[:5] + "XYZ" + value[5:]+ value = value[3:] + value[:3]+ value = value.translate(str.maketrans("aeiouAEIOU", "XXXXXXXXXX"))+ half = len(value) // 2+ return hashlib.sha256((value[half:] + value[:half]).encode()).hexdigest()+++async def validate_linga(email: str) -> Result:+ """Check Linga's reset endpoint. Sends email for registered accounts."""+ url = "https://app.linga.io/api/v2/recovery"+ body = json.dumps({"email": email}, separators=(",", ":"))+ timestamp = str(int(time.time() // 60))+ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.post(+ url,+ content=body,+ headers={+ "Content-Type": "application/json",+ "x-linga-platform": "web",+ "x-linga-appver": _APP_VERSION,+ "x-linga-device-id": "scanner",+ "x-linga-timezone-offset": timestamp,+ "x-linga-signature": _signature(body, timestamp),+ },+ )++ if response.status_code == 429:+ return Result.error("Rate limited", url=url)+ if response.status_code not in (200, 404):+ return Result.error(+ f"Unexpected response status: {response.status_code}", url=url+ )++ data = response.json()+ if response.status_code == 404 and data.get("message") == "Not found":+ return Result.available(url="https://linga.io")+ if response.status_code == 200 and data.get("message") == "Email was sent":+ return Result.taken(url="https://linga.io")+ return Result.error("Unexpected response body", url=url)+ except (httpx.HTTPError, ValueError) as exc:+ return Result.error(exc, url=url)diff --git a/user_scanner/email_scan/learning/lingq.py b/user_scanner/email_scan/learning/lingq.pynew file mode 100644index 0000000..caced9a--- /dev/null+++ b/user_scanner/email_scan/learning/lingq.py@@ -0,0 +1,38 @@+import httpx++from user_scanner.core.result import Result+++async def validate_lingq(email: str) -> Result:+ """Check LingQ's non-loud registration field validator."""+ show_url = "https://www.lingq.com"+ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.get(+ f"{show_url}/en/accounts/validate-field/",+ params={"email": email},+ )++ if response.status_code == 429:+ return Result.error("Rate limited", url=show_url)+ if response.status_code != 200:+ return Result.error(+ f"Unexpected response status: {response.status_code}",+ url=show_url,+ )++ data = response.json()+ if data == {}:+ return Result.available(url=show_url)++ email_result = data.get("email", {})+ messages = email_result.get("message", [])+ if email_result.get("is_valid") is False and any(+ "already have an account" in message for message in messages+ ):+ return Result.taken(url=show_url)+ if email_result.get("is_valid") is False:+ return Result.error("Email rejected by LingQ", url=show_url)+ return Result.error("Unexpected response body", url=show_url)+ except (httpx.HTTPError, ValueError) as exc:+ return Result.error(exc, url=show_url)diff --git a/user_scanner/email_scan/learning/memrise.py b/user_scanner/email_scan/learning/memrise.pynew file mode 100644index 0000000..9841447--- /dev/null+++ b/user_scanner/email_scan/learning/memrise.py@@ -0,0 +1,45 @@+import re++import httpx++from user_scanner.core.result import Result+++async def validate_memrise(email: str) -> Result:+ """Check Memrise's password reset form. Sends email for registered accounts."""+ url = "https://app.memrise.com/password/reset/"+ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ initial = await client.get(url)+ if initial.status_code != 200:+ return Result.error(+ f"Unexpected initial response status: {initial.status_code}",+ url=url,+ )++ match = re.search(+ r'name="csrfmiddlewaretoken" value="([^"]+)"', initial.text+ )+ if not match:+ return Result.error("Unable to extract CSRF token", url=url)++ response = await client.post(+ url,+ data={"csrfmiddlewaretoken": match.group(1), "email": email},+ headers={"Referer": url},+ )++ if (+ response.status_code == 302+ and response.headers.get("location") == "/password/reset/done/"+ ):+ return Result.taken(url="https://www.memrise.com")+ if response.status_code == 200 and "No such user." in response.text:+ return Result.available(url="https://www.memrise.com")+ if response.status_code == 429:+ return Result.error("Rate limited", url=url)+ return Result.error(+ f"Unexpected response status: {response.status_code}", url=url+ )+ except httpx.HTTPError as exc:+ return Result.error(exc, url=url)diff --git a/user_scanner/email_scan/learning/mondly.py b/user_scanner/email_scan/learning/mondly.pynew file mode 100644index 0000000..12aa723--- /dev/null+++ b/user_scanner/email_scan/learning/mondly.py@@ -0,0 +1,32 @@+import httpx++from user_scanner.core.result import Result+++async def validate_mondly(email: str) -> Result:+ """Check Mondly's login endpoint without sending email."""+ url = "https://api.mondly.com/v1/user/login"+ show_url = "https://app.mondly.com"+ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.post(+ url,+ data={"email": email, "password": "scanner-invalid-password"},+ )++ if response.status_code == 429:+ return Result.error("Rate limited", url=show_url)+ if response.status_code != 200:+ return Result.error(+ f"Unexpected response status: {response.status_code}",+ url=show_url,+ )++ data = response.json()+ if data.get("errors", {}).get("password") == ["incorrect"]:+ return Result.taken(url=show_url)+ if data.get("errors", {}).get("password") == ["not-found"]:+ return Result.available(url=show_url)+ return Result.error("Unexpected response body", url=show_url)+ except (httpx.HTTPError, ValueError) as exc:+ return Result.error(exc, url=show_url)diff --git a/user_scanner/email_scan/learning/speak.py b/user_scanner/email_scan/learning/speak.pynew file mode 100644index 0000000..2393506--- /dev/null+++ b/user_scanner/email_scan/learning/speak.py@@ -0,0 +1,39 @@+import httpx++from user_scanner.core.result import Result+++async def validate_speak(email: str) -> Result:+ """Check Speak's non-loud registration email lookup."""+ show_url = "https://app.speak.com"+ url = (+ "https://identitytoolkit.googleapis.com/v1/accounts:createAuthUri"+ "?key=AIzaSyAbB_C9TGxqWryYcmx74MeTTeUXdUB4HU4"+ )+ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.post(+ url,+ json={+ "identifier": email,+ "continueUri": f"{show_url}/us-en/register/email",+ },+ headers={"Origin": show_url},+ )++ if response.status_code == 429:+ return Result.error("Rate limited", url=show_url)+ if response.status_code != 200:+ return Result.error(+ f"Unexpected response status: {response.status_code}",+ url=show_url,+ )++ data = response.json()+ if data.get("registered") is True:+ return Result.taken(url=show_url)+ if data.get("registered") is False:+ return Result.available(url=show_url)+ return Result.error("Unexpected response body", url=show_url)+ except (httpx.HTTPError, ValueError) as exc:+ return Result.error(exc, url=show_url)diff --git a/user_scanner/email_scan/learning/speakly.py b/user_scanner/email_scan/learning/speakly.pynew file mode 100644index 0000000..47c7626--- /dev/null+++ b/user_scanner/email_scan/learning/speakly.py@@ -0,0 +1,31 @@+import httpx++from user_scanner.core.result import Result+++async def validate_speakly(email: str) -> Result:+ """Check Speakly's reset endpoint. Sends email for registered accounts."""+ show_url = "https://speakly.me"+ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.post(+ "https://api.v4.speakly.me/api/v4/users/password/reset/",+ json={"email": email},+ )++ if response.status_code == 429:+ return Result.error("Rate limited", url=show_url)+ if response.status_code == 400:+ data = response.json()+ if data == ["Email not found."]:+ return Result.available(url=show_url)+ return Result.error("Email rejected by Speakly", url=show_url)+ # Speakly's frontend treats any resolved reset request as success.+ if response.status_code == 200:+ return Result.taken(url=show_url)+ return Result.error(+ f"Unexpected response status: {response.status_code}",+ url=show_url,+ )+ except (httpx.HTTPError, ValueError) as exc:+ return Result.error(exc, url=show_url)diff --git a/user_scanner/email_scan/learning/talkme.py b/user_scanner/email_scan/learning/talkme.pynew file mode 100644index 0000000..3318b2c--- /dev/null+++ b/user_scanner/email_scan/learning/talkme.py@@ -0,0 +1,38 @@+import hashlib++import httpx++from user_scanner.core.result import Result+++async def validate_talkme(email: str) -> Result:+ """Check TalkMe's login endpoint without sending email."""+ show_url = "https://www.talkme.ai"+ try:+ async with httpx.AsyncClient(timeout=15.0) as client:+ response = await client.post(+ "https://api.talkme.ai/api/user/login",+ json={+ "email": email,+ "password": hashlib.md5(+ b"scanner-invalid-password", usedforsecurity=False+ ).hexdigest(),+ },+ )++ if response.status_code == 429:+ return Result.error("Rate limited", url=show_url)+ if response.status_code != 200:+ return Result.error(+ f"Unexpected response status: {response.status_code}",+ url=show_url,+ )++ data = response.json()+ if data.get("errCode") == 80820021:+ return Result.available(url=show_url)+ if data.get("errCode") == 80820053:+ return Result.taken(url=show_url)+ return Result.error("Unexpected response body", url=show_url)+ except (httpx.HTTPError, ValueError) as exc:+ return Result.error(exc, url=show_url)