Sha256: 3dca0ab996f5f43e0492bd68236b82392a0219338291a1965dfdc7df2d7b8351

Contents?: true

Size: 938 Bytes

Versions: 6

Compression:

Stored size: 938 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Commands
    module HTTPHash
      def self.included(thor)
        thor.class_eval do
          desc "http_hash", "Cross search with search engines by a hash of an HTTP response (SHA256, MD5 and MurmurHash3)"
          method_option :title, type: :string, desc: "title"
          method_option :description, type: :string, desc: "description"
          method_option :tags, type: :array, desc: "tags"
          method_option :md5, type: :string, desc: "MD5 hash"
          method_option :sha256, type: :string, desc: "SHA256 hash"
          method_option :mmh3, type: :numeric, desc: "MurmurHash3 hash"
          method_option :html, type: :string, desc: "path to an HTML file"
          def http_hash
            with_error_handling do
              run_analyzer Analyzers::HTTPHash, query: nil, 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/http_hash.rb
mihari-2.3.1 lib/mihari/commands/http_hash.rb
mihari-2.3.0 lib/mihari/commands/http_hash.rb
mihari-2.2.1 lib/mihari/commands/http_hash.rb
mihari-2.2.0 lib/mihari/commands/http_hash.rb
mihari-2.1.0 lib/mihari/commands/http_hash.rb