
Active Directory NTDS डेटाबेस पार्सर जो रिकॉर्ड्स को JSON में डंप करता है, ऑब्जेक्ट फ़िल्टरिंग का समर्थन करता है, और SYSTEM hive या bootkey का उपयोग करके एन्क्रिप्टेड कॉलम्स को डिक्रिप्ट करता है।
Ntdissector एक NTDS डेटाबेस के रिकॉर्ड पार्स करने के लिए एक उपकरण है। रिकॉर्ड JSON प्रारूप में डंप किए जाते हैं और इन्हें ऑब्जेक्ट क्लास द्वारा फ़िल्टर किया जा सकता है।
SYSTEM हाइव या सही bootkey को हेक्स प्रारूप में प्रदान करने पर, सही कॉलम से एन्क्रिप्शन परतें हटा दी जाएंगी।
अधिक जानकारी निम्नलिखित ब्लॉग पोस्ट में :
$ python3 -m pip install [--user] ./ntdissector
$ ntdissector -h
usage: ntdissector [-h] [-system SYSTEM] -ntds NTDS [-bootKey BOOTKEY] [-outputdir OUTPUTDIR] [-cachedir CACHEDIR] [-f FILTER] [-filters] [-limit LIMIT] [-cn] [-debug] [-verbose]
[-silent] [-ts] [-w WORKERS] [-nocache] [-dryRun]
NTDS Dissector
optional arguments:
-h, --help show this help message and exit
-V, --version Display version info
Files:
-system SYSTEM SYSTEM hive to parse
-ntds NTDS NTDS file to parse
-bootKey BOOTKEY Force bootkey (skips the SYSTEM hive parsing)
-outputdir OUTPUTDIR Base output directory
(Default: /home/mehdie/.ntdissector/out/)
-cachedir CACHEDIR Base cache directory
(Default: /home/mehdie/.ntdissector/.cache/)
Filter options:
-f FILTER, --filter FILTER
Filter object classes, 'all' to dump everything.
Use -filters to get a list of available object classes
Default: [user, secret, group, domainDNS].
-filters Print all classes available for filtering
-limit LIMIT Dump a specific number of objects then stop
Display options:
-cn Toggle CN naming output (Default: LDAP naming)
-debug Turn DEBUG output ON
-verbose Turn INFO output ON
-silent Silent
-ts Adds a timestamp to every logging output
-keepDel Keeps deleted records
Miscellaneous:
-w WORKERS, -workers WORKERS
Number of workers (default: 5)
-nocache Disable cache
-dryRun Launch in dry run mode, ignores cache files
Examples:
> Dump users, groups and domain backup keys
$ ntdissector -ntds NTDS.dit -system SYSTEM -outputdir /tmp/ntdissector/ -ts -f user,group,secret
> Dump all records from the database
$ ntdissector -ntds NTDS.dit -system SYSTEM -outputdir /tmp/ntdissector/ -ts -f all
> Dump user objects and include deleted records
$ ntdissector -ntds NTDS.dit -system SYSTEM -outputdir /tmp/ntdissector/ -ts -f user -keepDel
> List object classes available to filter records
$ ntdissector -ntds NTDS.dit -filters
पहली बार चलाने पर, उपकरण स्वचालित रूप से ऑब्जेक्ट क्लास और विशेषताओं का एक स्कीमा तैयार करता है। दोनों स्कीमा अगली बार चलाने पर इस चरण को छोड़ने के लिए स्थानीय रूप से कैश किए जाते हैं।
डिफ़ॉल्ट निर्देशिकाएँ :
~/.ntdissector/.cache/[hash]~/.ntdissector/out/[hash]/[object-class-name].json