diff --git a/dploot/triage/masterkeys.py b/dploot/triage/masterkeys.py index b1db132..6e7214c 100755 --- a/dploot/triage/masterkeys.py +++ b/dploot/triage/masterkeys.py @@ -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 @@ -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]: diff --git a/pyproject.toml b/pyproject.toml index 6843869..9cd22a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"