Class: Yawast::Commands::DNS

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/dns.rb

Class Method Summary collapse

Class Method Details

.process(args, options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/commands/dns.rb', line 6

def self.process(args, options)
  uri = Yawast::Commands::Utils.extract_uri(args)

  Yawast.header

  Yawast::Shared::Output.setup uri, options unless options.output.nil?

  args.each do |arg|
    uri = Yawast::Commands::Utils.extract_uri([arg])
    Yawast::Shared::Output.set_current_uri uri

    puts "Scanning: #{uri}"
    puts

    Yawast::Scanner::Plugins::DNS::Generic.dns_info uri, options
  end

  Yawast::Shared::Output.write_file
end