ph0neutria 恶意软件爬虫
v1.0.1
https://github.com/phage-nz/ph0neutria
注意: 该项目已不再积极维护。
ph0neutria 是一个恶意软件样本库构建器,直接从互联网上收集样本。所有内容都存储在 Viper 中,以便于访问和管理。
该项目受 Ragpicker(https://github.com/robbyFux/Ragpicker,原名“Malware Crawler”)启发。但 ph0neutria 的目标是:
名字的含义?“Phoneutria nigriventer”通常被称为巴西游走蛛:https://en.wikipedia.org/wiki/Brazilian_wandering_spider
自 1.0.0 版本起,所有来源都创建为“插件”,位于核心脚本文件夹的插件子目录中。默认来源包括:
每个插件都有必须在运行前完成的参数。你可以在每个插件文件的顶部找到它们。
VirusTotal 是 ph0neutria 的核心组件,无法禁用。IP 列表被输入其中,以发现已知与该 IP 相关的 URL。如果你拥有标准的 5 请求/分钟 API 密钥,我建议谨慎输入内容。你可以通过以下方式实现:

以下脚本将安装 ph0neutria 以及 Viper 和 Tor:
wget https://raw.githubusercontent.com/phage-nz/ph0neutria/master/install.sh
chmod +x install.sh
sudo ./install.sh
就是这么简单!
配置额外的 ClamAV 签名:
cd /tmp
git clone https://github.com/extremeshok/clamav-unofficial-sigs
cd clamav-unofficial-sigs
cp clamav-unofficial-sigs.sh /usr/local/bin
chmod 755 /usr/local/bin/clamav-unofficial-sigs.sh
mkdir /etc/clamav-unofficial-sigs
cp config/* /etc/clamav-unofficial-sigs
cd /etc/clamav-unofficial-sigs
将 os.<你的发行版>.conf 重命名为 os.conf,例如:
mv os.ubuntu.conf os.conf
修改配置文件:
user_configuration_complete="yes",以便以下命令成功执行。更多配置信息请参见:https://github.com/extremeshok/clamav-unofficial-sigs
mkdir /var/log/clamav-unofficial-sigs
clamav-unofficial-sigs.sh --install-cron
clamav-unofficial-sigs.sh --install-logrotate
clamav-unofficial-sigs.sh --install-man
clamav-unofficial-sigs.sh
cd /tmp/clamav-unofficial-sigs
cp systemd/\* /etc/systemd
cd ..
rm -rf clamav-unofficial-sigs*
下载新签名需要一些时间——在此期间 ClamAV 可能不可用。
在构建你的恶意软件样本库时请采取预防措施:
确保 Tor 已启动:
service tor restart
启动 Viper API 和 Web 界面:
cd /opt/viper
sudo -H -u spider python3 viper-web
记下启动 Viper 时创建的管理员密码。使用该密码登录 http://<viper IP>:<viper port>/admin(默认:http://127.0.0.1:8080/admin),然后从 Tokens 页面获取 API 令牌。
主要的 Viper Web 界面将在 http://<viper IP>:<viper port>(默认:http://127.0.0.1:8080)可用。
/opt/ph0neutria/core/config/settings.conf/opt/ph0neutria/core/plugins/*.py启动 ph0neutria:
cd /opt/ph0neutria
sudo -H -u spider python3 run.py
你可以随时按 Ctrl+C 终止运行。你可以随时再次运行——不会产生数据库重复。
要每天运行,请在 /etc/cron.daily 中创建一个包含以下内容的脚本:
#!/bin/bash
cd /opt/ph0neutria && sudo -H -u spider python3 run.py*
标签: {1},{2},{3}
备注: {1}({2}) via {3}
文件的原始名称构成 Viper 中的标识名称。