soxoj/osint-cli-tool-skeleton

GitHub: soxoj/osint-cli-tool-skeleton

为安全研究者提供的 Python OSINT 命令行工具开发模板,内置多目标输入、多格式报告和 HTTP 服务等基础能力,帮助快速搭建定制化情报采集工具。

Stars: 75 | Forks: 8

# OSINT 命令行工具骨架

PyPI PyPI - Downloads Views

用于构建新 OSINT 命令行工具的模板。 **点击 “[Use this template](https://github.com/soxoj/osint-cli-tool-skeleton/generate)” 按钮来生成你自己的工具仓库。** 更多设置请参见 [INSTALL.md](INSTALL.md)。 ## 功能 - 详细的 README - 通过参数、文本文件、标准输入处理 N 个目标 - 生成 TXT、CSV 报告 - 支持 Proxy - 可随时发布的 Python 包 ## 使用方法 ``` $ python3 -m osint-cli-tool-skeleton # 或者简单地 $ osint_cli_tool_skeleton # 或者在不安装的情况下本地运行 $ ./run.py ```
目标
指定一次或多次目标: ``` $ osint_cli_tool_skeleton www.google.com reddit.com patreon.com Target: www.google.com Results found: 1 1) Value: Google Code: 200 ------------------------------ Target: patreon.com Results found: 1 1) Value: Best way for artists and creators to get sustainable income and connect with fans | Patreon Code: 200 ------------------------------ Target: reddit.com Results found: 1 1) Value: Reddit - Dive into anything Code: 200 ------------------------------ Total found: 3 ``` 或者使用包含目标列表的文件: ``` $ osint_cli_tool_skeleton --target-list targets.txt ``` 或者通过输入/输出管道将该工具与其他工具结合使用: ``` $ cat list.txt | osint_cli_tool_skeleton --targets-from-stdin ```
报告
该骨架实现了 CSV 报告功能: ``` $ osint_cli_tool_skeleton www.google.com reddit.com patreon.com -oC results.csv ... Results were saved to file results.csv $ more results.csv "Target","Value","Code" "www.google.com","Google","200" "patreon.com","Best way for artists and creators to get sustainable income and connect with fans | Patreon","200" "reddit.com","Reddit - Dive into anything","200" ``` 该工具还支持 JSON 输出格式: ``` osint_cli_tool_skeleton www.google.com reddit.com patreon.com -oJ results.json ... Results were saved to file results.json $ cat results.json | jq | head -n 10 [ { "input": { "value": "www.google.com" }, "output": [ { "value": "Google", "code": 200 } ] }, ``` 并且可以将控制台输出单独保存到文本文件中: ``` osint_cli_tool_skeleton www.google.com reddit.com patreon.com -oT results.txt ... Results were saved to file results.txt $ head -n 4 results.txt Target: www.google.com Results found: 1 1) Value: Google Code: 200 ```
代理
该工具支持代理: ``` $ osint_cli_tool_skeleton www.google.com --proxy http://localhost:8080 ```
服务器
该工具可以作为服务器运行: ``` $ osint_cli_tool_skeleton --server 0.0.0.0:8080 Server started $ curl localhost:8080/check -d '{"targets": ["google.com", "yahoo.com"]}' -s | jq [ { "input": { "value": "google.com" }, "output": [ { "value": "Google", "code": 200 } ] }, { "input": { "value": "yahoo.com" }, "output": [ { "value": "Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos", "code": 200 } ] } ] ```
## 安装说明 确保已安装 Python3 和 pip。
手动安装
1. 克隆或 [下载](https://github.com/soxoj/osint-cli-tool-skeleton/archive/refs/heads/main.zip) 仓库 ``` $ git clone https://github.com/soxoj/osint-cli-tool-skeleton ``` 2. 安装依赖 ``` $ pip3 install -r requirements.txt ```
作为包安装
你可以克隆或下载仓库,并从该目录安装以作为 Python 包使用。 ``` $ pip3 install . ``` 你也可以从 PyPI 仓库进行安装: ``` $ pip3 install https://github.com/soxoj/osint-cli-tool-skeleton ```
标签:CSV, ESC4, OSINT, Python, 代理支持, 后渗透, 告警, 命令控制, 攻击路径可视化, 数据采集, 无后门, 网络安全, 脚手架, 逆向工具, 隐私保护, 项目模板, 黑客工具