Sha256: 50e8a8e034765bb047d4b755186e9b84fac73a1521871e5e53db9d9f9f34b53f

Contents?: true

Size: 706 Bytes

Versions: 6

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Commands
    module PassiveTotal
      def self.included(thor)
        thor.class_eval do
          desc "passivetotal [IP|DOMAIN|EMAIL|SHA1]", "PassiveTotal lookup by an ip, domain, email or SHA1 certificate fingerprint"
          method_option :title, type: :string, desc: "title"
          method_option :description, type: :string, desc: "description"
          method_option :tags, type: :array, desc: "tags"
          def passivetotal(indicator)
            with_error_handling do
              run_analyzer Analyzers::PassiveTotal, query: refang(indicator), options: options
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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