Module: Ronin::Support::Network::Telnet Deprecated
- Defined in:
- lib/ronin/support/network/telnet.rb,
lib/ronin/support/network/telnet/mixin.rb
Overview
Deprecated.
Will be removed in 1.0.0.
Provides helper methods for communicating with Telnet services.
Defined Under Namespace
Modules: Mixin
Constant Summary collapse
- DEFAULT_PORT =
Default telnet port
23
- DEFAULT_PROMPT =
The default prompt regular expression
/[$%#>] \z/n
- DEFAULT_TIMEOUT =
The default timeout
10
Class Method Summary collapse
-
.default_timeout ⇒ Integer
The default Ronin Telnet timeout.
-
.default_timeout=(timeout) ⇒ Object
Sets the default Ronin Telnet timeout.
-
.proxy ⇒ Telnet, ...
The Ronin Telnet proxy.
-
.proxy=(new_proxy) ⇒ Object
Sets the Ronin Telnet proxy.
Class Method Details
.default_timeout ⇒ Integer
Returns The default Ronin Telnet timeout.
50 51 52 |
# File 'lib/ronin/support/network/telnet.rb', line 50 def self.default_timeout @default_timeout ||= DEFAULT_TIMEOUT end |
.default_timeout=(timeout) ⇒ Object
Sets the default Ronin Telnet timeout.
62 63 64 |
# File 'lib/ronin/support/network/telnet.rb', line 62 def self.default_timeout=(timeout) @default_timeout = timeout end |
.proxy ⇒ Telnet, ...
Returns The Ronin Telnet proxy.
72 73 74 |
# File 'lib/ronin/support/network/telnet.rb', line 72 def self.proxy @proxy ||= nil end |
.proxy=(new_proxy) ⇒ Object
Sets the Ronin Telnet proxy.
84 85 86 |
# File 'lib/ronin/support/network/telnet.rb', line 84 def self.proxy=(new_proxy) @proxy = new_proxy end |