mirror of
https://github.com/login-securite/DonPAPI
synced 2025-02-05 22:21:34 +00:00
Merge pull request #97 from Dfte/fixsamdumperror
Fix SAM dump error when remote registry is disabled OR EDR blocks it
This commit is contained in:
commit
9e55820bc2
@ -268,7 +268,7 @@ class DonPAPICore:
|
|||||||
# Dump SAM
|
# Dump SAM
|
||||||
self.logger.display("Dumping SAM")
|
self.logger.display("Dumping SAM")
|
||||||
self.dump_sam()
|
self.dump_sam()
|
||||||
if self.sam_dump.items_found:
|
if hasattr(self.sam_dump, "items_found") and self.sam_dump.items_found is not None:
|
||||||
self.logger.secret(f"Got {len(self.sam_dump.items_found)} accounts", "SAM")
|
self.logger.secret(f"Got {len(self.sam_dump.items_found)} accounts", "SAM")
|
||||||
else:
|
else:
|
||||||
self.logger.fail(f"No account found in SAM (maybe blocked by EDR)")
|
self.logger.fail(f"No account found in SAM (maybe blocked by EDR)")
|
||||||
|
Loading…
Reference in New Issue
Block a user