{"id":13842255,"url":"https://github.com/inspiringz/fofa","last_synced_at":"2026-01-17T03:20:11.999Z","repository":{"id":107927718,"uuid":"390374528","full_name":"inspiringz/fofa","owner":"inspiringz","description":"一款 Go 语言编写的小巧、简洁、快速采集 fofa 数据导出到 Excel 表单的小工具。","archived":false,"fork":false,"pushed_at":"2023-03-16T02:46:14.000Z","size":5482,"stargazers_count":28,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-21T12:45:08.286Z","etag":null,"topics":["fofa","go-lang","xlsx"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inspiringz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-07-28T14:08:58.000Z","updated_at":"2024-08-12T20:15:04.000Z","dependencies_parsed_at":"2024-02-06T00:59:02.857Z","dependency_job_id":null,"html_url":"https://github.com/inspiringz/fofa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/inspiringz/fofa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspiringz%2Ffofa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspiringz%2Ffofa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspiringz%2Ffofa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspiringz%2Ffofa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspiringz","download_url":"https://codeload.github.com/inspiringz/fofa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspiringz%2Ffofa/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833275,"owners_count":23670617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fofa","go-lang","xlsx"],"created_at":"2024-08-04T17:01:30.428Z","updated_at":"2026-01-17T03:20:11.982Z","avatar_url":"https://github.com/inspiringz.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# fofa\n\n一款 Go 语言编写的小巧、简洁、快速采集 fofa 数据导出到 Excel 表单的小工具。\n\n- Goroutine + retryablehttp\n\n![image-20211204193949354](images/image-20211204193949354.png)\n\n![image-20211204194044392](images/image-20211204194044392.png)\n\n## Build\n\n```bash\ngit clone https://github.com/inspiringz/fofa\ncd fofa\ngo build -ldflags \"-s -w\" -trimpath \n```\n\n## Usage\n\n```\n\n      ░░░░▐▐░░░  dMMMMMP .aMMMb  dMMMMMP .aMMMb\n ▐  ░░░░░▄██▄▄  dMP     dMP\"dMP dMP     dMP\"dMP\n  ▀▀██████▀░░  dMMMP   dMP dMP dMMMP   dMMMMMP\n  ░░▐▐░░▐▐░░  dMP     dMP.aMP dMP     dMP dMP\n ▒▒▒▐▐▒▒▐▐▒  dMP      VMMMP\" dMP     dMP dMP\n https://github.com/inspiringz/fofa\n\nUsage:\n  ./main -m fofa_email -k fofa_key -q 'header=\"elastic\"' -s 10000 -o data.xlsx\n  ./main -m fofa_email -k fofa_key -f query_rules_file.txt -s 10000 -o data.xlsx\n\nOptions:\n  -h, --help\n  -m, --mail MAIL            fofa email account (default: )\n  -k, --key KEY              fofa api key (default: )\n  -q, --query QUERY          query string (default: '')\n  -f, --file FILE            batch query rules file (default: '')\n  -s, --size SIZE            export data volume (default: 10000)\n  -o, --output OUTPUT        output filename / absolute path (default: data.xlsx)\n  -g, --grammar              fofa search grammar help table\n  -t, --tip TIP              fofa search keyword tip droplist\n  -ih, --iconhash ICONHASH   calculate url specified favicon icon_hash\n```\n\n\u003e fofa_email / fofa_key 优先从命令行参数`-m`/`-k`指定的值中获取，若无则尝试从环境变量`FOFA_EMAIL`/`FOFA_KEY`中获取，最后尝试从 option/parsecli.go 中定义的`DefaultEmail`/`DefaultAPIKey`中获取。\n\n- fofa search tip\n\n![image-20210730140630127](images/image-20210730140630127.png)\n\n- favicon icon hash\n\n![image-20210730140842568](images/image-20210730140842568.png)\n\n- fofa search grammar\n\n![image-20210730140930181](images/image-20210730140930181.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspiringz%2Ffofa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspiringz%2Ffofa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspiringz%2Ffofa/lists"}