Fix datastore options
parent
1963318e70
commit
436e2abfff
|
@ -88,12 +88,20 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
accounts
|
accounts
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def rport
|
||||||
|
@rport || datastore['RPORT']
|
||||||
|
end
|
||||||
|
|
||||||
|
def smbdirect
|
||||||
|
@smbdirect || datastore['SMBDirect']
|
||||||
|
end
|
||||||
|
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
|
|
||||||
[[139, false], [445, true]].each do |info|
|
[[139, false], [445, true]].each do |info|
|
||||||
|
|
||||||
datastore['RPORT'] = info[0]
|
@rport = info[0]
|
||||||
datastore['SMBDirect'] = info[1]
|
@smbdirect = info[1]
|
||||||
|
|
||||||
begin
|
begin
|
||||||
connect()
|
connect()
|
||||||
|
|
Loading…
Reference in New Issue