Fix datastore options
parent
ab8f2c7d3f
commit
1963318e70
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue