Skip to content

Commit

Permalink
fix dpapiSystem default value
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed May 21, 2024
1 parent c4867d0 commit c7a2b64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dploot/triage/masterkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class MasterkeysTriage:
system_masterkeys_generic_path = 'Windows\\System32\\Microsoft\\Protect'
share = 'C$'

def __init__(self, target: Target, conn: DPLootSMBConnection, pvkbytes: bytes = None, passwords: Dict[str,str] = None, nthashes: Dict[str,str] = None, dpapiSystem: Dict[str,str] = {}) -> None:
def __init__(self, target: Target, conn: DPLootSMBConnection, pvkbytes: bytes = None, passwords: Dict[str,str] = None, nthashes: Dict[str,str] = None, dpapiSystem: Dict[str,str] = None) -> None:
self.target = target
self.conn = conn
self.pvkbytes = pvkbytes
Expand All @@ -51,6 +51,8 @@ def __init__(self, target: Target, conn: DPLootSMBConnection, pvkbytes: bytes =
self._users = None
self.looted_files = dict()
self.dpapiSystem = dpapiSystem
if self.dpapiSystem is None:
self.dpapiSystem = {}
# should be {"MachineKey":"key","Userkey":"key"}

def triage_system_masterkeys(self) -> List[Masterkey]:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dploot"
version = "2.7.1"
version = "2.7.2"
description = "DPAPI looting remotely in Python"
readme = "README.md"
homepage = "https://github.com/zblurx/dploot"
Expand Down

0 comments on commit c7a2b64

Please sign in to comment.