🕵️♂️ (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
Update email checking logic for Firefox API
Anubhav Kashyap8bbc4cde85fe
diff --git a/user_scanner/email_scan/other/anydo.py b/user_scanner/email_scan/other/anydo.pyindex c40c753..56a2a96 100644--- a/user_scanner/email_scan/other/anydo.py+++ b/user_scanner/email_scan/other/anydo.py@@ -1,43 +1,43 @@import httpxfrom user_scanner.core.result import Result-async def _check(email: str) -> Result:- url = "https://sm-prod2.any.do/check_email"- show_url = "https://any.do"-- headers = {- "User-Agent": "Mozilla/5.0",- "Accept": "*/*",- "Accept-Language": "en,en-US;q=0.5",- "Referer": "https://desktop.any.do/",- "Content-Type": "application/json; charset=UTF-8",- "X-Platform": "3",- "Origin": "https://desktop.any.do",- "DNT": "1",- "Connection": "keep-alive",+ url = "https://api.accounts.firefox.com/v1/account/status"+ show_url = "https://firefox.com"++ payload = {+ "email": email}- data = {"email": email}+ try:+ async with httpx.AsyncClient(timeout=10.0) as client:+ response = await client.post(url, data=payload)++ if response.status_code == 403:+ return Result.error("Caught by WAF or IP Block (403)")- async with httpx.AsyncClient(timeout=5.0) as client:- try:- response = await client.post(url, json=data, headers=headers)+ if response.status_code == 429:+ return Result.error("Rate limited by Firefox (429)")- if response.status_code == 200:- json_data = response.json()+ if response.status_code != 200:+ return Result.error(f"HTTP Error: {response.status_code}")- if json_data.get("user_exists") is True:- return Result.taken(url=show_url)+ text = response.text.lower()- if json_data.get("user_exists") is False:- return Result.available(url=show_url)+ if "true" in text:+ return Result.taken(url=show_url)- return Result.error("Rate limited or unexpected response")+ elif "false" in text:+ return Result.available(url=show_url)- except Exception as e:- return Result.error(str(e))+ return Result.error("Unexpected response body structure")+ 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_anydo(email: str) -> Result:+async def validate_firefox(email: str) -> Result:return await _check(email)