module Ronin::Support::Network::Telnet

Provides helper methods for communicating with Telnet services.

@deprecated Will be removed in 1.0.0.

Provides helper methods for communicating with Telnet services.

@deprecated Will be removed in 1.0.0.

Constants

DEFAULT_PORT

Default telnet port

DEFAULT_PROMPT

The default prompt regular expression

DEFAULT_TIMEOUT

The default timeout

Public Class Methods

default_timeout() click to toggle source

@return [Integer]

The default Ronin Telnet timeout.

@api public

# File lib/ronin/support/network/telnet.rb, line 50
def self.default_timeout
  @default_timeout ||= DEFAULT_TIMEOUT
end
default_timeout=(timeout) click to toggle source

Sets the default Ronin Telnet timeout.

@param [Integer] timeout

The new default Ronin Telnet timeout.

@api public

# File lib/ronin/support/network/telnet.rb, line 62
def self.default_timeout=(timeout)
  @default_timeout = timeout
end
proxy() click to toggle source

@return [Telnet, IO, nil]

The Ronin Telnet proxy.

@api public

# File lib/ronin/support/network/telnet.rb, line 72
def self.proxy
  @proxy ||= nil
end
proxy=(new_proxy) click to toggle source

Sets the Ronin Telnet proxy.

@param [Telnet, IO, nil] new_proxy

The new Ronin Telnet proxy.

@api public

# File lib/ronin/support/network/telnet.rb, line 84
def self.proxy=(new_proxy)
  @proxy = new_proxy
end