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.3 KB
Raw Blame
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/"

    params = {
        'email': email,
        'subscribe': "true"
    }

    headers = {
        'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36",
        'Accept': "application/json",
        'Referer': "https://www.xda-developers.com/",
    }

    try:
        async with httpx.AsyncClient(timeout=15.0) as client:
            response = await client.get(url, params=params, headers=headers)
            data = response.json()
            exists = data.get("userExists")

            if exists is True:
                return Result.taken(url=show_url)

            if exists is False:
                return Result.available(url=show_url)

            return Result.error("Unexpected response body, report it on github")

    except httpx.ConnectTimeout:
        return Result.error("Connection timed out (XDA)")
    except httpx.ReadTimeout:
        return Result.error("Server took too long to respond (XDA)")
    except Exception as e:
        return Result.error(e)


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