Class: Ronin::Recon::Net::IPRangeEnum

Inherits:
Worker
  • Object
show all
Defined in:
lib/ronin/recon/builtin/net/ip_range_enum.rb

Overview

A recon worker that enumerates every IP address within an IP range.

Instance Method Summary collapse

Methods inherited from Worker

accepts, concurrency, #initialize, intensity, outputs, register, run

Constructor Details

This class inherits a constructor from Ronin::Recon::Worker

Instance Method Details

#process(ip_range) {|ip| ... } ⇒ Object

Enumerates an IP range.

Parameters:

Yields:

  • (ip)

    Each IP value within the IP range will be yielded.

Yield Parameters:



56
57
58
59
60
# File 'lib/ronin/recon/builtin/net/ip_range_enum.rb', line 56

def process(ip_range)
  ip_range.range.each do |address|
    yield IP.new(address)
  end
end