Class: Aquatone::Commands::Takeover
- Inherits:
-
Aquatone::Command
- Object
- Aquatone::Command
- Aquatone::Commands::Takeover
- Defined in:
- lib/aquatone/commands/takeover.rb
Instance Attribute Summary
Attributes inherited from Aquatone::Command
Instance Method Summary collapse
Methods inherited from Aquatone::Command
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 ![:domain] output("Please specify a domain to assess\n") exit 1 end @domain = Aquatone::Domain.new([:domain]) @assessment = Aquatone::Assessment.new([:domain]) ("Takeover") prepare_host_dictionary prepare_detectors setup_resolver check_hosts write_to_takeovers_file end |