Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 2.88 KB

README.md

File metadata and controls

85 lines (61 loc) · 2.88 KB

Attack::Domain (Under heavy development)

travis-cli Code Climate Codacy Badge inch-ci

DESCRIPTION:

It's a wrapper module for all DNS related tasks.

Installation

Install it using gem command (not yet pushed to rubygem)

gem install attack-domain

Requirements

  • Ruby 2.x
  • Run-time Dependencies:
    • Dnsruby — an intelligent, pure Ruby, WHOIS client and parser
    • Whois — a feature-complete DNS(SEC) client for Ruby
  • Development dependencies (not required for installing the gem):
    • Bundler — creating the stable build environment
    • Rake — building the package
    • Yard — the documentation
    • RSpec — additional Ruby Spec test files
    • awesome_print — Pretty print your Ruby objects with style

Usage

  • Core
require 'attack-domain'
require 'pp'

domain1 = 'techarch.com.sa'
domain2 = 'zonetransfer.me'
domain3 = 'owa.zonetransfer.me'
domain4 = 'rubyfu.net'
domain5 = 'wikipedia.org'
ptr_ip1 = '54.221.226.67'    # rubyfu.net
ptr_ip2 = '207.46.197.32'    # owa.zonetransfer.me
ptr_ip3 = '91.198.174.192'   # wikipedia.org


core = Attack::Domain::Core.new
core.setup(nameserver: ['8.8.8.8', '8.8.4.4'], recurse: true, dnssec: false)
puts "[+] get_records_objects(domain)"
pp core.get_records_objects(domain3)

puts "\n[+] get_domainname"
pp core.get_domainname

puts "\n[+] get_ptr(domain_addr)"
pp core.get_ptr(ptr_ip1)
# pp core.get_ptr(ptr_ip2)
pp core.get_ptr(domain2)
pp core.get_ptr(domain4)

puts "\n[+] zone_transfer(domain)"
core.get_records_objects(domain2)
pp core.zone_transfer(domain2)

Development

$ git clone https://github.com/TechArchSA/attack-domain.git
$ cd attack-domain
$ bundle install

Testing

$ cd attack-domain
$ rspec spec/attack/domain/core_spec.rb --color

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/attack-domain. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.