Path: blob/master/lib/metasploit/framework/login_scanner/rex_socket.rb
19778 views
require 'metasploit/framework/login_scanner'12module Metasploit3module Framework4module LoginScanner56# This module provides the common mixin behaviour for7# LoginScanner objects that rely on Rex Sockets for their8# underlying communication.9module RexSocket10extend ActiveSupport::Concern1112included do1314# @!attribute ssl15# @return [Boolean] Whether the socket should use ssl16attr_accessor :ssl17# @!attribute ssl_version18# @return [String] The version of SSL to implement19attr_accessor :ssl_version20# @!attribute ssl_verify_mode21# @return [String] the SSL certification verification mechanism22attr_accessor :ssl_verify_mode23# @!attribute ssl_cipher24# @return [String] The SSL cipher to use for the context25attr_accessor :ssl_cipher2627private2829def rhost30host31end3233def rport34port35end3637def chost38local_host || '0.0.0.0'39end4041def cport42local_port || 043end44end45end46end47end48end495051