Catch OpenDomain failures

git-svn-id: file:///home/svn/framework3/trunk@8428 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-02-09 16:34:49 +00:00
parent 48a159006a
commit 11e8710a60
1 changed files with 6 additions and 0 deletions

View File

@ -227,6 +227,12 @@ class Metasploit3 < Msf::Auxiliary
dcerpc.call(7, stub)
resp = dcerpc.last_response ? dcerpc.last_response.stub_data : nil
dhandle = resp[0,20]
derror = resp[20,4].unpack("V")[0]
# Catch access denied replies to OpenDomain
if(derror != 0)
next
end
# Password information
stub = dhandle + [0x01].pack('v')