Skip to content

Commit

Permalink
Show key requirements when listing collectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Henriksen committed Jul 21, 2017
1 parent 2e010e0 commit 54929de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- New Tool: aquatone-takeover: Check discovered hosts for subdomain takeover vulnerabilities

### Changed
- Show key requirements in for collectors when issuing `aquatone-discover --list-collectors`


## [0.2.0]
Expand Down
9 changes: 5 additions & 4 deletions exe/aquatone-discover
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ OptionParser.new do |opts|

opts.on("--list-collectors", "See information on collectors") do
Aquatone::Collector.descendants.each do |collector|
puts "Name.......: #{collector.meta[:name]}"
puts "Description: #{collector.meta[:description]}" if collector.meta[:description]
puts "Author.....: #{collector.meta[:author]}"
puts "Key........: #{collector.sluggified_name}\n\n"
puts "Name............: #{collector.meta[:name]}"
puts "Description.....: #{collector.meta[:description]}" if collector.meta[:description]
puts "Author..........: #{collector.meta[:author]}"
puts "Key Requirements: #{collector.meta.key?(:require_keys) ? collector.meta[:require_keys].join(', ') : 'None'}"
puts "Key.............: #{collector.sluggified_name}\n\n"
puts "--------------------------------------------------\n\n"
end
exit
Expand Down

0 comments on commit 54929de

Please sign in to comment.