dploot 2.2.3__tar.gz → 2.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {dploot-2.2.3 → dploot-2.2.5}/PKG-INFO +2 -2
  2. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/masterkeys.py +13 -12
  3. {dploot-2.2.3 → dploot-2.2.5}/pyproject.toml +2 -2
  4. {dploot-2.2.3 → dploot-2.2.5}/LICENSE +0 -0
  5. {dploot-2.2.3 → dploot-2.2.5}/README.md +0 -0
  6. {dploot-2.2.3 → dploot-2.2.5}/dploot/__init__.py +0 -0
  7. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/__init__.py +0 -0
  8. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/backupkey.py +0 -0
  9. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/browser.py +0 -0
  10. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/certificates.py +0 -0
  11. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/credentials.py +0 -0
  12. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/machinecertificates.py +0 -0
  13. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/machinecredentials.py +0 -0
  14. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/machinemasterkeys.py +0 -0
  15. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/machinetriage.py +0 -0
  16. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/machinevaults.py +0 -0
  17. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/masterkeys.py +0 -0
  18. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/rdg.py +0 -0
  19. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/triage.py +0 -0
  20. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/vaults.py +0 -0
  21. {dploot-2.2.3 → dploot-2.2.5}/dploot/action/wifi.py +0 -0
  22. {dploot-2.2.3 → dploot-2.2.5}/dploot/entry.py +0 -0
  23. {dploot-2.2.3 → dploot-2.2.5}/dploot/lib/__init__.py +0 -0
  24. {dploot-2.2.3 → dploot-2.2.5}/dploot/lib/crypto.py +0 -0
  25. {dploot-2.2.3 → dploot-2.2.5}/dploot/lib/dpapi.py +0 -0
  26. {dploot-2.2.3 → dploot-2.2.5}/dploot/lib/smb.py +0 -0
  27. {dploot-2.2.3 → dploot-2.2.5}/dploot/lib/target.py +0 -0
  28. {dploot-2.2.3 → dploot-2.2.5}/dploot/lib/utils.py +0 -0
  29. {dploot-2.2.3 → dploot-2.2.5}/dploot/lib/wmi.py +0 -0
  30. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/__init__.py +0 -0
  31. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/backupkey.py +0 -0
  32. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/browser.py +0 -0
  33. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/certificates.py +0 -0
  34. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/credentials.py +0 -0
  35. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/rdg.py +0 -0
  36. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/vaults.py +0 -0
  37. {dploot-2.2.3 → dploot-2.2.5}/dploot/triage/wifi.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dploot
3
- Version: 2.2.3
3
+ Version: 2.2.5
4
4
  Summary: DPAPI looting remotely in Python
5
5
  Home-page: https://github.com/zblurx/dploot
6
6
  License: MIT
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Topic :: Security
20
20
  Requires-Dist: cryptography (>=40.0.1,<41.0.0)
21
21
  Requires-Dist: impacket (>=0.10.0)
22
- Requires-Dist: lxml (==4.9.2)
22
+ Requires-Dist: lxml (==4.9.3)
23
23
  Requires-Dist: pyasn1 (>=0.4.8,<0.5.0)
24
24
  Project-URL: Repository, https://github.com/zblurx/dploot
25
25
  Description-Content-Type: text/markdown
@@ -41,7 +41,7 @@ class MasterkeysTriage:
41
41
  system_masterkeys_generic_path = 'Windows\\System32\\Microsoft\\Protect'
42
42
  share = 'C$'
43
43
 
44
- def __init__(self, target: Target, conn: DPLootSMBConnection, pvkbytes: bytes = None, passwords: Dict[str,str] = None, nthashes: Dict[str,str] = None) -> None:
44
+ 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:
45
45
  self.target = target
46
46
  self.conn = conn
47
47
  self.pvkbytes = pvkbytes
@@ -50,20 +50,21 @@ class MasterkeysTriage:
50
50
 
51
51
  self._users = None
52
52
  self.looted_files = dict()
53
- self.dpapiSystem = dict()
53
+ self.dpapiSystem = dpapiSystem
54
+ # should be {"MachineKey":"key","Userkey":"key"}
54
55
 
55
56
  def triage_system_masterkeys(self) -> List[Masterkey]:
56
57
  masterkeys = list()
57
58
  logging.getLogger("impacket").disabled = True
58
- self.conn.enable_remoteops()
59
- if self.conn.remote_ops and self.conn.bootkey:
60
-
61
- SECURITYFileName = self.conn.remote_ops.saveSECURITY()
62
- LSA = LSASecrets(SECURITYFileName, self.conn.bootkey, self.conn.remote_ops, isRemote=True,
63
- perSecretCallback=self.getDPAPI_SYSTEM)
64
- LSA.dumpSecrets()
65
- LSA.finish()
66
-
59
+ if len(self.dpapiSystem) == 0:
60
+ self.conn.enable_remoteops()
61
+ if self.conn.remote_ops and self.conn.bootkey:
62
+
63
+ SECURITYFileName = self.conn.remote_ops.saveSECURITY()
64
+ LSA = LSASecrets(SECURITYFileName, self.conn.bootkey, self.conn.remote_ops, isRemote=True,
65
+ perSecretCallback=self.getDPAPI_SYSTEM)
66
+ LSA.dumpSecrets()
67
+ LSA.finish()
67
68
  system_protect_dir = self.conn.remote_list_dir(self.share, path=self.system_masterkeys_generic_path)
68
69
  for d in system_protect_dir:
69
70
  if d not in self.false_positive and d.is_directory()>0 and d.get_longname()[:2] == 'S-':# could be a better way to deal with sid
@@ -150,7 +151,7 @@ class MasterkeysTriage:
150
151
  masterkeys.append(Masterkey(guid=guid, sha1=hexlify(SHA1.new(key).digest()).decode('latin-1'), user=user))
151
152
  return masterkeys
152
153
 
153
- def getDPAPI_SYSTEM(self,secretType, secret) -> None:
154
+ def getDPAPI_SYSTEM(self,_, secret) -> None:
154
155
  if secret.startswith("dpapi_machinekey:"):
155
156
  machineKey, userKey = secret.split('\n')
156
157
  machineKey = machineKey.split(':')[1]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dploot"
3
- version = "2.2.3"
3
+ version = "2.2.5"
4
4
  description = "DPAPI looting remotely in Python"
5
5
  readme = "README.md"
6
6
  homepage = "https://github.com/zblurx/dploot"
@@ -29,7 +29,7 @@ python = "^3.7"
29
29
  impacket = ">=0.10.0"
30
30
  cryptography = "^40.0.1"
31
31
  pyasn1 = "^0.4.8"
32
- lxml = "4.9.2"
32
+ lxml = "4.9.3"
33
33
 
34
34
  [build-system]
35
35
  requires = ["poetry-core>=1.0.0"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes