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

Includes:
Options
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


26
27
28
29
30
31
32
33
34
# File 'lib/msf/core/exploit/remote/ssh.rb', line 26

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

#ssh_socket_factoryObject


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

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