Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rex/proto/mms/model/smtp.rb
Views: 11766
# -*- coding: binary -*-12module Rex3module Proto4module Mms5module Model6class Smtp78# @!attribute address9# @return [String] SMTP address10attr_accessor :address1112# @!attribute port13# @return [Fixnum] SMTP port14attr_accessor :port1516# @!attribute username17# @return [String] SMTP account/username18attr_accessor :username1920# @!attribute password21# @return [String] SMTP password22attr_accessor :password2324# @!attribute login_type25# @return [Symbol] SMTP login type (:login, :plain, and :cram_md5)26attr_accessor :login_type2728# @!attribute from29# @return [String] Sender30attr_accessor :from3132# @!attribute helo_domain33# @return [String] The domain to use for the HELO SMTP message34attr_accessor :helo_domain353637# Initializes the SMTP object.38#39# @param [Hash] opts40# @option opts [String] :address41# @option opts [Fixnum] :port42# @option opts [String] :username43# @option opts [String] :password44# @option opts [String] :helo_domain45# @option opts [Symbol] :login_type46# @option opts [String] :from47#48# @return [Rex::Proto::Mms::Model::Smtp]49def initialize(opts={})50self.address = opts[:address]51self.port = opts[:port] || 2552self.username = opts[:username]53self.password = opts[:password]54self.helo_domain = opts[:helo_domain] || 'localhost'55self.login_type = opts[:login_type] || :login56self.from = opts[:from] || ''57end5859end60end61end62end63end646566