Fix datastore options

bug/bundler_fix
sinn3r 2014-08-07 17:59:40 -05:00
parent 1963318e70
commit 436e2abfff
1 changed files with 10 additions and 2 deletions

View File

@ -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()