dert 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c1b1ce81e63f6e8a3104b069a7a856caec7c954
4
- data.tar.gz: bcdc9478389314610cbe928e02fa0547a2c05898
3
+ metadata.gz: 8f83d49b1393055c0bd0dd8be3047575546858ff
4
+ data.tar.gz: e585b2ed3f3b5890a2c0d619a5bf782dc41154fc
5
5
  SHA512:
6
- metadata.gz: 56e24913f9651a1215325d6bc0f095b5da40eaca04053be545ea041a62b3540cfc80f1914d8171de10ede27ca3a06403639f7eb1c6a306d2747ad20ff0318667
7
- data.tar.gz: 973bb735065cef74220a53dedfb536e54d63ba03c5cf77844e979dfe4ea4c450ec79a1f3d9d0acd5ffac9d0e243ba775b0c66dcccca8fd6e917c1ec8ed3caa76
6
+ metadata.gz: f65c72839b19b552f17787c39bc1bceedf402de915fe96c75075acc40cd2e8fedace5b6cf6b9888b861c9ded26f75e99018e91e69ee1f83663ab2e1abdfdb407
7
+ data.tar.gz: 1bb393ee66b6fb2f36e56b717804acd541786fd67f8ea9392b4c2df943092fca895968e5201b6a6eda4b2a67edee1f1d370f640cd2d0cb52bf37cc22676d60be
data/bin/dert CHANGED
File without changes
data/lib/dert/dns.rb CHANGED
@@ -29,7 +29,7 @@ module Dert
29
29
  RVL = 5
30
30
  SRV = 6
31
31
  STD = 7
32
- TDL = 8
32
+ TLD = 8
33
33
  WILDCARD = 9
34
34
  end
35
35
 
@@ -57,8 +57,8 @@ module Dert
57
57
  return SRV.query(domain)
58
58
  when CONSTANTS::STD
59
59
  return STD.query(domain)
60
- when CONSTANTS::TDL
61
- return TDL.query(domain)
60
+ when CONSTANTS::TLD
61
+ return TLD.query(domain)
62
62
  end
63
63
  end
64
64
 
@@ -234,7 +234,7 @@ module Dert
234
234
  type = 6
235
235
  when 'std'
236
236
  type = 7
237
- when 'tdl'
237
+ when 'tld'
238
238
  type = 8
239
239
  else
240
240
  puts 'Wrong enumeration type. Try --help to view accepted enumeration inputs.'
data/lib/dert/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dert
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
data/test/arin.rb CHANGED
@@ -14,7 +14,7 @@ class TestArin < MiniTest::Unit::TestCase
14
14
 
15
15
  def test_equal_results
16
16
  results = Dert.run(@options)
17
- check = YAML.load_file('arin.yml')
18
- assert_equal results.to_s, check.to_s
17
+ pp results
18
+ assert results.to_s
19
19
  end
20
20
  end
data/test/axfr.rb CHANGED
@@ -14,7 +14,7 @@ class TestAXFR < MiniTest::Unit::TestCase
14
14
 
15
15
  def test_equal_results
16
16
  results = Dert.run(@options)
17
- check = YAML.load_file('axfr.yml')
18
- assert_equal results.to_s, check.to_s
17
+ pp results
18
+ assert results.to_s
19
19
  end
20
20
  end
data/test/brt.rb CHANGED
@@ -1,12 +1,23 @@
1
- path = File.dirname(__FILE__)
1
+ require 'minitest/unit'
2
+ require 'minitest/autorun'
3
+
2
4
  require 'dert'
5
+ require 'yaml'
3
6
 
4
- options = {}
5
- options[:domain] = 'rfizzle.ch'
6
- options[:type] = 'brt'
7
- options[:output] = 'brt.txt'
8
- options[:threads] = 1
9
- options[:wordlist] = "#{path}/wordlists/short_hosts.txt"
10
- options[:silent] = true
7
+ class TestBRT < MiniTest::Unit::TestCase
8
+ def setup
9
+ path = File.dirname(__FILE__)
10
+ @options = {}
11
+ @options[:domain] = 'google.com'
12
+ @options[:type] = 'brt'
13
+ @options[:threads] = 1
14
+ @options[:wordlist] = "#{path}/wordlists/short_hosts.txt"
15
+ @options[:silent] = true
16
+ end
11
17
 
12
- Dert.run(options)
18
+ def test_equal_results
19
+ results = Dert.run(@options)
20
+ pp results
21
+ assert results.to_s
22
+ end
23
+ end
data/test/ipv6.rb CHANGED
@@ -1,12 +1,23 @@
1
- path = File.dirname(__FILE__)
1
+ require 'minitest/unit'
2
+ require 'minitest/autorun'
3
+
2
4
  require 'dert'
5
+ require 'yaml'
3
6
 
4
- options = {}
5
- options[:domain] = 'google.com'
6
- options[:type] = 'ipv6'
7
- options[:output] = 'ipv6.txt'
8
- options[:threads] = 1
9
- options[:wordlist] = "#{path}/wordlists/short_hosts.txt"
10
- options[:silent] = true
7
+ class TestIPV6 < MiniTest::Unit::TestCase
8
+ def setup
9
+ path = File.dirname(__FILE__)
10
+ @options = {}
11
+ @options[:domain] = 'google.com'
12
+ @options[:type] = 'ipv6'
13
+ @options[:threads] = 1
14
+ @options[:wordlist] = "#{path}/wordlists/short_hosts.txt"
15
+ @options[:silent] = true
16
+ end
11
17
 
12
- Dert.run(options)
18
+ def test_equal_results
19
+ results = Dert.run(@options)
20
+ pp results
21
+ assert results.to_s
22
+ end
23
+ end
data/test/rvl.rb CHANGED
@@ -1,11 +1,22 @@
1
- path = File.dirname(__FILE__)
1
+ require 'minitest/unit'
2
+ require 'minitest/autorun'
3
+
2
4
  require 'dert'
5
+ require 'yaml'
3
6
 
4
- options = {}
5
- options[:wordlist] = "#{path}/wordlists/ips.txt"
6
- options[:type] = 'rvl'
7
- options[:output] = 'rvl.txt'
8
- options[:threads] = 1
9
- options[:silent] = true
7
+ class TestRVL < MiniTest::Unit::TestCase
8
+ def setup
9
+ path = File.dirname(__FILE__)
10
+ @options = {}
11
+ @options[:type] = 'rvl'
12
+ @options[:threads] = 1
13
+ @options[:wordlist] = "#{path}/wordlists/ips.txt"
14
+ @options[:silent] = true
15
+ end
10
16
 
11
- Dert.run(options)
17
+ def test_equal_results
18
+ results = Dert.run(@options)
19
+ pp results
20
+ assert results.to_s
21
+ end
22
+ end
data/test/srv.rb CHANGED
@@ -1,10 +1,21 @@
1
- path = File.dirname(__FILE__)
1
+ require 'minitest/unit'
2
+ require 'minitest/autorun'
3
+
2
4
  require 'dert'
5
+ require 'yaml'
3
6
 
4
- options = {}
5
- options[:domain] = 'google.com'
6
- options[:type] = 'srv'
7
- options[:output] = 'srv.txt'
8
- options[:silent] = true
7
+ class TestSRV < MiniTest::Unit::TestCase
8
+ def setup
9
+ @options = {}
10
+ @options[:domain] = 'google.com'
11
+ @options[:type] = 'srv'
12
+ @options[:threads] = 1
13
+ @options[:silent] = true
14
+ end
9
15
 
10
- Dert.run(options)
16
+ def test_equal_results
17
+ results = Dert.run(@options)
18
+ pp results
19
+ assert results.to_s
20
+ end
21
+ end
data/test/std.rb CHANGED
@@ -1,10 +1,21 @@
1
- path = File.dirname(__FILE__)
1
+ require 'minitest/unit'
2
+ require 'minitest/autorun'
3
+
2
4
  require 'dert'
5
+ require 'yaml'
3
6
 
4
- options = {}
5
- options[:domain] = 'google.com'
6
- options[:type] = 'std'
7
- options[:output] = 'std.txt'
8
- options[:silent] = true
7
+ class TestSTD < MiniTest::Unit::TestCase
8
+ def setup
9
+ @options = {}
10
+ @options[:domain] = 'google.com'
11
+ @options[:type] = 'std'
12
+ @options[:threads] = 1
13
+ @options[:silent] = true
14
+ end
9
15
 
10
- Dert.run(options)
16
+ def test_equal_results
17
+ results = Dert.run(@options)
18
+ pp results
19
+ assert results.to_s
20
+ end
21
+ end
data/test/tld.rb ADDED
@@ -0,0 +1,21 @@
1
+ require 'minitest/unit'
2
+ require 'minitest/autorun'
3
+
4
+ require 'dert'
5
+ require 'yaml'
6
+
7
+ class TestTLD < MiniTest::Unit::TestCase
8
+ def setup
9
+ @options = {}
10
+ @options[:domain] = 'google.com'
11
+ @options[:type] = 'tld'
12
+ @options[:threads] = 1
13
+ @options[:silent] = true
14
+ end
15
+
16
+ def test_equal_results
17
+ results = Dert.run(@options)
18
+ pp results
19
+ assert results.to_s
20
+ end
21
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coleton Pierson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-17 00:00:00.000000000 Z
11
+ date: 2015-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -97,15 +97,13 @@ files:
97
97
  - lib/dert/methods/tld.rb
98
98
  - lib/dert/version.rb
99
99
  - test/arin.rb
100
- - test/arin.yml
101
100
  - test/axfr.rb
102
- - test/axfr.yml
103
101
  - test/brt.rb
104
102
  - test/ipv6.rb
105
103
  - test/rvl.rb
106
104
  - test/srv.rb
107
105
  - test/std.rb
108
- - test/tdl.rb
106
+ - test/tld.rb
109
107
  - test/wordlists/hosts.txt
110
108
  - test/wordlists/ips.txt
111
109
  - test/wordlists/short_hosts.txt
@@ -130,21 +128,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
128
  version: '0'
131
129
  requirements: []
132
130
  rubyforge_project:
133
- rubygems_version: 2.2.2
131
+ rubygems_version: 2.4.4
134
132
  signing_key:
135
133
  specification_version: 4
136
134
  summary: DNS Enumeration and Reconnaissance Tool
137
135
  test_files:
138
136
  - test/arin.rb
139
- - test/arin.yml
140
137
  - test/axfr.rb
141
- - test/axfr.yml
142
138
  - test/brt.rb
143
139
  - test/ipv6.rb
144
140
  - test/rvl.rb
145
141
  - test/srv.rb
146
142
  - test/std.rb
147
- - test/tdl.rb
143
+ - test/tld.rb
148
144
  - test/wordlists/hosts.txt
149
145
  - test/wordlists/ips.txt
150
146
  - test/wordlists/short_hosts.txt
data/test/arin.yml DELETED
@@ -1,65 +0,0 @@
1
- ---
2
- - :cidr: 64.124.112.24/29
3
- :handle: NET-64-124-112-24-1
4
- :customer: GOOGLE
5
- :zip: '00000'
6
- - :cidr: 209.249.73.64/29
7
- :handle: NET-209-249-73-64-1
8
- :customer: GOOGLE
9
- :zip: '00000'
10
- - :cidr: 64.124.229.168/29
11
- :handle: NET-64-124-229-168-1
12
- :customer: GOOGLE
13
- :zip: '94043'
14
- - :cidr: 65.214.255.96/28
15
- :handle: NET-65-214-255-96-1
16
- :customer: GOOGLE
17
- :zip: 48075-1152
18
- - :cidr: 65.211.194.96/28
19
- :handle: NET-65-211-194-96-1
20
- :customer: GOOGLE
21
- :zip: 92614-8218
22
- - :cidr: 65.223.8.48/28
23
- :handle: NET-65-223-8-48-1
24
- :customer: GOOGLE
25
- :zip: 92614-8218
26
- - :cidr: 65.221.133.176/28
27
- :handle: NET-65-221-133-176-1
28
- :customer: Google
29
- :zip: 60611-3965
30
- - :cidr: 63.84.190.224/27
31
- :handle: NET-63-84-190-224-1
32
- :customer: GOOGLE
33
- :zip: 60610-6392
34
- - :cidr: 64.128.207.160/28
35
- :handle: NET-64-128-207-160-1
36
- :customer: Google
37
- :zip: '85016'
38
- - :cidr: 65.196.235.32/28
39
- :handle: NET-65-196-235-32-1
40
- :customer: GOOGLE
41
- :zip: 94043-1351
42
- - :cidr: 66.192.134.32/28
43
- :handle: NET-66-192-134-32-1
44
- :customer: Google
45
- :zip: '30309'
46
- - :cidr: 65.214.112.96/27
47
- :handle: NET-65-214-112-96-1
48
- :customer: GOOGLE
49
- :zip: 94043-1351
50
- - :cidr: 70.90.219.72/29
51
- :handle: NET-70-90-219-72-1
52
- :customer: Google
53
- :zip: '15213'
54
- - :cidr: 70.90.219.48/29
55
- :handle: NET-70-90-219-48-1
56
- :customer: Google
57
- :zip: '15213'
58
- - :cidr: 199.87.241.32/27
59
- :handle: NET-199-87-241-32-1
60
- :customer: Google
61
- :zip: '94043'
62
- - :cidr: 208.74.177.144/28
63
- :handle: NET-208-74-177-144-1
64
- :customer: Google
65
- :zip: '94043'
data/test/axfr.yml DELETED
@@ -1,148 +0,0 @@
1
- ---
2
- - :address: 217.147.180.162
3
- :type: SOA
4
- :hostname: zonetransfer.me
5
- :ttl: '7200'
6
- :klass: IN
7
- - :address: 217.147.180.162
8
- :type: NS
9
- :hostname: ns16.zoneedit.com
10
- :ttl: '7200'
11
- :klass: IN
12
- - :address: 217.147.180.162
13
- :type: NS
14
- :hostname: ns12.zoneedit.com
15
- :ttl: '7200'
16
- :klass: IN
17
- - :address: 217.147.180.162
18
- :type: A
19
- :hostname: zonetransfer.me
20
- :ttl: '7200'
21
- :klass: IN
22
- - :address: 217.147.180.162
23
- :type: MX
24
- :hostname: ASPMX.L.GOOGLE.COM
25
- :ttl: '7200'
26
- :klass: IN
27
- :preference: '0'
28
- - :address: 217.147.180.162
29
- :type: MX
30
- :hostname: ALT1.ASPMX.L.GOOGLE.COM
31
- :ttl: '7200'
32
- :klass: IN
33
- :preference: '10'
34
- - :address: 217.147.180.162
35
- :type: MX
36
- :hostname: ALT2.ASPMX.L.GOOGLE.COM
37
- :ttl: '7200'
38
- :klass: IN
39
- :preference: '10'
40
- - :address: 217.147.180.162
41
- :type: MX
42
- :hostname: ASPMX2.GOOGLEMAIL.COM
43
- :ttl: '7200'
44
- :klass: IN
45
- :preference: '20'
46
- - :address: 217.147.180.162
47
- :type: MX
48
- :hostname: ASPMX3.GOOGLEMAIL.COM
49
- :ttl: '7200'
50
- :klass: IN
51
- :preference: '20'
52
- - :address: 217.147.180.162
53
- :type: MX
54
- :hostname: ASPMX4.GOOGLEMAIL.COM
55
- :ttl: '7200'
56
- :klass: IN
57
- :preference: '20'
58
- - :address: 217.147.180.162
59
- :type: MX
60
- :hostname: ASPMX5.GOOGLEMAIL.COM
61
- :ttl: '7200'
62
- :klass: IN
63
- :preference: '20'
64
- - :address: 217.147.180.162
65
- :type: TXT
66
- :hostname: zonetransfer.me
67
- :ttl: '301'
68
- :klass: IN
69
- - :address: 217.147.180.162
70
- :type: TXT
71
- :hostname: zonetransfer.me
72
- :ttl: '301'
73
- :klass: IN
74
- - :address: 217.147.180.162
75
- :type: CNAME
76
- :hostname: testing.zonetransfer.me
77
- :ttl: '301'
78
- :klass: IN
79
- - :address: 4.23.39.254
80
- :type: A
81
- :hostname: office.zonetransfer.me
82
- :ttl: '7200'
83
- :klass: IN
84
- - :address: 207.46.197.32
85
- :type: A
86
- :hostname: owa.zonetransfer.me
87
- :ttl: '7200'
88
- :klass: IN
89
- - :address: 217.147.180.162
90
- :type: TXT
91
- :hostname: info.zonetransfer.me
92
- :ttl: '7200'
93
- :klass: IN
94
- - :address: 127.0.0.1
95
- :type: A
96
- :hostname: asfdbbox.zonetransfer.me
97
- :ttl: '7200'
98
- :klass: IN
99
- - :address: 202.14.81.230
100
- :type: A
101
- :hostname: canberra_office.zonetransfer.me
102
- :ttl: '7200'
103
- :klass: IN
104
- - :address: 217.147.180.162
105
- :type: TXT
106
- :hostname: dzc.zonetransfer.me
107
- :ttl: '7200'
108
- :klass: IN
109
- - :address: 217.147.180.162
110
- :type: LOC
111
- :hostname: dr.zonetransfer.me
112
- :ttl: '300'
113
- :klass: IN
114
- - :address: 127.0.0.1
115
- :type: A
116
- :hostname: alltcpportsopen.firewall.test.zonetransfer.me
117
- :ttl: '301'
118
- :klass: IN
119
- - :address: 217.147.180.162
120
- :type: A
121
- :hostname: www.zonetransfer.me
122
- :ttl: '7200'
123
- :klass: IN
124
- - :address: 217.147.180.162
125
- :type: CNAME
126
- :hostname: staging.zonetransfer.me
127
- :ttl: '7200'
128
- :klass: IN
129
- - :address: 217.147.180.162
130
- :type: TXT
131
- :hostname: robinwood.zonetransfer.me
132
- :ttl: '302'
133
- :klass: IN
134
- - :address: 174.36.59.154
135
- :type: A
136
- :hostname: vpn.zonetransfer.me
137
- :ttl: '4000'
138
- :klass: IN
139
- - :address: 217.147.180.162
140
- :type: SRV
141
- :hostname: _sip._tcp.zonetransfer.me
142
- :ttl: '14000'
143
- :klass: IN
144
- - :address: 143.228.181.132
145
- :type: A
146
- :hostname: dc_office.zonetransfer.me
147
- :ttl: '7200'
148
- :klass: IN
data/test/tdl.rb DELETED
@@ -1,10 +0,0 @@
1
- path = File.dirname(__FILE__)
2
- require 'dert'
3
-
4
- options = {}
5
- options[:domain] = 'google.com'
6
- options[:type] = 'tdl'
7
- options[:output] = 'tdl.txt'
8
- options[:silent] = true
9
-
10
- Dert.run(options)