Module: Msf::Exploit::Remote::SSH

Includes:
Options
Included in:
Metasploit::Framework::LoginScanner::SSH
Defined in:
lib/msf/core/exploit/remote/ssh/options.rb,
lib/msf/core/exploit/remote/ssh.rb,
lib/msf/core/exploit/remote/ssh/auth_methods/malformed_packet.rb,
lib/msf/core/exploit/remote/ssh/auth_methods/fortinet_backdoor.rb,
lib/msf/core/exploit/remote/ssh/auth_methods/libssh_auth_bypass.rb

Overview

Include this mixin if you want just the SSH datastore options (e.g., when using Metasploit::Framework::LoginScanner::SSH)

Defined Under Namespace

Modules: AuthMethods, Options

Instance Method Summary collapse

Methods included from Options

#initialize, #peer, #rhost, #rport

Instance Method Details

#ssh_client_defaultsObject



29
30
31
32
33
34
35
36
37
38
# File 'lib/msf/core/exploit/remote/ssh.rb', line 29

def ssh_client_defaults
  {
    non_interactive: true,
    config: false,
    use_agent: false,
    verify_host_key: :never,
    proxy: ssh_socket_factory,
    append_all_supported_algorithms: true
  }
end

#ssh_socket_factoryObject



21
22
23
24
25
26
27
# File 'lib/msf/core/exploit/remote/ssh.rb', line 21

def ssh_socket_factory
  unless defined? datastore
    return Rex::Socket::SSHFactory.new(framework, self, proxies)
  end

  Rex::Socket::SSHFactory.new(framework, self, datastore['Proxies'])
end