Skip to content
Security
Skill

/fofamap

Use FofaMap to validate FOFA syntax, search and profile internet assets, aggregate statistics, export bounded results, and manage authorized scan plans through its MCP tools. Trigger for FOFA queries, external attack-surface discovery, host intelligence, favicon searches, asset

From plugin
fofamap
7691 skill1 MCP

Claude Code

$ npx -y skills add asaotomo/FofaMap --skill fofamap --agent claude-code

SKILL.md

fofamap.SKILL.md
name: fofamap
description: Use FofaMap to validate FOFA syntax, search and profile internet assets, aggregate statistics, export bounded results, and manage authorized scan plans through its MCP tools. Trigger for FOFA queries, external attack-surface discovery, host intelligence, favicon searches, asset inventory, exposure analysis, FOFA result exports, or scheduled mapping with snapshot trends.

FofaMap

Use the FofaMap MCP server for evidence-based FOFA asset research. This workflow matches FofaMap 2.0.2 and the current https://fofa.info/api grammar. Prefer the MCP tools over shell commands when they are available. When the user writes in English, or FofaMap's interface language is English, write the briefing, purpose, advice, and status in English. Set `report_language` to `zh`, `en`, or `both` to match that choice.

Setup and user preferences

Installers first offer Chinese/English and save the choice for account setup and later CLI sessions. Automation can pass `--language en` to `install.sh` or `-Language en` to `install.bat`/`install.ps1`. In the wizard, Settings → Interface language changes it directly; Settings → Returned fields controls the ordinary-query default. Each search also exposes its own field choice after Maximum pages. Smart selection needs no model key. Explicit CLI fields or `--no-smart-fields` override the ordinary-query default; `--smart-fields` explicitly requests smart selection. These CLI preferences do not silently rewrite MCP search fields: use `fofa_fields` suggestions and pass the intended `fields` explicitly.

When `report_language` is omitted, `fofa_render_report` and `fofa_agent_run` follow the saved interface language. An explicit user's language takes precedence, so pass it when known. Reconnect an already running MCP server after changing its saved startup preferences; do not claim a host has reloaded without checking. Install/repair/uninstall are local setup operations, not MCP tools. Do not expose credentials in chat while guiding setup.

Workflow

1. Clarify the target, ownership or authorization boundary, desired fields, time range, and result limit when these materially affect the request. Call `fofa_account` and `fofa_fields` when membership-dependent capabilities matter; these tools work even in hosts that do not expose MCP Resources. 2. If the user names a product, OA, VPN, middleware, database, camera, CMS, or ops panel, call `fofa_rules` **before** `fofa_search`. Use the returned `query` values verbatim. Do not invent `app=` names. An empty keyword returns a bounded preview plus category_summary (no FOFA quota). Use category/keyword to narrow and limit<=200. Inspect verified/verified_at: legacy mappings were not reverified and must not be presented as current official names. 3. Call `fofa_validate_query` before spending FOFA quota. Numeric fields accept quoted or bare integers, including `status_code=200`. Repair invalid syntax before searching. 4. Call `fofa_search` for an exact query. `size` is records per page (1–10000, default 100). `max_records` is the total cap for that call (1–1000). `max_pages` limits pages (1–20). Omitting both caps returns one page of `size`. That page is not the population; read `total`. Map an explicit count directly: "only the first 30" → `size=30`, `max_records=30`, `max_pages=1`; "the first 300, 100 per page" → `size=100`, `max_records=300`, `max_pages=3`. Do not raise a number the user already gave. To fetch more than one page, set both caps. Use `fofa_export` when the user needs a larger local file. Large return fields reduce the effective page size: `body` to 500; `cert`, `banner`, or `header` to 2000. Keep the total/page caps and read how many rows were actually returned; a smaller page is not automatically the end of the result. `fofa_agent_run` and `fofa_exposure_review` stay full unless `sample` is true. 5. Use `fofa_search_next` only to continue past that window, immediately, with the same `size` and the opaque cursor. FOFA cursors expire (`40070`; legacy alias `40870`) when the next call is delayed. An expired continuation cursor is an error: start a new `fofa_search`. Page 1 is not the next page. A single `fofa_search` that already spans multiple pages continues on numbered `/api/v1/search/all` pages when its own cursor expires, and the summary says so. 6. The API field appendix and https://fofa.info/vip are the capability sources; prefer live `fofa_account` results for actual remaining quota. The legacy levels map exactly: 0 registered, 1/11 personal, 2/12 professional, 13 business, 5 enterprise, 22 education. Education is not business. Current syntax counts (2026-11-01) are 44/60/62 for registered/personal/professional; do not use these counts as authorization rules. Never treat `-1` legacy quota as unlimited. 7. Use `fofa_host_profile` only when `fofa_account` shows Host aggregation (not registered users). The official host API allows one request per second; `detail=true` adds per-port products. Use `fofa_stats` only when the account has the stats API (professional / business / enterprise), and wait 5 seconds between stats calls. Stats fields are only `protocol`, `domain`, `port`, `title`, `os`, `server`, `country`, `asn`, `org`, `asset_type`, `fid`, and `icp`. Each dimension returns FOFA's published top 5. `product` cannot be aggregated. `product.version` is a search field for business accounts and above, not a stats field. Personal, ordinary, and education accounts should use `fofa_search` instead of stats. 8. Use `fofa_export` for large or reusable result sets, then poll `fofa_job_status`. Return the artifact path instead of pasting large tables. 9. Use `fofa_icon_search` for an explicit public website favicon. For an open-ended intent, parse it with the host model, then call `fofa_rules` when a product is named, `fofa_validate_query`, and `fofa_search`. If FOFA rejects one statement as invalid syntax or an unknown app, rewrite that statement once with `fofa_syntax` and `fofa_

Read more
@asaotomo
Ships withfofamap

证据驱动的 AI 资产测绘与安全研判工具。 FofaMap 由 Hx0 工作室开发,将 FOFA 资产发现、AI 反思、Nuclei 授权验证与交互式报告融入同一工作流,让查询依据、分析过程与验证结果可追溯、可复核。 你可以通过方向键向导快速上手,继续使用经典命令行,或通过 MCP / Skill / REST API 接入 AI 助手与自动化流程。普通查询仅需 FOFA API Key,无需配置模型;主动扫描需经用户确认。

7691 skill1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
769
Star history of asaotomo/FofaMap on GitHub, a chart by star-history.com

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docs…

@nvidia@nvidiaInstall Skill

Questions about fofamap.

Which coding agents can use fofamap?
fofamap installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.