Module: Ronin::Network

Defined in:
lib/ronin/network/network.rb,
lib/ronin/network/ssl.rb,
lib/ronin/network/imap.rb,
lib/ronin/network/pop3.rb,
lib/ronin/network/telnet.rb,
lib/ronin/network/http/http.rb,
lib/ronin/network/smtp/smtp.rb,
lib/ronin/network/http/proxy.rb,
lib/ronin/network/mixins/tcp.rb,
lib/ronin/network/mixins/udp.rb,
lib/ronin/network/smtp/email.rb,
lib/ronin/network/mixins/http.rb,
lib/ronin/network/mixins/imap.rb,
lib/ronin/network/mixins/pop3.rb,
lib/ronin/network/mixins/smtp.rb,
lib/ronin/network/mixins/esmtp.rb,
lib/ronin/network/mixins/telnet.rb,
lib/ronin/network/http/exceptions/unknown_request.rb

Overview

Network helper methods.

Defined Under Namespace

Modules: HTTP, IMAP, Mixins, POP3, SMTP, SSL, Telnet

Constant Summary collapse

IP_URL =
URI.parse('http://checkip.dyndns.org/')

Class Method Summary collapse

Class Method Details

.ipString

Determines the current external IP Address.

Returns:



40
41
42
# File 'lib/ronin/network/network.rb', line 40

def Network.ip
  IPAddr.extract(Net::HTTP.get(IP_URL)).first
end