File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
modules/exploits/linux/ssh Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def initialize(info = {})
47
47
] ,
48
48
'DefaultTarget' => 0 ,
49
49
'DefaultOptions' => {
50
- 'SSL' => true
50
+ 'SSL' => true
51
51
}
52
52
) )
53
53
@@ -119,12 +119,15 @@ def upload_authorized_keys
119
119
120
120
def ssh_login
121
121
factory = ssh_socket_factory
122
+
122
123
ssh_opts = {
123
- port : datastore [ 'SSH_PORT' ] ,
124
- auth_methods : %w{ publickey password } ,
125
- key_data : [ private_key ] ,
126
- proxy : factory ,
127
- non_interactive : true
124
+ port : datastore [ 'SSH_PORT' ] ,
125
+ auth_methods : %w{ publickey password } ,
126
+ key_data : [ private_key ] ,
127
+ non_interactive : true ,
128
+ config : false ,
129
+ use_agent : false ,
130
+ proxy : factory
128
131
}
129
132
130
133
ssh_opts . merge! ( verbose : :debug ) if datastore [ 'SSH_DEBUG' ]
You can’t perform that action at this time.
0 commit comments