Skip to content

Commit 4ba1ed2

Browse files
committed
Fix formatting in fortinet_backdoor
Also add :config and :use_agent options.
1 parent e306019 commit 4ba1ed2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

modules/auxiliary/scanner/ssh/fortinet_backdoor.rb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
class MetasploitModule < Msf::Auxiliary
77

8+
include Msf::Exploit::Remote::SSH
89
include Msf::Exploit::Remote::Fortinet
910
include Msf::Auxiliary::Scanner
1011
include Msf::Auxiliary::Report
11-
include Msf::Exploit::Remote::SSH
1212

1313
def initialize(info = {})
1414
super(update_info(info,
@@ -43,11 +43,14 @@ def initialize(info = {})
4343

4444
def run_host(ip)
4545
factory = ssh_socket_factory
46+
4647
ssh_opts = {
47-
port: rport,
48-
auth_methods: ['fortinet-backdoor'],
49-
proxy: factory,
50-
:non_interactive => true
48+
port: rport,
49+
auth_methods: ['fortinet-backdoor'],
50+
non_interactive: true,
51+
config: false,
52+
use_agent: false,
53+
proxy: factory
5154
}
5255

5356
ssh_opts.merge!(verbose: :debug) if datastore['SSH_DEBUG']

0 commit comments

Comments
 (0)