passivetotalx

Gem Version Build Status Coverage Status CodeFactor

Yet another PassiveTotal API wrapper for Ruby.

Why I created this

There is an official PassiveTotal API wrapper for Ruby.

But I don't like that in several reasons.

  • A lack of proxy support.
  • Not well structured (IMHO).
  • Not tested with Ruby >= 2.6.

Installation

gem install passivetotalx

Usage

require "passivetotal"

# when given nothing, it tries to load your usernamem & API key via ENV["PASSIVETOTAL_USERNAME"] and ENV["PASSIVETOTAL_API_KEY"]
api = PassiveTotal::API.new
# or you can set them manually
api = PassiveTotal::API.new(username: "USERNAME", api_key: "API_KEY")

query =  "passivetotal.org"

api.dns.passive(query)
api.dns.passive_unique(query)
api.dns.search(query)

License

The gem is available as open source under the terms of the MIT License.