🕵️♂️ (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
fix(email): update Polarsteps API to v10.6.0 (#608)
Kaif3984971413f8
diff --git a/user_scanner/email_scan/travel/polarsteps.py b/user_scanner/email_scan/travel/polarsteps.pyindex 280af22..1893819 100644--- a/user_scanner/email_scan/travel/polarsteps.py+++ b/user_scanner/email_scan/travel/polarsteps.py@@ -1,25 +1,30 @@import httpx+import secretsfrom user_scanner.core.result import Resultasync def _check(email: str) -> Result:- url = "https://www.polarsteps.com/validation/unique"+ url = "https://www.polarsteps.com/api/users/validation/unique"show_url = "https://polarsteps.com"payload = {- 'field': "users.email",+ 'field': "email",'value': email}+ device_id = secrets.token_hex(8)+headers = {- 'User-Agent': "Polarsteps/8.0.0 (com.polarsteps; build:2000006379; Android 10)",- 'Accept-Encoding': "identity",- 'polarsteps-api-version': "55",+ 'User-Agent': "Polarsteps/10.6.0 (com.polarsteps; build:2000010449; Android 33)",+ 'Accept-Encoding': "gzip",+ 'polarsteps-api-version': "73",'polarsteps-user-language': "en-US",- 'polarsteps-device-id': "a1b2c3d4e5f6g7h8",- 'polarsteps-device-name': "Samsung%20SM-G973F",+ 'polarsteps-app-version-code': "2000010449",+ 'polarsteps-app-version': "10.6.0",'polarsteps-device-platform': "1",- 'Accept-Language': "en-US"+ 'Accept-Language': "en-US",+ 'polarsteps-device-id': device_id,+ 'polarsteps-device-name': "Samsung%20SM-G973F"}try:@@ -29,15 +34,18 @@ async def _check(email: str) -> Result:if response.status_code == 403:return Result.error("403")- res_text = response.text.strip().upper()-- if res_text == "OK":- return Result.available(url=show_url)+ try:+ data = response.json()+ except Exception:+ return Result.error(f"Unexpected: {response.text[:20]}")- if res_text == "INVALID":- return Result.taken(url=show_url)+ if "is_unique" in data:+ if data["is_unique"] is True:+ return Result.available(url=show_url)+ else:+ return Result.taken(url=show_url)- return Result.error(f"Unexpected: {res_text[:10]}")+ return Result.error(f"Unexpected JSON: {data}")except Exception as e:return Result.error(e)