Files
metasploit-gs/lib/msf/core/exploit/ssh.rb
T

19 lines
489 B
Ruby
Raw Normal View History

module Msf::Exploit::Remote::SSH
# 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/auth_methods'
def ssh_socket_factory
Rex::Socket::SSHFactory.new(framework, self, datastore['Proxies'])
2016-06-28 15:23:12 -05:00
end
# Finally patch in our custom auth methods:
# malformed-packet
# fortinet-backdoor
include Msf::Exploit::Remote::SSH::AuthMethods
2016-07-19 16:37:19 -05:00
end