Skip to content

login546/fofago

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fofago

已将Releases 里 GO Modules 的 fofa.so 更新为 fofa.info ,并编译,可直接下载使用,或自行修改。

Mac
https://github.com/login546/fofago/releases/download/fofa.info%E7%89%88%E6%9C%AC/mac.zip

Linux
https://github.com/login546/fofago/releases/download/fofa.info%E7%89%88%E6%9C%AC/linux.zip

Windows
https://github.com/login546/fofago/releases/download/fofa.info%E7%89%88%E6%9C%AC/windows.zip

Fofa批量查询工具,查询时自动拼接&& (is_honeypot=false && is_fraud=false)排除干扰资产。

  -f string
    	example  -f target.txt (批量爬取语法)
  -i string
    	example -i https://www.baidu.com/favicon.ico (计算远程favicon.ico的hash值)
    	example -i favicon.ico (计算本地favicon.ico的hash值)
  -k string
    	example  -k title="百度"
    	example  -k domain="baidu.com"
    	example  -k 'domain="baidu.com" && city="Nanjing"'
    	......
    	And Support Fofa Other Syntax
  -o string
    	example -o result.csv (指定输出到xxx.csv文件,如未添加此参数,默认输出到result.csv)
  -p int
    	example -p 100 (可用此参数设置最大爬取页数,默认爬取所有结果时,无需加此参数)

首次使用需修改配置文件config.yaml

输入FOFA的email和key

使用

查询单条语句

./fofago -k 'domain="baidu.com"'         Mac下
fofago.exe -k 'domain="baidu.com"'       Windows下

image

同时会在本地生成result.csv

如需指定输出文件名则增加-o xxxx.csv

image

iconhash计算

远程加载favicon.ico

./fofago -i https://www.baidu.com/favicon.ico         Mac下
fofago.exe -i https://www.baidu.com/favicon.ico       Windows下

image

本地加载favicon.ico

./fofago -i favicon.ico         Mac下
fofago.exe -i favicon.ico       Windows下

image

参考:https://github.com/Becivells/iconhash

查询多条语句

新建一个文本,文本格式每行仅限一条查询语句,如下url.txt

app="佑友-佑友防火墙"
title="幻阵"
title="360新天擎"
title="登录_威思客"
"ClusterEngine" && title=="TSCEV4.0 login"

使用以下命令

./fofago -f url.txt          Mac下
fofago.exe -f url.txt        Windows下

image

image

输出

默认输出为result.csv,或使用以下命令自定义输出文件名

./fofago -f url.txt -o test.csv          Mac下
fofago.exe -f url.txt -o test1.csv       Windows下

下载执行程序

Mac

https://github.com/login546/fofago/releases/download/dev/windows.zip

Linux

https://github.com/login546/fofago/releases/download/dev/linux.zip

Windows

https://github.com/login546/fofago/releases/download/dev/windows.zip

编译

Mac

GOARCH=amd64 GOOS=darwin go build -o fofago-darwin main.go

Linux

GOARCH=amd64 GOOS=linux go build -o fofago-linux main.go

Windows

GOARCH=amd64 GOOS=windows go build -o fofago-windows.exe main.go