sensepost / kwetza

Python script to inject existing Android applications with a Meterpreter payload.
GNU General Public License v2.0
633 stars 237 forks source link

ERROR !!! #27

Open kali64amd opened 6 years ago

kali64amd commented 6 years ago

Hi, there Please advise on this Error..................

[*] DECOMPILING TARGET APK [+] ENDPOINT IP: ** ** [+] ENDPOINT PORT: 4467 [+] APKTOOL DECOMPILED SUCCESS [] BYTING HTTPS COMMS [*] ANALYZING ANDROID MANIFEST !!! ERROR IN 'parseAndroidManifest' method [Errno 2] No such file or directory: '/root/Desktop/Tool/kwetza/com/AndroidManifest.xml'

I have saw this issue on and you advise this.......

This appears to be a bug in the script. To workaround this in the meantime, place your target APK in the same directory as Kwetza.py

## However its strange cuz this apk file is in same Folder

root@kali:~/Desktop/Tool/kwetza# ls LICENSE README.md com.steam.photoeditor.apk kwetza.py payload

So please advise, appreciate your help.

## I have also small apk name ............... And got this!!

[] DECOMPILING TARGET APK [+] ENDPOINT IP: 27.34.44.82 [+] ENDPOINT PORT: 4444 [+] APKTOOL DECOMPILED SUCCESS [] BYTING TCP COMMS [] ANALYZING ANDROID MANIFEST [+] TARGET ACTIVIY: .asp [] PREPARING PAYLOADS !!! ERROR IN 'readPayloads' method [Errno 2] No such file or directory: '/root/Desktop/Tool/kwetza/patro/smali//asp.smali' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ghost commented 6 years ago

Look at your error code... root/Desktop/Tool/kwetza//root/Downloads/UC.apk) was not found or

Should you really be running Linux if you can’t spot that?? Thanks,


On Nov 5, 2017, at 4:34 AM, kali64amd notifications@github.com wrote:

root/Desktop/Tool/kwetza//root/Downloads/UC.apk) was not found or w

kali64amd commented 6 years ago

ufffff root/Desktop/Tool/kwetza//root/Downloads/UC.apk) was not found or

This is only example....

DarkG31 commented 6 years ago

i think i have the same problem.

[*] PREPARING PAYLOADS !!! ERROR IN 'readPayloads' method [Errno 2] No such file or directory: '/root/Schreibtisch/kwetza/Kik_v11/smali/com/moo/another/AssistActivity1.smali' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

does anyone have a solution for this problem? the apk is in the same folder.

tokenwizard commented 6 years ago

I think I ran into this issue as well. Apparently the default setup for this kwetza script is to look in the TargetDirectory for a "smali" subfolder. I took a look at the decompiled apk I was working with and noticed there was not "smali" folder, instead there was a "smali_classes2" folder.

So I edited the kwetza.py and replaced all instances of "/smali/" with "smali_classes2" and was able to get the script to successfully execute past this breakpoint: 2018-01-12-145310_864x133_scrot

Now my final hurdle seems to be an issue with jarsigner being able to locate/sign the resulting apk: 2018-01-12-150014_802x155_scrot

tokenwizard commented 6 years ago

Just want to point out that the above jarsigner issue does not have anything to do with the kwetza script itself but something "off" about my apktool/jdk/jarsigner configuration on the machine I was testing with. I tested on another machine running a fresh ARCH Linux install and apktool and jdk7 installed via pacman and it worked fine. I DID still have to make the above changes regarding the smali/smali_classes2 paths.

insidevoid commented 5 years ago

Hi, I got something similar error

[*] DECOMPILING TARGET APK !!! ERROR IN 'initialize' method [Errno 2] No such file or directory !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Vikram1807 commented 5 years ago

[] DECOMPILING TARGET APK [+] ENDPOINT IP: ... [+] ENDPOINT PORT: *** [+] APKTOOL DECOMPILED SUCCESS [] BYTING TCP COMMS [*] ANALYZING ANDROID MANIFEST [DEBUG] Attempting to find MAIN !!! ERROR IN 'parseAndroidManifest' method Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! $

Wew

Gregbeef commented 4 years ago

] DECOMPILING TARGET APK Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true [+] ENDPOINT IP: 192.168.10.129 [+] ENDPOINT PORT: no Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true [+] APKTOOL DECOMPILED SUCCESS [] BYTING TCP COMMS [*] ANALYZING ANDROID MANIFEST [DEBUG] Attempting to find MAIN !!! ERROR IN 'parseAndroidManifest' method Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Same issue as above^

MAHDI1251 commented 3 years ago

when i wanto install i have problem root@kali:~/Desktop/kwetza# python kwetza.py install File "/root/Desktop/kwetza/kwetza.py", line 17 print "BYTING TCP COMMS" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("BYTING TCP COMMS")? root@kali:~/Desktop/kwetza#