Class: Ronin::UI::CLI::Commands::Scan::Spider

Inherits:
ScannerCommand
  • Object
show all
Defined in:
lib/ronin/ui/cli/commands/scan/spider.rb

Instance Method Summary (collapse)

Methods inherited from ScannerCommand

#print_resource, #scan, #setup

Instance Method Details

- (Object) execute

Spider one or more websites.

Since:

  • 1.0.0



39
40
41
42
43
44
45
# File 'lib/ronin/ui/cli/commands/scan/spider.rb', line 39

def execute
  print_info 'Saving spidered URLs ...' if import?

  scan

  print_info 'All spidered URLs saved.' if import?
end

Prints a spidered page.

Parameters:

  • page (Spidr::Page)

    A spidered page.

Since:

  • 1.0.0



57
58
59
60
61
62
63
64
# File 'lib/ronin/ui/cli/commands/scan/spider.rb', line 57

def print_result(page)
  print_info page.url

  if verbose?
    print_hash page.headers
    puts page.body
  end
end