用于 MalDuck 的恶意软件配置提取工具与模块
本项目完全免费,如同免费的 🍺,你可以将其用于商业、私人或任何你认为合适的方式。
使用本项目最简单的方式是访问 mwcfg.info,立即开始提取恶意软件配置!
如果你喜欢本项目并希望捐赠 💰 以支持对抗恶意软件的战斗……
请给我买杯 🍵,因为我不喝 🍺,你可以向 16oXesi7uv3jdPZxxwarHSD2f3cNMpaih9 发送一些 ₿
安装:
sudo apt update
sudo apt install -y python-virtualenv python-is-python3 git-lfs gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-devel
git clone --recursive https://github.com/c3rb3ru5d3d53c/mwcfg.git
cd mwcfg/
virtualenv -p python3 venv
source venv/bin/activate
pip install -v .
git lfs --include tests/azorult.zip
unzip -P infected tests/azorult.zip tests/
mwcfg --input tests/azorult/ --modules modules/ --threads 4 --debug
mwcfg --input tests/azorult/ --list-modules
通过 PyPi 安装:
sudo apt install -y python-virtualenv python-is-python3
virtualenv venv/
source venv/bin/activate
pip install mwcfg
git clone https://github.com/c3rb3ru5d3d53c/mwcfg-modules.git modules/
mwcfg --input sample.bin --modules modules/ --debug
通过 Docker 安装服务器:
sudo apt install -y docker.io make
sudo usermod -a -G docker $USER
make mwcfg-server # 构建服务器
make mwcfg-server-start # 启动服务器
make mwcfg-server-status # 检查运行状态
make mwcfg-server-logs # 跟踪日志
make mwcfg-server-stop # 停止服务器
make mwcfg-server-clean # 删除服务器
完成后,请访问 https://127.0.0.1
你也可以通过以下方式上传样本并获取结果:
curl --silent --insecure -X POST --upload-file sample.bin https://127.0.0.1
mwcfg 用法:
usage: mwcfg v1.0.0 [-h] [--version] [-i INPUT] -m MODULES [--list-modules] [-d] [-p] [-t THREADS] [-r] [-l LOG]
A Modular Malware Configuration Extraction Utility for MalDuck
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-i INPUT, --input INPUT
Input File or Directory
-m MODULES, --modules MODULES
Modules
--list-modules
-d, --debug Debug
-p, --pretty Pretty Print Configs
-t THREADS, --threads THREADS
Threads
-r, --recursive Recursive
-l LOG, --log LOG Log to File
Author: c3rb3ru5
mwcfg-server 用法:
usage: mwcfg-server v1.0.0 [-h] [--version] [--host HOST] [-p PORT] -m MODULES [-u UPLOADS] [-d]
A Modular Malware Configuration Extraction Server using MalDuck
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--host HOST Host
-p PORT, --port PORT
-m MODULES, --modules MODULES
Modules
-u UPLOADS, --uploads UPLOADS
Uploads Directory
-d, --debug
Author: c3rb3ru5
Karton 框架安装:
sudo apt install -y python-virtualenv python-is-python3 git-lfs
git clone --recursive https://github.com/c3rb3ru5d3d53c/mwcfg.git
cd mwcfg/
virtualenv venv/
source venv/bin/activate
./setup.py install
pip install karton-config-extractor
karton-config-extractor --config-file karton.ini --modules modules/
贡献模块:
请参阅 CONTRIBUTING.md
其他资源: