Skip to content

Repository files navigation

Attack::Domain (Under heavy development)

travis-cliCode ClimateCodacy Badgeinch-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.netptr_ip2='207.46.197.32'# owa.zonetransfer.meptr_ip3='91.198.174.192'# wikipedia.orgcore=Attack::Domain::Core.newcore.setup(nameserver: ['8.8.8.8','8.8.4.4'],recurse: true,dnssec: false)puts"[+] get_records_objects(domain)"ppcore.get_records_objects(domain3)puts"\n[+] get_domainname"ppcore.get_domainnameputs"\n[+] get_ptr(domain_addr)"ppcore.get_ptr(ptr_ip1)# pp core.get_ptr(ptr_ip2)ppcore.get_ptr(domain2)ppcore.get_ptr(domain4)puts"\n[+] zone_transfer(domain)"core.get_records_objects(domain2)ppcore.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.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages