Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inspiringz/fofa
一款 Go 语言编写的小巧、简洁、快速采集 fofa 数据导出到 Excel 表单的小工具。
https://github.com/inspiringz/fofa
fofa go-lang xlsx
Last synced: 21 days ago
JSON representation
一款 Go 语言编写的小巧、简洁、快速采集 fofa 数据导出到 Excel 表单的小工具。
- Host: GitHub
- URL: https://github.com/inspiringz/fofa
- Owner: inspiringz
- Created: 2021-07-28T14:08:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-16T02:46:14.000Z (over 1 year ago)
- Last Synced: 2024-08-05T17:30:59.974Z (4 months ago)
- Topics: fofa, go-lang, xlsx
- Language: Go
- Homepage:
- Size: 5.23 MB
- Stars: 29
- Watchers: 2
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - inspiringz/fofa - 一款 Go 语言编写的小巧、简洁、快速采集 fofa 数据导出到 Excel 表单的小工具。 (Go)
README
# fofa
一款 Go 语言编写的小巧、简洁、快速采集 fofa 数据导出到 Excel 表单的小工具。
- Goroutine + retryablehttp
![image-20211204193949354](images/image-20211204193949354.png)
![image-20211204194044392](images/image-20211204194044392.png)
## Build
```bash
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/fofaUsage:
./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.xlsxOptions:
-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](images/image-20210730140630127.png)
- favicon icon hash
![image-20210730140842568](images/image-20210730140842568.png)
- fofa search grammar
![image-20210730140930181](images/image-20210730140930181.png)