Files
metasploit-gs/lib/msf/core/exploit/ssh.rb
T
2019-06-02 20:01:04 -05:00

28 lines
761 B
Ruby

# -*- coding: binary -*-
# Require most things so that modules using this will "just work"
require 'net/ssh'
require 'net/ssh/command_stream'
require 'rex/socket/ssh_factory'
require 'msf/core/exploit/ssh/options'
require 'msf/core/exploit/ssh/auth_methods'
module Msf::Exploit::Remote::SSH
# Register SSH datastore options:
# SSH_IDENT (TODO: Refactor to SSHIdent)
# SSH_TIMEOUT (TODO: Refactor to SSHTimeout)
# SSH_DEBUG (TODO: Refactor to SSHDebug)
include Msf::Exploit::Remote::SSH::Options
# Patch in our custom auth methods:
# malformed-packet
# fortinet-backdoor
include Msf::Exploit::Remote::SSH::AuthMethods
def ssh_socket_factory
Rex::Socket::SSHFactory.new(framework, self, datastore['Proxies'])
end
end