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.

1.6 KB
Raw Blame
import httpx
import secrets
from user_scanner.core.result import Result


async def _check(email: str) -> Result:
    url = "https://www.polarsteps.com/api/users/validation/unique"
    show_url = "https://polarsteps.com"

    payload = {
        'field': "email",
        'value': email
    }

    device_id = secrets.token_hex(8)

    headers = {
        '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-app-version-code': "2000010449",
        'polarsteps-app-version': "10.6.0",
        'polarsteps-device-platform': "1",
        'Accept-Language': "en-US",
        'polarsteps-device-id': device_id,
        'polarsteps-device-name': "Samsung%20SM-G973F"
    }

    try:
        async with httpx.AsyncClient(timeout=15.0) as client:
            response = await client.post(url, data=payload, headers=headers)

            if response.status_code == 403:
                return Result.error("403")

            try:
                data = response.json()
            except Exception:
                return Result.error(f"Unexpected: {response.text[:20]}")

            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 JSON: {data}")

    except Exception as e:
        return Result.error(e)


async def validate_polarsteps(email: str) -> Result:
    return await _check(email)