File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
modules/auxiliary/scanner/ssh Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
class MetasploitModule < Msf ::Auxiliary
7
7
8
+ include Msf ::Exploit ::Remote ::SSH
8
9
include Msf ::Exploit ::Remote ::Fortinet
9
10
include Msf ::Auxiliary ::Scanner
10
11
include Msf ::Auxiliary ::Report
11
- include Msf ::Exploit ::Remote ::SSH
12
12
13
13
def initialize ( info = { } )
14
14
super ( update_info ( info ,
@@ -43,11 +43,14 @@ def initialize(info = {})
43
43
44
44
def run_host ( ip )
45
45
factory = ssh_socket_factory
46
+
46
47
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
51
54
}
52
55
53
56
ssh_opts . merge! ( verbose : :debug ) if datastore [ 'SSH_DEBUG' ]
You can’t perform that action at this time.
0 commit comments