From 436e2abfff165112ab1e2b0045cdc1d67bd6338b Mon Sep 17 00:00:00 2001 From: sinn3r Date: Thu, 7 Aug 2014 17:59:40 -0500 Subject: [PATCH] Fix datastore options --- .../auxiliary/scanner/smb/smb_enumusers_domain.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/smb/smb_enumusers_domain.rb b/modules/auxiliary/scanner/smb/smb_enumusers_domain.rb index 7e3f889f3b..4b04c8568e 100644 --- a/modules/auxiliary/scanner/smb/smb_enumusers_domain.rb +++ b/modules/auxiliary/scanner/smb/smb_enumusers_domain.rb @@ -88,12 +88,20 @@ class Metasploit3 < Msf::Auxiliary accounts end + def rport + @rport || datastore['RPORT'] + end + + def smbdirect + @smbdirect || datastore['SMBDirect'] + end + def run_host(ip) [[139, false], [445, true]].each do |info| - datastore['RPORT'] = info[0] - datastore['SMBDirect'] = info[1] + @rport = info[0] + @smbdirect = info[1] begin connect()