class Aquatone::Collectors::Dictionary
Constants
- DEFAULT_DICTIONARY
Public Instance Methods
run()
click to toggle source
# File lib/aquatone/collectors/dictionary.rb, line 15 def run if has_cli_option?("wordlist") file = File.expand_path(get_cli_option("wordlist")) if !File.readable?(file) failure("Wordlist file #{file} is not readable or does not exist") end dictionary = File.open(file, "r") else dictionary = File.open(DEFAULT_DICTIONARY, "r") end dictionary.each_line do |subdomain| add_host("#{subdomain.strip}.#{domain.name}") end end