Module: Ronin::Network::Telnet
- Defined in:
- lib/ronin/network/telnet.rb
Overview
Global settings for accessing Telnet.
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_port ⇒ Integer
The default Ronin Telnet port.
-
.default_port=(port) ⇒ Object
Sets the default Ronin Telnet port.
-
.default_prompt ⇒ Regexp
The default Ronin Telnet prompt pattern.
-
.default_prompt=(prompt) ⇒ Object
Sets the default Ronin Telnet prompt pattern.
-
.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_port ⇒ Integer
Returns The default Ronin Telnet port.
43 44 45 |
# File 'lib/ronin/network/telnet.rb', line 43 def Telnet.default_port @default_port ||= DEFAULT_PORT end |
.default_port=(port) ⇒ Object
Sets the default Ronin Telnet port.
55 56 57 |
# File 'lib/ronin/network/telnet.rb', line 55 def Telnet.default_port=(port) @default_port = port end |
.default_prompt ⇒ Regexp
Returns The default Ronin Telnet prompt pattern.
65 66 67 |
# File 'lib/ronin/network/telnet.rb', line 65 def Telnet.default_prompt @default_prompt ||= DEFAULT_PROMPT end |
.default_prompt=(prompt) ⇒ Object
Sets the default Ronin Telnet prompt pattern.
77 78 79 |
# File 'lib/ronin/network/telnet.rb', line 77 def Telnet.default_prompt=(prompt) @default_prompt = prompt end |
.default_timeout ⇒ Integer
Returns The default Ronin Telnet timeout.
87 88 89 |
# File 'lib/ronin/network/telnet.rb', line 87 def Telnet.default_timeout @default_timeout ||= DEFAULT_TIMEOUT end |
.default_timeout=(timeout) ⇒ Object
Sets the default Ronin Telnet timeout.
99 100 101 |
# File 'lib/ronin/network/telnet.rb', line 99 def Telnet.default_timeout=(timeout) @default_timeout = timeout end |