travis-cli Code Climate Codacy Badge inch-ci
It's a wrapper module for all DNS related tasks.
Install it using gem command (not yet pushed to rubygem)
gem install attack-domain
- Ruby 2.x
- Run-time Dependencies:
- 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
- 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)
$ git clone https://github.com/TechArchSA/attack-domain.git
$ cd attack-domain
$ bundle install
$ cd attack-domain
$ rspec spec/attack/domain/core_spec.rb --color
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.