GithubHelp home page GithubHelp logo

cuhsat / dumpntds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bsi-group/dumpntds

0.0 0.0 0.0 304 KB

Speeds up the extraction of password hashes from ntds.dit files. For use with the ntdsxtract project or the dshash script

Python 23.43% C# 76.57%

dumpntds's Introduction

dumpntds

Background

The normal workflow for dumping password hashes from ntds.dit files is to use the esedbexport application from the libesedb project. The files generated by esedbextract are then fed into the ntdsxtract project. ntdsxtract uses the files to parse out various different items of information, in this case we would want password hashes that could be fed into john the ripper.

On large domains, the ntds.dit file can be extremely large (10 GB+), from which extracting all of the columns to a CSV file can take a long time, considering the datatable table contains over 1000 columns.

The aim of dumpntds is to extract the minimal amount of data required (45 columns) to perform the task in hand, thus speeding up the process.

dumpntds uses the ManagedEsent library to access the data stored in the ntds.dit file. The ManagedEsent library wraps the underlying Windows API calls and therefore needs to be run using .Net, rather than Mono.

Usage

Extract the ntds.dit file from the host and run using the following:

dumpntds -n path\to\ntds.dit\file

Once the process has been completed it will have generated two output files in the application directory:

  • datatable.csv
  • linktable.csv

dsusers

The extracted files can then be used with the dsusers.py script from the ntdsxtract project:

python ./dsusers.py datatable.csv linktable.csv . --passwordhashes --syshive SYSTEM --pwdformat john --lmoutfile lm.txt --ntoutfile nt.txt

dshashes.py

I have also included an updated version of the dshashes python script, which was broken due to changes in the underlying ntds library. The dshashes script can be used as follows:

python ./dshashes.py datatable.csv linktable.csv . --passwordhashes SYSTEM

dumpntds's People

Contributors

woanware avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.