Fix datastore options
parent
ab8f2c7d3f
commit
1963318e70
|
@ -36,12 +36,20 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
deregister_options('RPORT')
|
deregister_options('RPORT')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def rport
|
||||||
|
@rport || datastore['RPORT']
|
||||||
|
end
|
||||||
|
|
||||||
|
def smbdirect
|
||||||
|
@smbdirect || datastore['SMBDirect']
|
||||||
|
end
|
||||||
|
|
||||||
# Fingerprint a single host
|
# Fingerprint a single host
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
[[445, true], [139, false]].each do |info|
|
[[445, true], [139, false]].each do |info|
|
||||||
|
|
||||||
datastore['RPORT'] = info[0]
|
@rport = info[0]
|
||||||
datastore['SMBDirect'] = info[1]
|
@smbdirect = info[1]
|
||||||
self.simple = nil
|
self.simple = nil
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue