From 11e8710a60a981799b4601bc006fb1dcfd1a10bd Mon Sep 17 00:00:00 2001 From: HD Moore Date: Tue, 9 Feb 2010 16:34:49 +0000 Subject: [PATCH] Catch OpenDomain failures git-svn-id: file:///home/svn/framework3/trunk@8428 4d416f70-5f16-0410-b530-b9f4589650da --- modules/auxiliary/scanner/smb/smb_enumusers.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/auxiliary/scanner/smb/smb_enumusers.rb b/modules/auxiliary/scanner/smb/smb_enumusers.rb index 2102765549..8feb1fb4fe 100644 --- a/modules/auxiliary/scanner/smb/smb_enumusers.rb +++ b/modules/auxiliary/scanner/smb/smb_enumusers.rb @@ -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')