jbreed / apkwash

Android APK Antivirus evasion for msfvenom generated payloads.
GNU General Public License v3.0
185 stars 65 forks source link

Name #9

Open gnu-like opened 6 years ago

gnu-like commented 6 years ago

In previous after installing payload the name of it was 'Androidservice' but now is 'MainActivity' how can I produce payload with name equal 'Androidservice'

jbreed commented 6 years ago

Will take a look once I get some me time to look. Quick glance the sed line for this is:

sed -i "s#MainActivity#$apkName#" /tmp/payload/res/values/strings.xml

You could use debugging option the look at the strings.xml file manually to see the result.

gnu-like commented 6 years ago

strings.xml:

<?xml version="1.0" encoding="utf-8"?>  
<resources>
    <string name="app_name">LegitAndroidApp</string>
</resources>`

after installing the name must be outFile="AndroidService.apk" because

fullPath=$outFile
APK=$(basename $fullPath)
jbreed commented 6 years ago

When you install the app, what name are you seeing for the installed package? Will take a glance this weekend to see if I can find what changed. Also, did you name it LegitAndroidApp?