Skip to content

Commit fda4eb4

Browse files
committed
Fix rapid7#6612, syntax fixes for fortinet_backdoor
2 parents cf0176e + 9c61490 commit fda4eb4

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

modules/auxiliary/scanner/ssh/fortinet_backdoor.rb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ def run_host(ip)
5050

5151
begin
5252
ssh = Timeout.timeout(datastore['SSH_TIMEOUT']) do
53-
Net::SSH.start(
54-
ip,
55-
'Fortimanager_Access',
56-
ssh_opts
57-
)
53+
Net::SSH.start(ip, 'Fortimanager_Access', ssh_opts)
5854
end
5955
rescue Net::SSH::Exception => e
6056
vprint_error("#{ip}:#{rport} - #{e.class}: #{e.message}")
@@ -64,10 +60,10 @@ def run_host(ip)
6460
if ssh
6561
print_good("#{ip}:#{rport} - Logged in as Fortimanager_Access")
6662
report_vuln(
67-
:host => ip,
68-
:name => self.name,
69-
:refs => self.references,
70-
:info => ssh.transport.server_version.version
63+
host: ip,
64+
name: self.name,
65+
refs: self.references,
66+
info: ssh.transport.server_version.version
7167
)
7268
end
7369
end

0 commit comments

Comments
 (0)