lib/ronin/sessions/telnet.rb in ronin-0.2.2 vs lib/ronin/sessions/telnet.rb in ronin-0.2.3

- old
+ new

@@ -24,31 +24,16 @@ require 'ronin/sessions/session' require 'ronin/network/telnet' module Ronin module Sessions - module TELNET + module Telnet include Session - setup_session do - parameter :host, :description => 'Telnet host' - parameter :port, - :default => lambda { - Ronin::Network::Telnet.default_port - }, - :description => 'Telnet port' - - parameter :telnet_user, :description => 'Telnet user' - parameter :telnet_password, :description => 'Telnet password' - - parameter :telnet_proxy, :description => 'Telnet proxy' - parameter :telnet_ssl, :description => 'Telnet SSL options' - end - protected def telnet_connect(options={},&block) - require_params :host + require_variable :host options[:port] ||= @port options[:user] ||= @telnet_user options[:password] ||= @telnet_password