Skip to content

Commit 631dfc0

Browse files
David MaloneyDavid Maloney
authored andcommitted
increase timeout on ntdsutil
default timeout is 15 seconds. we'll give it 90 seconds for now. This may still be too short for really really large domains, but too long of a timeout can create other issues MSP-12358
1 parent a3d91df commit 631dfc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/credentials/domain_hashdump.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def is_domain_controller?
7979
def ntdsutil_method
8080
tmp_path = "#{expand_path("%TEMP%")}\\#{Rex::Text.rand_text_alpha((rand(8)+6))}"
8181
command_arguments = "\"activate instance ntds\" \"ifm\" \"Create Full #{tmp_path}\" quit quit"
82-
result = cmd_exec("ntdsutil.exe", command_arguments)
82+
result = cmd_exec("ntdsutil.exe", command_arguments,90)
8383
if result.include? "IFM media created successfully"
8484
file_path = "#{tmp_path}\\Active Directory\\ntds.dit"
8585
print_status "NTDS database copied to #{file_path}"

0 commit comments

Comments
 (0)