Bump the timeout for hashdump, handle large DCs better, thanks Chris!

git-svn-id: file:///home/svn/framework3/trunk@9385 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-06-01 16:45:34 +00:00
parent 5b6b13e7e8
commit 87379e798a
1 changed files with 19 additions and 18 deletions

View File

@ -82,8 +82,8 @@ class Priv < Extension
# Returns an array of SAM hashes from the remote machine.
#
def sam_hashes
response = client.send_request(
Packet.create_request('priv_passwd_get_sam_hashes'))
# This can take a long long time for large domain controls, bump the timeout to one hour
response = client.send_request(Packet.create_request('priv_passwd_get_sam_hashes'), 3600)
response.get_tlv_value(TLV_TYPE_SAM_HASHES).split(/\n/).map { |hash|
SamUser.new(hash)
@ -102,3 +102,4 @@ protected
end
end; end; end; end; end