Skip to main content

A small utility to get an SQLite database from an NTDS.DIT file.

Project description

NTDS.Sqlite

This software can be used either directly as a CLI utility or as a library to get an SQLite database from an NTDS.DIT one. Encrypted bits can be decrypted if the associated system hive is provided altogether.

Installation

python -m pip install ntdsdotsqlite

Usage

ntdsdotsqlite NTDS.DIT --system SYSTEM -o NTDS.sqlite

usage: NTDS.sqlite [-h] [--system SYSTEM] -o OUTFILE NTDS

This tool helps dumping NTDS.DIT file to an SQLite database

positional arguments:
  NTDS                  The NTDS.DIT file

optional arguments:
  -h, --help            show this help message and exit
  --system SYSTEM       The SYSTEM hive to decrypt hashes. If not provided, hashes will be encrypted inside the sqlite database.
  -o OUTFILE, --outfile OUTFILE
                        The sqlite database. Example : NTDS.sqlite

SQL model

The SQL model is described in the sql_model.md file in this repository. Basicaly, not all objects are extracted (at all), but the following are retrieved as of today : domain object, user accounts, machine accounts, groups, organizational units and containers. I thought these would be the most useful. If you need more object classes to be extracted or additional attributes, feel free to open an issue or a pull request !

Performances

Performances can be a bit low for huge NTDS files. The whole NTDS is not stored in memory to prevent memory exhaustion when working on huge files (NTDS databases can grow to several gigabytes).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ntdsdotsqlite-1.1.7.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ntdsdotsqlite-1.1.7-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file ntdsdotsqlite-1.1.7.tar.gz.

File metadata

  • Download URL: ntdsdotsqlite-1.1.7.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.6 Windows/10

File hashes

Hashes for ntdsdotsqlite-1.1.7.tar.gz
Algorithm Hash digest
SHA256 3bf37e97013274ba369d7be2ad08930d9414bfa448d86cf5a2e024995649a618
MD5 fc9f0de9e500ad5c11700029fff53ad6
BLAKE2b-256 eb965ac46a6d984c0598b7ace5047cbf276f0436c83773cd65ec609055801d5a

See more details on using hashes here.

File details

Details for the file ntdsdotsqlite-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: ntdsdotsqlite-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.6 Windows/10

File hashes

Hashes for ntdsdotsqlite-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 80243d896acb3daaf95bda60e60b0e32fb2169e52887537224ab7bda5a4936a6
MD5 019657e0ad215a477624943e716fed81
BLAKE2b-256 6bdbf0aa3b21ca99d8bb4937968878d10cf7b3073bc65970cf38da7843d55913

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page