MCPcopy Index your code
hub / github.com/inspiringz/fofa

github.com/inspiringz/fofa @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
29 symbols 94 edges 6 files 0 documented · 0% 1 cross-repo links

Browse by type

Functions 28 Types & classes 1
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

fofa

一款 Go 语言编写的小巧、简洁、快速采集 fofa 数据导出到 Excel 表单的小工具。

  • Goroutine + retryablehttp

image-20211204193949354

image-20211204194044392

Build

git clone https://github.com/inspiringz/fofa
cd fofa
go build -ldflags "-s -w" -trimpath 

Usage


      ░░░░▐▐░░░  dMMMMMP .aMMMb  dMMMMMP .aMMMb
 ▐  ░░░░░▄██▄▄  dMP     dMP"dMP dMP     dMP"dMP
  ▀▀██████▀░░  dMMMP   dMP dMP dMMMP   dMMMMMP
  ░░▐▐░░▐▐░░  dMP     dMP.aMP dMP     dMP dMP
 ▒▒▒▐▐▒▒▐▐▒  dMP      VMMMP" dMP     dMP dMP
 https://github.com/inspiringz/fofa

Usage:
  ./main -m fofa_email -k fofa_key -q 'header="elastic"' -s 10000 -o data.xlsx
  ./main -m fofa_email -k fofa_key -f query_rules_file.txt -s 10000 -o data.xlsx

Options:
  -h, --help
  -m, --mail MAIL            fofa email account (default: )
  -k, --key KEY              fofa api key (default: )
  -q, --query QUERY          query string (default: '')
  -f, --file FILE            batch query rules file (default: '')
  -s, --size SIZE            export data volume (default: 10000)
  -o, --output OUTPUT        output filename / absolute path (default: data.xlsx)
  -g, --grammar              fofa search grammar help table
  -t, --tip TIP              fofa search keyword tip droplist
  -ih, --iconhash ICONHASH   calculate url specified favicon icon_hash

fofa_email / fofa_key 优先从命令行参数-m/-k指定的值中获取,若无则尝试从环境变量FOFA_EMAIL/FOFA_KEY中获取,最后尝试从 option/parsecli.go 中定义的DefaultEmail/DefaultAPIKey中获取。

  • fofa search tip

image-20210730140630127

  • favicon icon hash

image-20210730140842568

  • fofa search grammar

image-20210730140930181

Core symbols most depended-on inside this repo

Shape

Function 21
Method 7
Struct 1

Languages

Go100%

Modules by API surface

fetch/fofa.go14 symbols
logger/logger.go9 symbols
report/report.go3 symbols
utils/utils.go1 symbols
option/parsecli.go1 symbols
main.go1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add fofa \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page