Sha256: 64f3ce1ce5138c159810648ad8b9b64fe587501becb1761b051fe58635412d68

Contents?: true

Size: 663 Bytes

Versions: 5

Compression:

Stored size: 663 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Commands
    module PassiveDNS
      def self.included(thor)
        thor.class_eval do
          desc "passive_dns [IP|DOMAIN]", "Cross search with passive DNS services by an ip or domain"
          method_option :title, type: :string, desc: "title"
          method_option :description, type: :string, desc: "description"
          method_option :tags, type: :array, desc: "tags"
          def passive_dns(query)
            with_error_handling do
              run_analyzer Analyzers::PassiveDNS, query: refang(query), options: options
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mihari-2.4.0 lib/mihari/commands/passive_dns.rb
mihari-2.3.1 lib/mihari/commands/passive_dns.rb
mihari-2.3.0 lib/mihari/commands/passive_dns.rb
mihari-2.2.1 lib/mihari/commands/passive_dns.rb
mihari-2.2.0 lib/mihari/commands/passive_dns.rb