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

Class Method Details

.default_timeoutInteger

Returns The default Ronin Telnet timeout.

Returns:

  • (Integer)

    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.

Parameters:

  • timeout (Integer)

    The new 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

.proxyTelnet, ...

Returns The Ronin Telnet proxy.

Returns:

  • (Telnet, IO, nil)

    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.

Parameters:

  • new_proxy (Telnet, IO, nil)

    The new Ronin Telnet proxy.



84
85
86
# File 'lib/ronin/support/network/telnet.rb', line 84

def self.proxy=(new_proxy)
  @proxy = new_proxy
end