Skip to content
Maua.Culturewire

FOFA

Exposed asset search engine: IPs, ports, websites and certificates

SecurityCatalog2 tools · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • API keySecretRequired
    • Account emailOptional

    Where to find them

    1. Sign in at fofa.info (or en.fofa.info) with your account.
    2. Open your “Personal Center” → “API” and copy the “API KEY”. API usage depends on the account level: paid plans come with a monthly quota of queries and results, and without them F-points are used. Error messages often arrive in Chinese.

    Get credentials (opens in a new tab)

Tools (2)

  • FOFA API requestFOFA_SEND_REQUEST

    Authenticated call to the FOFA API (https://fofa.info/api/v1). Any endpoint of the API is allowed. Queries go in base64 (parameter qbase64). Examples: GET /search/all?qbase64=<query in base64>&fields=ip,port,host,domain,title,server,protocol,country&size=100&page=1, GET /search/stats?qbase64=…&fields=country,port (aggregates), GET /host/{ip}?detail=true, GET /info/my. Syntax: domain="example.com", host="…", ip="1.2.3.0/24", cert="example.com", title="…", port="3389" && country="US", app="…". Errors arrive with status 200 and "error": true.

    Required scopes

    No scopes required

    Input

    FOFA API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.
  • SearchFOFA_SEARCH_HOSTS

    Searches with FOFA syntax (domain="…", host="…", ip="1.2.3.0/24", cert="…", title="…", port="3389" && country="US", app="…"…). Returns the total and the results: IP, port, host, domain, title, server, protocol, country and organization. Uses API quota according to the plan.

    Required scopes

    No scopes required

    Input

    Search input
    NameTypeDescription
    queryrequiredstringe.g. domain="example.com" || cert="example.com"
    pageintegerDefault: 1
    maxintegerDefault: 50