Module: Ronin::Network

Defined in:
lib/ronin/network/network.rb,
lib/ronin/network/ssl.rb,
lib/ronin/network/ftp.rb,
lib/ronin/network/dns.rb,
lib/ronin/network/pop3.rb,
lib/ronin/network/imap.rb,
lib/ronin/network/unix.rb,
lib/ronin/network/esmtp.rb,
lib/ronin/network/proxy.rb,
lib/ronin/network/telnet.rb,
lib/ronin/network/tcp/tcp.rb,
lib/ronin/network/udp/udp.rb,
lib/ronin/network/udp/proxy.rb,
lib/ronin/network/http/http.rb,
lib/ronin/network/smtp/smtp.rb,
lib/ronin/network/tcp/proxy.rb,
lib/ronin/network/mixins/tcp.rb,
lib/ronin/network/smtp/email.rb,
lib/ronin/network/mixins/ssl.rb,
lib/ronin/network/mixins/dns.rb,
lib/ronin/network/mixins/udp.rb,
lib/ronin/network/http/proxy.rb,
lib/ronin/network/mixins/ftp.rb,
lib/ronin/network/mixins/imap.rb,
lib/ronin/network/mixins/http.rb,
lib/ronin/network/mixins/unix.rb,
lib/ronin/network/mixins/pop3.rb,
lib/ronin/network/mixins/smtp.rb,
lib/ronin/network/mixins/mixin.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: DNS, ESMTP, FTP, HTTP, IMAP, Mixins, POP3, SMTP, SSL, TCP, Telnet, UDP, UNIX Classes: Proxy

Constant Summary

IP_URL =

The URL used for determining the external IP Address.

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

Class Method Summary (collapse)

Class Method Details

+ (String) ip

Determines the current external IP Address.

Returns:



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

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