一个可扩展的工具,用于在 tor 网络上收集、爬取和监控洋葱站点,并将收集到的信息索引到 Elasticsearch
OnionIngestor 基于 ThreatIngestor 工具结构,为网络威胁情报团队提供模块化且可扩展的访问能力,使其能够监控和收集 tor 网络上隐藏站点的信息。
该项目正处于早期开发阶段。
OnionIngestor 运行并管理 3 种重要的类: Sources(来源) - 这些类将从明网来源(如 pastebin、twitter、gist 以及爬取的链接)收集隐藏站点 Operators(操作器) - 这些类将处理洋葱链接。例如获取 html、截图并运行其他扫描器,如 onionscan Notifiers(通知器) - 这些类将通知用户——每日发送报告,以及当监控的隐藏站点发生任何新变化时进行通知
OnionIngestor 被设计为以守护进程方式运行,它从已启用的来源收集隐藏站点并将其传递给操作器, 完成后休眠至用户定义的时间,然后从头重新开始该过程。
爬取 2 天后的 Kibana 仪表板
安装依赖
pip install -r requirements.txt
在 tor 客户端和已安装的库就绪后,使用 --help 命令获取其用法详情。
python3 -m onionscraper --help
OnionScraper
An extendable tool to Collect, Crawl and Monitor onion sites on tor network and index collected information on Elasticsearch
Installation:
This application assumes you have python3 and pip3 installed.
pip3 install -r requirements.txt
This software is provided subject to the MIT license stated below.
--------------------------------------------------
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--------------------------------------------------
optional arguments:
-h, --help show this help message and exit
-c CONFIGFILE, --config CONFIGFILE
Path to config file
--log {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Set the logging level, default is INFO
yaml 配置文件包含 OnionIngestor 运行所需的全部信息
python -m onionscan -c config.yml
将运行源模块从互联网收集 onion 链接,并运行所有操作器进行收集和爬取
python -m onionscan -c config.yml --monitor thisIsAnOnionSiteLink.onion thisIsAnOnionSiteLink.onion
监控模式会绕过所有类型的黑名单
python -m onionscan -c config.yml --scan thisIsAnOnionSiteLink.onion
将运行所有操作器,但不运行任何源模块
onionscan --mode analysis -verbose -webport 8081
通过 onionscan 运行 webapp
结果的输出为 json,并以相同的格式发送到所选的 syslog。