Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qiygan/fofa-dump
Fofa Pro Api下载工具
https://github.com/qiygan/fofa-dump
Last synced: 21 days ago
JSON representation
Fofa Pro Api下载工具
- Host: GitHub
- URL: https://github.com/qiygan/fofa-dump
- Owner: qiygan
- License: apache-2.0
- Created: 2019-11-27T07:00:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T04:19:01.000Z (about 5 years ago)
- Last Synced: 2024-08-05T17:30:41.629Z (4 months ago)
- Size: 14 MB
- Stars: 17
- Watchers: 0
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - qiygan/fofa-dump - Fofa Pro Api下载工具 (Python)
README
# fofa-dump
Fofa Pro Api 下载工具,通过 api 进行下载数据,将数据保存为 csv 文件。可自定义配置导出字段名称、每页数量以及批量下载数据。
## 用法
- 环境要求:Python 3
- **使用之前需要配置用户名和密码覆盖 `fofa_name` 和 `fofa_key` 替换为用户自用信息**
- 使用 `pip install -r requirements.txt` 安装依赖```python
~ python fofa_dump.py
usage: fofa_dump.py [-h] [-q FOFA_SQL] [-r FILE_PATH] [-s SIZE] [-f FIELDS]
[-l FULL]FOFA 数据下载工具
optional arguments:
-h, --help show this help message and exit
-q FOFA_SQL, --fofa_sql FOFA_SQL
FOFA 查询语句
-r FILE_PATH, --file_path FILE_PATH
批量查询 FOFA 语句,txt文本
-s SIZE, --size SIZE 每页数量,默认为 10000
-f FIELDS, --fields FIELDS
字段,默认为ip,host,port,protocol,country,region,city,title,
domain,latitude,longitude
-l FULL, --full FULL 是否为获取历史数据,默认为False
```## 案例
使用 fofa-dump 进行下载 Solr 数据:
```python
python fofa_dump.py -q 'app="Solr"'
```