소스 정보
- 저장소
- xiecat/fofax
- 최근 소스 활동
- 2026년 3월 6일 05:32
- 감지된 SKILL.md 언어
- 중국어
- 스타
- 837
- 포크
- 81
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/xiecat/fofax --skill fofa-query-syntax명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | fofa-query-syntax |
| description | 生成、改写并校验 FOFA 查询语句。用于用户提到 FOFA、资产测绘、语法速查、查询语句编写、语句纠错、条件组合优化时。 |
key)。field="value"。field!="value"(仅当字段支持 not_equal)。&& / || 进行组合。is_domain=true。YYYY-MM-DD。ip_filter(...)、ip_exclude(...)。按约束使用运算符:
equal + not_equal + fuzzy_search(可用 =、!=、模糊)port, domain, host, os, server, asn, org, cloud_name, protocol, title, header_hash, js_name, js_md5, cname, cname_domain, icp, cert.subject, cert.issuer, cert.subject.org, cert.subject.cn, cert.issuer.org, cert.issuer.cn, cert.domain, jarm, tls.ja3sequal + not_equal(可用 =、!=)ip, fid, product, product.version, category, banner, banner_hash, banner_fid, base_protocol, header, body, body_hash, icon_hash, status_code, sdk_hash, country, region, city, cert, tls.version, cert.sn, port_sizeequal only(仅可 =)is_domain, is_ipv6, app, type, is_cloud, is_fraud, is_honeypot, cert.is_equal, cert.is_valid, cert.is_match, cert.is_expired, cert.not_after.after, cert.not_after.before, cert.not_before.after, cert.not_before.before, after, before, after&before, ip_filter(), ip_exclude(), port_size_gt, port_size_lt, ip_ports, ip_country, ip_region, ip_city, ip_after, ip_before如果用户给了不被支持的写法(例如对 equal only 字段使用 !=),必须改写为合法表达式并说明改写原因。
group 0 资产基础ip, port, domain, host, os, server, asn, org, is_domain, is_ipv6group 1 应用与资产分类app, fid, product, product.version, category, type, cloud_name, is_cloud, is_fraud, is_honeypotgroup 2 协议与横幅protocol, banner, banner_hash, banner_fid, base_protocolgroup 3 Web 内容与页面特征title, header, header_hash, body, body_hash, js_name, js_md5, cname, cname_domain, icon_hash, status_code, icp, sdk_hashgroup 4 地理信息country, region, citygroup 5 证书信息cert, cert.subject, cert.issuer, cert.subject.org, cert.subject.cn, cert.issuer.org, cert.issuer.cn, cert.domain, cert.is_equal, cert.is_valid, cert.is_match, cert.is_expired, jarm, tls.version, tls.ja3s, cert.sn, cert.not_after.after, cert.not_after.before, cert.not_before.after, cert.not_before.beforegroup 6 时间筛选after, before, after&beforegroup 7 同源 IP 与独立 IP 聚合ip_filter(), ip_exclude(), port_size, port_size_gt, port_size_lt, ip_ports, ip_country, ip_region, ip_city, ip_after, ip_before若命中以下字段,输出时追加版本提示:
(个人版及以上)banner_hash, banner_fid, header_hash, cert.is_equal, cert.is_valid, cert.is_match, cert.is_expired, after, before(专业版及以上)is_fraud, is_honeypot(商业版及以上)sdk_hash, ip_filter(), ip_exclude(), port_size, port_size_gt, port_size_lt, ip_ports, ip_country, ip_region, ip_city, ip_after, ip_before按以下顺序执行,不跳步:
= / != / 模糊。= 写法,不擅自使用 !=。group 7:ip_filter(), ip_exclude(), port_size*, ip_ports。group 3:title, body, header, icon_hash 等。group 5:cert.*。group 6:after, before(优先,不建议使用 after&before)。country, region, cityip_country, ip_region, ip_city在“语法检查”中至少检查以下项:
product_version(应为 product.version)。equal only 字段误用 !=。"true")。after 晚于 before。is_ipv6=true && is_ipv6=false)。主查询:
<query>
等价改写:
1) <query_variant_1>
2) <query_variant_2>
语法检查:
- 字段合法性:通过/不通过(原因)
- 运算符合法性:通过/不通过(原因)
- 条件冲突:无/有(说明)
说明:
- 条件解释...
- 版本权限提醒(如有)...
ip="1.1.1.1"port="6379"domain="qq.com"title="beijing" && body="网络空间测绘"header_hash="1258854265" && icon_hash="-247388890"cert.subject="Oracle Corporation" && cert.is_valid=truecert.not_after.before="2025-03-01"after="2023-01-01" && before="2023-12-01"ip_filter(banner="SSH-2.0-OpenSSH_6.7p2") && ip_filter(icon_hash="-1057022626")ip_filter(banner="SSH-2.0-OpenSSH_6.7p2" && asn="3462") && ip_exclude(title="EdgeOS")!= 改为 = 并调整逻辑)。true/false(不加引号)。YYYY-MM-DD。after&before 标记为不推荐:优先改写为 after="..." && before="..."。发现问题:
1) <原写法>
修正建议:
1) <修正写法>
原因:
- <对应 grammar 能力限制或字段定义>