Class: Aquatone::Commands::Takeover

Inherits:
Aquatone::Command show all
Defined in:
lib/aquatone/commands/takeover.rb

Instance Attribute Summary

Attributes inherited from Aquatone::Command

#options

Instance Method Summary collapse

Methods inherited from Aquatone::Command

#initialize, run

Constructor Details

This class inherits a constructor from Aquatone::Command

Instance Method Details

#execute!Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/aquatone/commands/takeover.rb', line 4

def execute!
  if !options[:domain]
    output("Please specify a domain to assess\n")
    exit 1
  end

  @domain     = Aquatone::Domain.new(options[:domain])
  @assessment = Aquatone::Assessment.new(options[:domain])

  banner("Takeover")
  prepare_host_dictionary
  prepare_detectors
  setup_resolver
  check_hosts
  write_to_takeovers_file
end