🕵️♂️ (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: add Tindie email and username modules (#625)
Kristo Isberg1d86c7e0d1e7
diff --git a/user_scanner/email_scan/shopping/tindie.py b/user_scanner/email_scan/shopping/tindie.pynew file mode 100644index 0000000..4b4be09--- /dev/null+++ b/user_scanner/email_scan/shopping/tindie.py@@ -0,0 +1,55 @@+from curl_cffi.requests.exceptions import RequestException++from user_scanner.core.impersonate import impersonate_request_async+from user_scanner.core.result import Result+++async def validate_tindie(email: str) -> Result:+ signup_url = "https://www.tindie.com/accounts/signup/"+ check_url = "https://www.tindie.com/accounts/check_email/"+ show_url = "https://www.tindie.com/"++ try:+ landing = await impersonate_request_async(signup_url)+ if landing.status_code != 200:+ return Result.error(+ f"Unexpected signup status: {landing.status_code}", url=show_url+ )++ token = landing.cookies.get("csrftoken")+ if not token:+ return Result.error("CSRF token not found", url=show_url)++ response = await impersonate_request_async(+ check_url,+ method="POST",+ data={"email": email},+ headers={+ "Referer": signup_url,+ "X-CSRFToken": token,+ },+ )+ except RequestException as exc:+ return Result.error(exc, url=show_url)++ if response.status_code == 429:+ return Result.error("Rate limited; try again later", url=show_url)+ if response.status_code != 200:+ return Result.error(+ f"Unexpected check status: {response.status_code}", url=show_url+ )++ try:+ data = response.json()+ except ValueError:+ return Result.error("Invalid email response", url=show_url)++ match data:+ case {"valid": False, "errors": ["Email already registered!"]}:+ return Result.taken(url=show_url)+ case {"valid": True, "errors": [], "message": "Email available!"}:+ return Result.available(url=show_url)+ case {"errors": [error, *_]}:+ return Result.error(str(error), url=show_url)+ case _:+ return Result.error("Unexpected email response", url=show_url)diff --git a/user_scanner/user_scan/shopping/tindie.py b/user_scanner/user_scan/shopping/tindie.pynew file mode 100644index 0000000..f91cd39--- /dev/null+++ b/user_scanner/user_scan/shopping/tindie.py@@ -0,0 +1,71 @@+from user_scanner.core.impersonate import impersonate_request, impersonate_validate+from user_scanner.core.result import Result+++def validate_tindie(user: str) -> Result:+ signup_url = "https://www.tindie.com/accounts/signup/"++ def process(landing):+ if landing.status_code != 200:+ return Result.error(f"Unexpected signup status: {landing.status_code}")++ token = landing.cookies.get("csrftoken")+ if not token:+ return Result.error("CSRF token not found")++ response = impersonate_request(+ "https://www.tindie.com/accounts/check_username/",+ method="POST",+ data={"username": user},+ headers={+ "Referer": signup_url,+ "X-CSRFToken": token,+ },+ )++ if response.status_code == 429:+ return Result.error("Rate limited; try again later")+ if response.status_code != 200:+ return Result.error(f"Unexpected check status: {response.status_code}")++ match response.json():+ case {"valid": False, "errors": ["Username taken!"]}:+ extra, media = _seller_profile(user)+ return Result.taken(extra=extra, media=media)+ case {"valid": True, "errors": [], "message": "Username available!"}:+ return Result.available()+ case {"errors": [error, *_]}:+ return Result.error(str(error))+ case _:+ return Result.error("Unexpected username response")++ return impersonate_validate(signup_url, process, show_url="https://www.tindie.com/")+++def _seller_profile(user: str) -> tuple[dict, dict]:+ try:+ response = impersonate_request(+ "https://www.tindie.com/api/v1/product/",+ params={"limit": 1, "store_username": user},+ )+ if response.status_code != 200:+ return {}, {}++ data = response.json()+ products = data.get("objects") or []+ store = products[0] if products else None+ if not isinstance(store, dict):+ return {}, {}+ if str(store.get("store_username", "")).casefold() != user.casefold():+ return {}, {}++ return (+ {+ "store_name": store.get("store_name"),+ "store_url": store.get("store_url"),+ "products": (data.get("meta") or {}).get("total_count"),+ },+ {"avatar": store.get("store_avatar")},+ )+ except Exception:+ return {}, {}