dns-sniper 0.0.1.pre5 → 0.0.1.pre6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61bc06052722d5ac53448692a1c4cfb8e52a86ebe41fe2ef3973b5f36a0ff1da
4
- data.tar.gz: '058667f512cdaa447c377325a0cc17df712f05c0d1aac2d82c09337f1faa2b3b'
3
+ metadata.gz: f366147ef18ba1adc0449b75001bd217b18b27727fe81406980cb3dec815da82
4
+ data.tar.gz: b7ecdce1690d770cfc6cbe69c4745465e45d70d1704fe955cd17786ff5cc6b14
5
5
  SHA512:
6
- metadata.gz: a2ab89c5edd6fa0ee2be7fee4078859ee15b4af1f8598ea12cc4925103d6155d0ddc1d2da313ada9b055635ec76dcf5c6cab1a2be3d3a1a45e6bd12f2fcb53f2
7
- data.tar.gz: 05d1dc924c958d1172da20cce2795498c60c33278db0738fbf0b1bed4539b28ab291a8f6fd7aa3b64db010b3ffa1a7f58ee872cb936705114e4c7819b43ae225
6
+ metadata.gz: b4ef85c2cbb26409ff3bd52097ff5c95c80ec1b8303c12ab0f871fe056a33fe7a5139272e0ea6e4fd9ea8cb2c459d528155250dee70b62174284a07baefba6b9
7
+ data.tar.gz: 9f2c3aa82e0f604314a9de321e5960bef302906d5dec42ab4a7801b14bbd932f11b8dd1a05fed346a75e3a895aee72ac7506085766b25e45fe228eca55ef6360
@@ -3,8 +3,8 @@
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'dns-sniper'
5
5
  spec.license = 'MIT'
6
- spec.version = '0.0.1.pre5'
7
- spec.date = '2020-11-10'
6
+ spec.version = '0.0.1.pre6'
7
+ spec.date = '2020-11-11'
8
8
 
9
9
  spec.authors = ['Brody Hoskins']
10
10
  spec.email = ['brody@brody.digital']
@@ -35,10 +35,11 @@ module DNSSniper
35
35
  return false if domain == ''
36
36
  return false if domain.gsub('#', '').gsub(/\s+/, '').empty?
37
37
  return false if domain[0] == '#'
38
- return false unless domain.include?('.')
39
38
  return false if domain.include?(':')
39
+ return false if domain.include?('?')
40
40
  return false if ip_addr?(domain)
41
41
  return false unless /\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/.match?(domain)
42
+ return false unless /^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}$/.match?(domain)
42
43
 
43
44
  begin
44
45
  return false if URI.parse(domain).is_a?(URI::HTTP)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dns-sniper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre5
4
+ version: 0.0.1.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brody Hoskins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-10 00:00:00.000000000 Z
11
+ date: 2020-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down