mirror of
https://github.com/login-securite/DonPAPI
synced 2025-01-15 11:22:02 +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
|
||||
self.logger.display("Dumping 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")
|
||||
else:
|
||||
self.logger.fail(f"No account found in SAM (maybe blocked by EDR)")
|
||||
|
Loading…
Reference in New Issue
Block a user