Sha256: 831293249700ecb81ab1f56c4366ff4b004eac4dfb422549e4051509fc66e83d

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

# frozen_string_literal: true

module Yawast
  module Commands
    class DNS
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yawast-0.7.2 lib/commands/dns.rb
yawast-0.7.1 lib/commands/dns.rb