lib/ronin/sessions/telnet.rb in ronin-0.0.9 vs lib/ronin/sessions/telnet.rb in ronin-0.1.0

- old
+ new

@@ -27,26 +27,18 @@ module Ronin module Sessions module TELNET include Session - TELNET_SESSION = proc do + setup_session do parameter :telnet_host, :description => 'Telnet host' parameter :telnet_port, :value => 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 - - def self.included(base) - Session.setup_class(base,&TELNET_SESSION) - end - - def self.extended(obj) - Session.setup_object(obj,&TELNET_SESSION) end protected def telnet_connect(options={},&block)