kwetza icon indicating copy to clipboard operation
kwetza copied to clipboard

ERROR !!!

Open kali64amd opened this issue 7 years ago • 9 comments

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' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

kali64amd avatar Nov 05 '17 09:11 kali64amd

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,


  • Drew McGuire http://www.dbitsecurity.com M: 781-996-8929

On Nov 5, 2017, at 4:34 AM, kali64amd [email protected] wrote:

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

ghost avatar Nov 06 '17 02:11 ghost

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

This is only example....

kali64amd avatar Nov 06 '17 06:11 kali64amd

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.

DarkG31 avatar Dec 15 '17 13:12 DarkG31

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 avatar Jan 12 '18 20:01 tokenwizard

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.

tokenwizard avatar Jan 12 '18 20:01 tokenwizard

Hi, I got something similar error

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

insidevoid avatar Dec 18 '18 20:12 insidevoid

[] 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

Vikram1807 avatar May 11 '19 21:05 Vikram1807

] 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^

Gregbeef avatar May 11 '20 19:05 Gregbeef

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#

MAHDI1251 avatar Mar 29 '21 17:03 MAHDI1251