████████╗ ██████╗ ██████╗ ██████╗ ██████╗ ████████╗
╚══██╔══╝██╔═══██╗██╔══██╗ ██╔══██╗██╔═████╗╚══██╔══╝
██║ ██║ ██║██████╔╝ ██████╔╝██║██╔██║ ██║
██║ ██║ ██║██╔══██╗ ██╔══██╗████╔╝██║ ██║
██║ ╚██████╔╝██║ ██║ ██████╔╝╚██████╔╝ ██║
╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
暗网开源情报工具
--version 和 --update 在无需提供 URL 的情况下运行。torbot app 启动。...(将更新)
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
python main.py --help
python main.py --version
python main.py -u https://example.com --depth 2 --visualize table
# Gather basic site information
python main.py -u https://example.com --info
# Save the crawl tree as JSON
python main.py -u https://example.com --depth 2 --save json
# Disable SOCKS5 if you are not using Tor locally
python main.py -u https://example.com --disable-socks5 --visualize tree
# Launch the optional desktop app when TorBotApp is installed
torbot app
保存带版本号的爬取结果,并将其转化为带引用的调查包:
torbot --url https://example.com --disable-socks5 \
--save result --result-file crawl-result.json
torbot analyze crawl-result.json --provider ollama --model qwen3 \
--output investigation/
Analyst 默认使用本地 Ollama 端点。远程 OpenAI 兼容提供商需要显式指定 --allow-remote 标志。每个受支持的发现都必须引用已捕获的证据,并且提供商故障绝不会阻止确定性证据包的写入。有关离线快速入门、输出格式、隐私边界和 schema,请参阅 TorBot Analyst。
usage: Gather and analyze data from Tor sites.
optional arguments:
-u URL, --url URL Specify a website link to crawl
--depth DEPTH Specify max depth of crawler (default 1)
-h, --help Show this help message and exit
--host Set IP address for SOCKS5 proxy (defaults to 127.0.0.1)
--port Set port for SOCKS5 proxy (defaults to 9050)
-v Displays DEBUG level logging, default is INFO
--version Show the current version of TorBot.
--update Update TorBot to the latest stable version
--app Run optional TorBot desktop app
--app-dir APP_DIR Path to a TorBotApp checkout
-q, --quiet Prevents display of header and IP address
--save FORMAT Save results in a file. (tree, JSON)
--visualize FORMAT Visualizes tree of data gathered. (tree, JSON, table)
-i, --info Info displays basic info of the scanned site
--disable-socks5 Executes HTTP requests without using SOCKS5 proxy
-u/--url对于--info、--save和--visualize等与爬取相关的命令是必需的。
如果你在本地使用 Tor,请保持 SOCKS5 代理启用。如果你不使用 Tor,请添加 --disable-socks5 以避免代理连接错误。
在此处阅读有关 torrc 的更多信息:Torrc
TorBot 仍然是一个以 CLI 为先的 Python 工具。桌面 UI 位于单独的 TorBotApp Electron 项目中,因此 CLI 用户 不需要 Node 和 Electron。
要从此 CLI 启动它,请将 TorBotApp 安装为同级检出:
code/
+-- TorBot/
+-- TorBotApp/
然后运行:
torbot app
如果 TorBotApp 位于其他位置,请使用以下任一方式:
TORBOT_APP_DIR=/path/to/TorBotApp torbot app
torbot --app --app-dir /path/to/TorBotApp
有关 CLI、可选 UI 和后端服务如何协同工作,请参阅 桌面应用架构。
如果您在项目中遇到任何问题,请通过此处创建新 issue 告知我们。
我们欢迎对本项目的贡献!以下是需要遵循的几条指南:
dev 分支提交 pull request 之前,请运行 pytest 确保您的代码通过所有测试。