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.

add: 3 new modules dev/wix.py, dev/saashub.py, other/moz.py and pep8 formatting

kaifcodec032ed81b9cf7
diff --git a/user_scanner/email_scan/adult/flirtbate.py b/user_scanner/email_scan/adult/flirtbate.py
index 0e07b9f..a9db6f6 100644
--- a/user_scanner/email_scan/adult/flirtbate.py
+++ b/user_scanner/email_scan/adult/flirtbate.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
url = "https://api.flirtbate.com/api/v1/customer/reset-password-email"
show_url = "https://flirtbate.com"
@@ -41,5 +42,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(f"Unexpected Exception: {e}")
+
async def validate_flirtbate(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/adult/made_porn.py b/user_scanner/email_scan/adult/made_porn.py
index f86b997..8232f03 100644
--- a/user_scanner/email_scan/adult/made_porn.py
+++ b/user_scanner/email_scan/adult/made_porn.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://made.porn"
url = "https://made.porn/endpoint/api/json/change-password"
@@ -32,5 +33,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_made_porn(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/adult/pornhub.py b/user_scanner/email_scan/adult/pornhub.py
index cc0c1f9..c300668 100644
--- a/user_scanner/email_scan/adult/pornhub.py
+++ b/user_scanner/email_scan/adult/pornhub.py
@@ -2,6 +2,7 @@ import httpx
import re
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
base_url = "https://www.pornhub.com"
show_url = "https://pornhub.com"
@@ -18,7 +19,8 @@ async def _check(email: str) -> Result:
async with httpx.AsyncClient(http2=True, follow_redirects=True, timeout=5.0) as client:
try:
landing_resp = await client.get(base_url, headers=headers)
- token_match = re.search(r'var\s+token\s*=\s*"([^"]+)"', landing_resp.text)
+ token_match = re.search(
+ r'var\s+token\s*=\s*"([^"]+)"', landing_resp.text)
if not token_match:
return Result.error("Failed to extract dynamic token from HTML")
diff --git a/user_scanner/email_scan/adult/sexvid.py b/user_scanner/email_scan/adult/sexvid.py
index d1f99d7..5bc8e5e 100644
--- a/user_scanner/email_scan/adult/sexvid.py
+++ b/user_scanner/email_scan/adult/sexvid.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://sexvid.pro"
url = "https://www.sexvid.pro/reset-password/"
@@ -40,5 +41,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_sexvid(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/adult/superporn.py b/user_scanner/email_scan/adult/superporn.py
index e7cd4e2..2871464 100644
--- a/user_scanner/email_scan/adult/superporn.py
+++ b/user_scanner/email_scan/adult/superporn.py
@@ -1,10 +1,11 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://superporn.com"
url = "https://api.superporn.com/signup/check-email"
-
+
payload = {
'lang': "en_US",
'email': email
@@ -27,11 +28,11 @@ async def _check(email: str) -> Result:
data = response.json()
is_error = data.get("error")
-
+
if is_error is True:
if "Email is in use" in data.get("message", ""):
return Result.taken(url=show_url)
-
+
elif is_error is False:
if data.get("result") == "ok":
return Result.available(url=show_url)
@@ -41,5 +42,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_superporn(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/adult/xnxx.py b/user_scanner/email_scan/adult/xnxx.py
index ff3f9af..8a60b81 100644
--- a/user_scanner/email_scan/adult/xnxx.py
+++ b/user_scanner/email_scan/adult/xnxx.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://xnxx.com"
url = "https://www.xnxx.com/account/checkemail"
@@ -43,5 +44,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_xnxx(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/community/stackoverflow.py b/user_scanner/email_scan/community/stackoverflow.py
index 34992c5..143349d 100644
--- a/user_scanner/email_scan/community/stackoverflow.py
+++ b/user_scanner/email_scan/community/stackoverflow.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
async with httpx.AsyncClient(http2=False, follow_redirects=True) as client:
try:
@@ -37,5 +38,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(f"unexpected exception: {e}")
+
async def validate_stackoverflow(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/creator/flickr.py b/user_scanner/email_scan/creator/flickr.py
index 9f03e6b..d520d72 100644
--- a/user_scanner/email_scan/creator/flickr.py
+++ b/user_scanner/email_scan/creator/flickr.py
@@ -2,6 +2,7 @@ import httpx
import json
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
url = "https://cognito-idp.us-east-1.amazonaws.com"
show_url = "https://flickr.com"
@@ -36,7 +37,7 @@ async def _check(email: str) -> Result:
if "An account with the given email already exists" in body:
return Result.taken(url=show_url)
-
+
elif "PreSignUp failed with error Sign Up failure" in body:
return Result.available(url=show_url)
@@ -45,5 +46,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(str(e))
+
async def validate_flickr(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/creator/patreon.py b/user_scanner/email_scan/creator/patreon.py
index 38f6b69..74df0c3 100644
--- a/user_scanner/email_scan/creator/patreon.py
+++ b/user_scanner/email_scan/creator/patreon.py
@@ -52,8 +52,3 @@ async def _check(email: str) -> Result:
async def validate_patreon(email: str) -> Result:
return await _check(email)
-
-
-
-
-
diff --git a/user_scanner/email_scan/dev/__init__.py b/user_scanner/email_scan/dev/__init__.py
index 8b13789..e69de29 100644
--- a/user_scanner/email_scan/dev/__init__.py
+++ b/user_scanner/email_scan/dev/__init__.py
@@ -1 +0,0 @@
-
diff --git a/user_scanner/email_scan/dev/codewars.py b/user_scanner/email_scan/dev/codewars.py
index f671858..4043a6c 100644
--- a/user_scanner/email_scan/dev/codewars.py
+++ b/user_scanner/email_scan/dev/codewars.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://codewars.com"
url = "https://www.codewars.com/join"
@@ -48,5 +49,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(f"Unexpected Exception: {e}")
+
async def validate_codewars(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/dev/leetcode.py b/user_scanner/email_scan/dev/leetcode.py
index 52fe23f..b09927e 100644
--- a/user_scanner/email_scan/dev/leetcode.py
+++ b/user_scanner/email_scan/dev/leetcode.py
@@ -2,13 +2,14 @@ import httpx
import json
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://leetcode.com"
url = "https://leetcode.com/graphql/"
-
+
# Hardcoded values as leetcode accepting this value, weird but it works!
static_csrf = "bMwA82bLs7IrhigK19Bu6uDj4DhZnVnE"
-
+
payload = {
"query": """
mutation AuthRequestPasswordResetByEmail($email: String!) {
@@ -36,13 +37,14 @@ async def _check(email: str) -> Result:
response = await client.post(url, content=json.dumps(payload), headers=headers)
data = response.json()
- result_obj = data.get("data", {}).get("authRequestPasswordResetByEmail", {})
+ result_obj = data.get("data", {}).get(
+ "authRequestPasswordResetByEmail", {})
is_ok = result_obj.get("ok")
error_msg = result_obj.get("error")
if is_ok is True:
return Result.taken(url=show_url)
-
+
if is_ok is False and error_msg == "Email does not exist":
return Result.available(url=show_url)
@@ -51,5 +53,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_leetcode(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/dev/replit.py b/user_scanner/email_scan/dev/replit.py
index 097a4a5..cb69620 100644
--- a/user_scanner/email_scan/dev/replit.py
+++ b/user_scanner/email_scan/dev/replit.py
@@ -2,10 +2,11 @@ import httpx
import json
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
url = "https://replit.com/data/user/exists"
show_url = "https://replit.com"
-
+
payload = {
"email": email
}
@@ -48,5 +49,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(str(e))
+
async def validate_replit(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/dev/saashub.py b/user_scanner/email_scan/dev/saashub.py
new file mode 100644
index 0000000..34939bd
--- /dev/null
+++ b/user_scanner/email_scan/dev/saashub.py
@@ -0,0 +1,73 @@
+import httpx
+import re
+import time
+import uuid
+from user_scanner.core.result import Result
+
+
+async def _check(email: str) -> Result:
+ show_url = "https://saashub.com"
+ url = "https://www.saashub.com/register"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Mobile Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
+ 'accept-language': "en-US,en;q=0.9",
+ 'referer': "https://www.google.com/"
+ }
+
+ try:
+ async with httpx.AsyncClient(timeout=10.0, follow_redirects=True) as client:
+ r_get = await client.get(url, headers=headers)
+ if r_get.status_code != 200:
+ return Result.error(f"Failed to load register page: {r_get.status_code}")
+
+ token_match = re.search(
+ r'name="authenticity_token" value="([^"]+)"', r_get.text)
+ if not token_match:
+ return Result.error("Could not find authenticity_token in response")
+
+ auth_token = token_match.group(1)
+
+ payload = {
+ 'authenticity_token': auth_token,
+ 'user[email]': email,
+ 'user[username]': "t3rminalw0rri0r" + str(int(time.time()))[-4:],
+ 'user[password]': "",
+ 'user[password_confirmation]': "",
+ 'company_name': "",
+ 'commit': "Register"
+ }
+
+ post_headers = headers.copy()
+ post_headers.update({
+ 'Accept': "text/vnd.turbo-stream.html, text/html, application/xhtml+xml",
+ 'origin': "https://www.saashub.com",
+ 'referer': url,
+ 'x-turbo-request-id': str(uuid.uuid4())
+ })
+
+ response = await client.post(url, data=payload, headers=post_headers)
+
+ if response.status_code == 429:
+ return Result.error("Rate limited wait for few minutes")
+
+ res_text = response.text
+
+ if "Email - has already been taken" in res_text:
+ return Result.taken(url=show_url)
+
+ elif "We couldn't sign you up" in res_text and "Email - has already been taken" not in res_text:
+ return Result.available(url=show_url)
+
+ else:
+ return Result.error("Unexpected response body structure, report it via GitHub issues")
+
+ except httpx.ConnectTimeout:
+ return Result.error("Connection timed out! maybe region blocks")
+ except Exception as e:
+ return Result.error(e)
+
+
+async def validate_saashub(email: str) -> Result:
+ return await _check(email)
diff --git a/user_scanner/email_scan/dev/wix.py b/user_scanner/email_scan/dev/wix.py
new file mode 100644
index 0000000..313bc29
--- /dev/null
+++ b/user_scanner/email_scan/dev/wix.py
@@ -0,0 +1,55 @@
+import httpx
+import json
+from user_scanner.core.result import Result
+
+
+async def _check(email: str) -> Result:
+ show_url = "https://wix.com"
+ url = "https://users.wix.com/wix-users/v1/userAccountsByEmail"
+
+ payload = {
+ "email": email
+ }
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Mobile Safari/537.36",
+ 'Accept': "application/json, text/plain, */*",
+ 'Accept-Encoding': "identity",
+ 'Content-Type': "application/json",
+ 'sec-ch-ua-platform': '"Android"',
+ 'x-wix-client-artifact-id': "login-react-app",
+ 'origin': "https://users.wix.com",
+ 'referer': "https://users.wix.com/signin/signup",
+ 'accept-language': "en-US,en;q=0.9",
+ 'priority': "u=1, i"
+ }
+
+ try:
+ async with httpx.AsyncClient(timeout=7.0) as client:
+ response = await client.post(url, content=json.dumps(payload), headers=headers)
+
+ if response.status_code == 200:
+ data = response.json()
+ if "accountsData" in data and len(data.get("accountsData", [])) > 0:
+ return Result.taken(url=show_url)
+ return Result.error("Unexpected response body structure, report it via GitHub issues")
+
+ elif response.status_code == 404:
+ return Result.available(url=show_url)
+
+ elif response.status_code == 429:
+ return Result.error("Rate limited wait for few minutes")
+
+ else:
+ return Result.error(f"Unexpected status code: {response.status_code}, report it via GitHub issues")
+
+ except httpx.ConnectTimeout:
+ return Result.error("Connection timed out! maybe region blocks")
+ except httpx.ReadTimeout:
+ return Result.error("Server took too long to respond (Read Timeout)")
+ except Exception as e:
+ return Result.error(e)
+
+
+async def validate_wix(email: str) -> Result:
+ return await _check(email)
diff --git a/user_scanner/email_scan/dev/xda.py b/user_scanner/email_scan/dev/xda.py
index ebedbb1..d318b75 100644
--- a/user_scanner/email_scan/dev/xda.py
+++ b/user_scanner/email_scan/dev/xda.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://xda-developers.com"
url = "https://www.xda-developers.com/check-user-exists/"
@@ -37,5 +38,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_xda(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/gaming/addictinggames.py b/user_scanner/email_scan/gaming/addictinggames.py
index 95d4cf1..faa0966 100644
--- a/user_scanner/email_scan/gaming/addictinggames.py
+++ b/user_scanner/email_scan/gaming/addictinggames.py
@@ -2,6 +2,7 @@ import httpx
import json
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://addictinggames.com"
url = "https://prod.addictinggames.com/user/registerpass"
@@ -46,5 +47,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_addictinggames(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/gaming/chess_com.py b/user_scanner/email_scan/gaming/chess_com.py
index 871d95e..027614c 100644
--- a/user_scanner/email_scan/gaming/chess_com.py
+++ b/user_scanner/email_scan/gaming/chess_com.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
async with httpx.AsyncClient(http2=True) as client:
try:
@@ -44,5 +45,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(f"unexpected exception: {e}")
+
async def validate_chess_com(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/gaming/crazygames.py b/user_scanner/email_scan/gaming/crazygames.py
index cda51be..32e7555 100644
--- a/user_scanner/email_scan/gaming/crazygames.py
+++ b/user_scanner/email_scan/gaming/crazygames.py
@@ -2,10 +2,11 @@ import httpx
import json
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
url = "https://identitytoolkit.googleapis.com/v1/accounts:createAuthUri"
show_url = "https://crazygames.com"
-
+
params = {
'key': "AIzaSyAkBGn9sKEUBSMQ9CTFyHHxXas0tdcpts8"
}
@@ -31,7 +32,7 @@ async def _check(email: str) -> Result:
if is_registered is True:
return Result.taken(url=show_url)
-
+
elif is_registered is False:
return Result.available(url=show_url)
@@ -40,5 +41,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_crazygames(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/hosting/render.py b/user_scanner/email_scan/hosting/render.py
index daad123..6de3986 100644
--- a/user_scanner/email_scan/hosting/render.py
+++ b/user_scanner/email_scan/hosting/render.py
@@ -1,10 +1,11 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
url = "https://api.render.com/graphql"
show_url = "https://render.com"
-
+
payload = {
"operationName": "signUp",
"variables": {
@@ -57,5 +58,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_render(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/learning/alison.py b/user_scanner/email_scan/learning/alison.py
index 4d627c5..34a906e 100644
--- a/user_scanner/email_scan/learning/alison.py
+++ b/user_scanner/email_scan/learning/alison.py
@@ -2,6 +2,7 @@ import httpx
import re
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://alison.com"
url = "https://alison.com/register"
@@ -17,7 +18,8 @@ async def _check(email: str) -> Result:
async with httpx.AsyncClient(timeout=7.0, follow_redirects=True) as client:
init_res = await client.get(url, headers=headers)
- token_match = re.search(r'name="_token"\s+value="([^"]+)"', init_res.text)
+ token_match = re.search(
+ r'name="_token"\s+value="([^"]+)"', init_res.text)
if not token_match:
return Result.error("Unable to extract CSRF token from Alison")
@@ -52,5 +54,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_alison(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/learning/duolingo.py b/user_scanner/email_scan/learning/duolingo.py
index c645250..936216e 100644
--- a/user_scanner/email_scan/learning/duolingo.py
+++ b/user_scanner/email_scan/learning/duolingo.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://duolingo.com"
headers = {
@@ -25,7 +26,7 @@ async def _check(email: str) -> Result:
return Result.taken(url=show_url)
else:
return Result.available(url=show_url)
-
+
return Result.error(f"HTTP {response.status_code}")
except httpx.TimeoutException:
@@ -33,5 +34,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_duolingo(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/news/bbc.py b/user_scanner/email_scan/news/bbc.py
index 6bd3b76..8c81906 100644
--- a/user_scanner/email_scan/news/bbc.py
+++ b/user_scanner/email_scan/news/bbc.py
@@ -2,6 +2,7 @@ import httpx
import re
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://bbc.com"
login_url = "https://account.bbc.com/auth/identifier/signin?realm=%2F&clientId=Account&action=register&ptrt=https%3A%2F%2Fwww.bbc.com%2F&userOrigin=BBCS_BBC&purpose=free"
@@ -17,9 +18,11 @@ async def _check(email: str) -> Result:
async with httpx.AsyncClient(timeout=7.0, follow_redirects=True) as client:
response = await client.get(login_url, headers=headers)
- nonce_match = re.search(r'nonce=([a-zA-Z0-9\-_]+)', str(response.url))
+ nonce_match = re.search(
+ r'nonce=([a-zA-Z0-9\-_]+)', str(response.url))
if not nonce_match:
- nonce_match = re.search(r'"nonce":"([a-zA-Z0-9\-_]+)"', response.text)
+ nonce_match = re.search(
+ r'"nonce":"([a-zA-Z0-9\-_]+)"', response.text)
return Result.error("Unable to extract nonce, report it via GitHub issues")
@@ -59,5 +62,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_bbc(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/news/cnn.py b/user_scanner/email_scan/news/cnn.py
index 49a2860..c1bea4e 100644
--- a/user_scanner/email_scan/news/cnn.py
+++ b/user_scanner/email_scan/news/cnn.py
@@ -2,6 +2,7 @@ import httpx
import json
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://cnn.com"
url = "https://audience.cnn.com/core/api/1/identity"
@@ -44,5 +45,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_cnn(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/news/foxnews.py b/user_scanner/email_scan/news/foxnews.py
index 365767a..479b910 100644
--- a/user_scanner/email_scan/news/foxnews.py
+++ b/user_scanner/email_scan/news/foxnews.py
@@ -1,10 +1,11 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
url = "https://id.fox.com/status/v1/status"
show_url = "https://foxnews.com"
-
+
params = {
'email': email
}
@@ -34,7 +35,7 @@ async def _check(email: str) -> Result:
if found is True:
return Result.taken(url=show_url)
-
+
elif found is False:
return Result.available(url=show_url)
@@ -48,5 +49,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(e)
+
async def validate_foxnews(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/other/moz.py b/user_scanner/email_scan/other/moz.py
new file mode 100644
index 0000000..14aced8
--- /dev/null
+++ b/user_scanner/email_scan/other/moz.py
@@ -0,0 +1,69 @@
+import httpx
+import json
+import uuid
+from user_scanner.core.result import Result
+
+
+async def _check(email: str) -> Result:
+ show_url = "https://moz.com"
+ url = "https://moz.com/app-api/jsonrpc/user.create.validate"
+
+ rpc_id = str(uuid.uuid4())
+
+ payload = {
+ "jsonrpc": "2.0",
+ "id": rpc_id,
+ "method": "user.create.validate",
+ "params": {
+ "data": {
+ "create_session": True,
+ "verification_email_redirect": "/checkout/freetrial/billing-payment/pro_medium/monthly",
+ "user": {
+ "email": email,
+ "password": "W3n3v3r_t0uch3d_s0ftn33s"
+ }
+ }
+ }
+ }
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Mobile Safari/537.36",
+ 'Content-Type': "application/json",
+ 'sec-ch-ua-platform': '"Android"',
+ 'origin': "https://moz.com",
+ 'referer': "https://moz.com/checkout/freetrial/signup/pro_medium/monthly",
+ 'accept-language': "en-US,en;q=0.9"
+ }
+
+ try:
+ async with httpx.AsyncClient(timeout=10.0) as client:
+ response = await client.post(url, content=json.dumps(payload), headers=headers)
+
+ if response.status_code == 429:
+ return Result.error("Rate limited wait for few minutes")
+
+ if response.status_code != 200:
+ return Result.error(f"HTTP Error: {response.status_code}")
+
+ data = response.json()
+ result_data = data.get("result", {})
+ errors = result_data.get("errors", [])
+
+ if not errors:
+ return Result.available(url=show_url)
+
+ if any(err.get("data", {}).get("issue") == "param-is-duplicate" for err in errors):
+ return Result.taken(url=show_url)
+
+ return Result.error("Unexpected response body structure, report it via GitHub issues")
+
+ except httpx.ConnectTimeout:
+ return Result.error("Connection timed out! maybe region blocks")
+ except httpx.ReadTimeout:
+ return Result.error("Server took too long to respond (Read Timeout)")
+ except Exception as e:
+ return Result.error(e)
+
+
+async def validate_moz(email: str) -> Result:
+ return await _check(email)
diff --git a/user_scanner/email_scan/shopping/naturabuy.py b/user_scanner/email_scan/shopping/naturabuy.py
index ba77847..7315e3e 100644
--- a/user_scanner/email_scan/shopping/naturabuy.py
+++ b/user_scanner/email_scan/shopping/naturabuy.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://naturabuy.fr"
headers = {
@@ -30,12 +31,12 @@ async def _check(email: str) -> Result:
return Result.error(f"Unexpected status: {response.status_code}")
data = response.json()
-
+
if data.get("free") is False:
return Result.taken(url=show_url)
elif data.get("free") is True:
return Result.available(url=show_url)
-
+
return Result.error("Unexpected response format")
except httpx.TimeoutException:
@@ -43,5 +44,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(str(e))
+
async def validate_naturabuy(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/shopping/vivino.py b/user_scanner/email_scan/shopping/vivino.py
index 9d5949c..c3dd37c 100644
--- a/user_scanner/email_scan/shopping/vivino.py
+++ b/user_scanner/email_scan/shopping/vivino.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://vivino.com"
headers = {
@@ -46,5 +47,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(str(e))
+
async def validate_vivino(email: str) -> Result:
return await _check(email)
diff --git a/user_scanner/email_scan/social/facebook.py b/user_scanner/email_scan/social/facebook.py
index 6d12c85..6099dbc 100644
--- a/user_scanner/email_scan/social/facebook.py
+++ b/user_scanner/email_scan/social/facebook.py
@@ -2,6 +2,7 @@ import httpx
import re
from user_scanner.core.result import Result
+
async def _check(email: str) -> Result:
show_url = "https://facebook.com"
async with httpx.AsyncClient(http2=True, follow_redirects=False) as client:
@@ -92,6 +93,6 @@ async def _check(email: str) -> Result:
except Exception as e:
return Result.error(f"Unexpected exception: {e}")
+
async def validate_facebook(email: str) -> Result:
return await _check(email)
-
diff --git a/user_scanner/email_scan/social/x.py b/user_scanner/email_scan/social/x.py
index 69c0599..00f6b48 100644
--- a/user_scanner/email_scan/social/x.py
+++ b/user_scanner/email_scan/social/x.py
@@ -1,6 +1,7 @@
import httpx
from user_scanner.core.result import Result
+
async def _check(email):
url = "https://api.x.com/i/users/email_available.json"
show_url = "https://x.com"