fofa hack
Project description
Fofa-hack
简体中文 | English
公告
fofa对游客的请求进行了限制 , Fofa-hack 程序本身没有问题
如果你使用的时候发现获取不到数据 , 请使用最新版本中的多authorization实现数据获取
python fofa.py -k index --authorization-file au.txt
以及... 如果大家有注册的多余没用的账号,也可以把authorization提交到 issue里面来实现共享
简介
PS: 感谢FOFA提供这么好的测绘工具
非付费会员,fofa数据采集工具
-f
参数开启关键字fuzz
--authorization
指定登录用户的 authorization , authorization需要F12获取
使用示例
fofa-hack.exe --keyword thinkphp --endcount 500
fofa-hack.exe --keyword thinkphp --endcount 500 --authorization your_authorization
安装
下载 fofa-hack releases 最新版本
运行
运行fofa-hack.exe
, -k
或--keyword
参数传入搜索关键字
更多参数查看 --help
fofa-hack.exe --help
Fofa-hack>python fofa.py -h
____ ____ ____ ____
| ===|/ () \| ===|/ () \
|__| \____/|__| /__/\__\
_ _ ____ ____ __ __
| |_| | / () \ / (__`| |/ /
|_| |_|/__/\__\\____)|__|\__\ V2.4.16
公众号: 黑糖安全
usage: fofa.py [-h] (--keyword KEYWORD | --inputfile INPUTFILE | --base BASE | --iconurl ICONURL | --iconfile ICONFILE) [--timesleep TIMESLEEP] [--timeout TIMEOUT] [--endcount ENDCOUNT] [--level LEVEL] [--output OUTPUT]
[--outputname OUTPUTNAME] [--fuzz] [--proxy-type {socks4,socks5,http}] [--authorization AUTHORIZATION] [--authorization-file AUTHORIZATION_FILE] [--proxy PROXY | --proxy-url PROXY_URL | --proxy-file PROXY_FILE]
Fofa-hack v2.4.16 使用说明
optional arguments:
-h, --help show this help message and exit
--keyword KEYWORD, -k KEYWORD
fofa搜索关键字
--inputfile INPUTFILE, -i INPUTFILE
指定文件,从文件中批量读取fofa语法
--base BASE, -b BASE 以base64的形式输入关键字 -b InRoaW5rcGhwIg==
--iconurl ICONURL 指定url的icon作为icon_hash关键字
--iconfile ICONFILE 指定icon_file作为icon_hash关键字
--timesleep TIMESLEEP, -t TIMESLEEP
爬取每一页等待秒数,防止IP被Ban,默认为3
--timeout TIMEOUT, -to TIMEOUT
爬取每一页的超时时间,默认为180秒
--endcount ENDCOUNT, -e ENDCOUNT
爬取结束数量
--level LEVEL, -l LEVEL
爬取等级: 1-3 ,数字越大内容越详细,默认为 1
--output OUTPUT, -o OUTPUT
输出格式:txt、json,默认为txt
--outputname OUTPUTNAME, -on OUTPUTNAME
指定输出文件名,默认文件名为 fofaHack
--fuzz, -f 关键字fuzz参数,增加内容获取粒度
--proxy-type {socks4,socks5,http}
代理类型,默认为http
--authorization AUTHORIZATION
指定Authorization值
--authorization-file AUTHORIZATION_FILE
从文件中读取authorization列表 --authorization-file authorization.txt
--proxy PROXY 指定代理,代理格式 --proxy '127.0.0.1:7890'
--proxy-url PROXY_URL
指定代理url,即访问URL响应为proxy,代理格式 --proxy-url http://127.0.0.1/proxy_pool/get
--proxy-file PROXY_FILE
指定txt格式的代理文件,按行分割,代理格式 --proxy-file proxy.txt
爬取的去重结果会存储到final_fofaHack.txt
文件中
API
也可以使用api调用
pip install fofa-hack
from fofa_hack import fofa
def main():
result_generator = fofa.api("thinkphp", endcount=100)
for data in result_generator:
print(data)
if __name__ == '__main__':
main()
搜索语法
一些搜索的示例
- 搜索 thinkphp 1000条数据
fofa.exe -k thinkphp -e 1000
- 搜索有连接符的关键字(注意单双引号)
fofa.exe -k "index && country='CN'"
- 高级语法搜索(本来我以为高级语法用不了,但是最近好像又解禁了)
fofa.exe -k icon_hash="1165838194"
- 欢迎补充....
测试
使用命令
fofa-hack.exe --keyword thinkphp --endcount 500
爬取五百条数据轻轻松松
赞赏列表
详情请见SPONSOR
使用问题集合
详情请见ISSUES
更新日志
详情请见CHANGELOG
TODO List
详情请见TODO
贡献者
潘一二三 |
Wans |
tastypear |
KawaiiSh1zuku |
Valdo-Caeserius |
10cks |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file fofa_hack-0.0.2.tar.gz
.
File metadata
- Download URL: fofa_hack-0.0.2.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a411b14254751c49b2331578c7360d1c523fb5a42d0c95ac2e4c9a345d24d2a5 |
|
MD5 | eae87fc92897d205a3ce3429a0eb1238 |
|
BLAKE2b-256 | 31c65550f0e4257e3d105e8a39d749ba4a72ad701ac83484fa95c0009ec8be13 |
File details
Details for the file fofa_hack-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: fofa_hack-0.0.2-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce5d84ccec7c3812788f69c223e841019ac077bcf170f285c89290a49002321 |
|
MD5 | 3b0c54e16795ac119185286c3dc681fe |
|
BLAKE2b-256 | af03fec48dfb6a0b3617c8fb4364fdf6ae560548f8d88e4412884bde1d9cb3c6 |
File details
Details for the file fofa_hack-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: fofa_hack-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a413470d7c17e45b2a4945d3ce2f39f32137a3c993eb388137e33a510a7afd99 |
|
MD5 | c0080ea6e8662cb208792f0a80ee301d |
|
BLAKE2b-256 | 85d6d9e47b1a0e921dfce2e46cbd5c0f46d9ecddf22f66eaffccba3b7a0d2658 |