Sha256: 54c8c2f7199e261f540106faf628dcd6e359a5c6784088783fc3dd38544aeeb3

Contents?: true

Size: 756 Bytes

Versions: 2

Compression:

Stored size: 756 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Commands
    module Urlscan
      def self.included(thor)
        thor.class_eval do
          desc "urlscan [QUERY]", "urlscan search"
          method_option :title, type: :string, desc: "title"
          method_option :description, type: :string, desc: "description"
          method_option :tags, type: :array, desc: "tags"
          method_option :allowed_data_types, type: :array, default: ["url", "ip", "domain"], desc: "types to fetch from search results ('url', 'domain' or 'ip')"
          def urlscan(query)
            with_error_handling do
              run_analyzer Analyzers::Urlscan, query: query, options: options
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mihari-3.12.0 lib/mihari/commands/urlscan.rb
mihari-3.11.0 lib/mihari/commands/urlscan.rb