Sha256: 1edddf6c05a5d273f9da2af834d363832243f33e5b1efd217904f772366f8fff

Contents?: true

Size: 435 Bytes

Versions: 4

Compression:

Stored size: 435 Bytes

Contents

require "base64"

module Pulsedive
  class Analyze < Client
    def add_to_queue(ioc, enrich = 1, probe = 1)
      params = {
        "ioc": Base64.strict_encode64(ioc),
        "enrich": enrich,
        "probe": probe,
      }
      post("/api/analyze.php", params) { |json| json }
    end

    def get_results_by_id(id)
      params = {
        qid: id
      }
      get("/api/analyze.php", params) { |json| json }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pulsedive-0.1.3 lib/pulsedive/analyze.rb
pulsedive-0.1.2 lib/pulsedive/analyze.rb
pulsedive-0.1.1 lib/pulsedive/analyze.rb
pulsedive-0.1.0 lib/pulsedive/analyze.rb