From c7a2b640c5cbfa33bea4c75f1efdf4ccea2bdd47 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 21 May 2024 17:41:14 +0200 Subject: [PATCH] fix dpapiSystem default value --- dploot/triage/masterkeys.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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"