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