Fix datastore options

bug/bundler_fix
sinn3r 2014-08-07 17:58:25 -05:00
parent ab8f2c7d3f
commit 1963318e70
1 changed files with 10 additions and 2 deletions

View File

@ -36,12 +36,20 @@ class Metasploit3 < Msf::Auxiliary
deregister_options('RPORT')
end
def rport
@rport || datastore['RPORT']
end
def smbdirect
@smbdirect || datastore['SMBDirect']
end
# Fingerprint a single host
def run_host(ip)
[[445, true], [139, false]].each do |info|
datastore['RPORT'] = info[0]
datastore['SMBDirect'] = info[1]
@rport = info[0]
@smbdirect = info[1]
self.simple = nil
begin