dnsbl-client 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d1b70e2900d14b8da9652c07aba1bfd66a025b0c
4
+ data.tar.gz: a5b0dd5c0885f0da0dd19a213bee5def68535e53
5
+ SHA512:
6
+ metadata.gz: b97d026113656ef06664f21b5cd35885653689e9206af11f5dc4fcf2291ca8a0361ccadc63325d4ab1edb3f633936f41629611f1fc2189948fb2c3ba914b0c5f
7
+ data.tar.gz: d7cde1a6e11e198c527d662d5066e6904d58cb6b228c8f3dd44c7120f3a7ca499c20bd93d952ee89356d9732d1d628c6344f124d33f52f7ae8139a44fea6ef14
data/README.md CHANGED
@@ -18,7 +18,7 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- require "dnsbl-client"
21
+ require "dnsbl/client"
22
22
  c = DNSBL::Client.new
23
23
  c.lookup("203.150.14.85")
24
24
  => [#<struct DNSBL::DNSBLResult dnsbl="UCEPROTECT1", query="85.14.150.203.dnsbl-1.uceprotect.net", result="127.0.0.2", meaning="Blacklisted", timing=0.0247988700866699>, #<struct DNSBL::DNSBLResult dnsbl="BARRACUDA", query="85.14.150.203.b.barracudacentral.org", result="127.0.0.2", meaning="Listed", timing=0.0266849994659424>]
@@ -33,3 +33,5 @@ Or install it yourself as:
33
33
  3. Commit your changes (`git commit -am 'Add some feature'`)
34
34
  4. Push to the branch (`git push origin my-new-feature`)
35
35
  5. Create new Pull Request
36
+
37
+ <a href='mailto:github@chrislee[dot]dhs[dot]org[stop here]xxx'><img src='http://chrisleephd.us/images/github-email.png?dnsbl-client'></a>
data/Rakefile CHANGED
@@ -4,9 +4,9 @@ require "bundler/gem_tasks"
4
4
  require 'rake/testtask'
5
5
 
6
6
  Rake::TestTask.new do |t|
7
- t.libs << 'lib'
8
- t.test_files = FileList['test/test_*.rb']
9
- t.verbose = true
7
+ t.libs << 'lib'
8
+ t.test_files = FileList['test/test_*.rb']
9
+ t.verbose = true
10
10
  end
11
11
 
12
12
  task :default => :test
@@ -62,30 +62,6 @@ SORBS:
62
62
  127.0.0.8: hosts demanding they are never tested by SORBS
63
63
  127.0.0.9: Botnet/DDoS Zombies
64
64
  127.0.0.2: Open HTTP Proxy Servers
65
- AHBL:
66
- 127.0.0.20: Blog/Wiki/Comment Spammer
67
- 127.0.0.3: Open Proxy
68
- 127.0.0.10: Shoot On Sight
69
- 127.0.0.11: Non-RFC Compliant (missing postmaster or abuse)
70
- 127.0.0.4: Spam Source
71
- 127.0.0.12: Does not properly handle 5xx errors
72
- 127.0.0.5: Provisional Spam Source Listing block (will be removed if spam stops)
73
- 127.0.0.127: Other
74
- 127.0.0.13: Other Non-RFC Compliant
75
- 127.0.0.6: Formmail Spam
76
- domain: dnsbl.ahbl.org
77
- 127.0.0.14: Compromised System => DDoS
78
- 127.0.0.7: Spam Supporter
79
- type: ip
80
- "0": OK
81
- 127.0.0.15: Compromised System => Relay
82
- 127.0.0.8: Spam Supporter (indirect)
83
- 127.0.0.16: Compromised System => Autorooter/Scanner
84
- 127.0.0.9: End User (non mail system)
85
- 127.0.0.17: Compromised System => Worm or mass mailing virus
86
- 127.0.0.18: Compromised System => Other virus
87
- 127.0.0.19: Open Proxy
88
- 127.0.0.2: Open Relay
89
65
  DRONEBL:
90
66
  domain: dnsbl.dronebl.org
91
67
  type: ip
@@ -141,11 +117,6 @@ CBL:
141
117
  type: ip
142
118
  0: OK
143
119
  127.0.0.2: Blacklisted
144
- RHSBL:
145
- domain: rhsbl.ahbl.org
146
- type: domain
147
- 0: OK
148
- 127.0.0.2: Blacklisted
149
120
  FIVETENSG:
150
121
  domain: blackholes.five-ten-sg.com
151
122
  type: ip
@@ -216,4 +187,4 @@ TOREXITNODE:
216
187
  domain: torexit.dan.me.uk
217
188
  type: ip
218
189
  127.0.0.100: Tor Exit Node
219
-
190
+
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "rake", "~> 10"
23
23
 
24
- spec.signing_key = "#{File.dirname(__FILE__)}/../gem-private_key.pem"
25
- spec.cert_chain = ["#{File.dirname(__FILE__)}/../gem-public_cert.pem"]
24
+ #spec.signing_key = "#{File.dirname(__FILE__)}/../gem-private_key.pem"
25
+ #spec.cert_chain = ["#{File.dirname(__FILE__)}/../gem-public_cert.pem"]
26
26
  end
@@ -1,5 +1,5 @@
1
1
  module DNSBL
2
2
  class Client
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -1,9 +1,9 @@
1
1
  unless Kernel.respond_to?(:require_relative)
2
- module Kernel
3
- def require_relative(path)
4
- require File.join(File.dirname(caller[0]), path.to_str)
5
- end
6
- end
2
+ module Kernel
3
+ def require_relative(path)
4
+ require File.join(File.dirname(caller[0]), path.to_str)
5
+ end
6
+ end
7
7
  end
8
8
 
9
9
  require_relative 'helper'
@@ -11,10 +11,11 @@ require_relative 'helper'
11
11
  $nameservers = [['4.2.2.2',53]]
12
12
 
13
13
  class TestDNSBLClient < Test::Unit::TestCase
14
- def test_return_no_hits_for_127_0_0_255
14
+ def test_return_no_hits_for_127_0_0_254
15
15
  c = DNSBL::Client.new
16
16
  c.nameservers = $nameservers
17
- res = c.lookup("127.0.0.255")
17
+ # for some reason DRONEBL returns 127.0.0.255 when queried for 127.0.0.255, so I'll use 127.0.0.254
18
+ res = c.lookup("127.0.0.254")
18
19
  assert_equal(0,res.length)
19
20
  end
20
21
  def test_return_all_lists_for_127_0_0_2
metadata CHANGED
@@ -1,77 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnsbl-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - chrislee35
9
8
  autorequire:
10
9
  bindir: bin
11
- cert_chain:
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EaFFOVEYwWlAvYWJ6eVRzTAp6alVDQXdFQUFhTTVNRGN3Q1FZRFZS
30
- MFRCQUl3QURBTEJnTlZIUThFQkFNQ0JMQXdIUVlEVlIwT0JCWUVGTzh3Cith
31
- ZVA3VDZrVkpibENnNmV1c09JSTlEZk1BMEdDU3FHU0liM0RRRUJCUVVBQTRJ
32
- QkFRQkNReVJKTFhzQm8yRnkKOFc2ZS9XNFJlbVFScmxBdzlESzVPNlU3MUp0
33
- ZWRWb2Iyb3ErT2Irem1TK1BpZkUyK0wrM1JpSjJINlZUbE96aQp4K0EwNjFN
34
- VVhoR3JhcVZxNEoyRkM4a3Q0RVF5d0FEMFAwVGE1R1UyNENHU0YwOFkzR2tK
35
- eTFTYTRYcVRDMllDCm81MXM3SlArdGtDQ3RwVllTZHpKaFRsbGllUkFXQnBH
36
- VjFkdGFvZVVLRTZ0WVBNQmtvc3hTUmNWR2N6ay9TYzMKN2VRQ3BleFl5OUps
37
- VUJJOXUzQnFJWTlFK2wrTVNuOGloWFNQbXlLMERncmhhQ3Urdm9hU0ZWT1g2
38
- WStCNXFibwpqTFhNUXUyWmdJU1l3WE5qTmJHVkhlaHV0ODJVN1U5b2lIb1dj
39
- ck9HYXphUlVtR085VFhQK2FKTEgwZ3cyZGNLCkFmTWdsWFBpCi0tLS0tRU5E
40
- IENFUlRJRklDQVRFLS0tLS0K
41
- date: 2013-06-02 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2015-01-08 00:00:00.000000000 Z
42
12
  dependencies:
43
13
  - !ruby/object:Gem::Dependency
44
14
  name: bundler
45
15
  requirement: !ruby/object:Gem::Requirement
46
- none: false
47
16
  requirements:
48
- - - ~>
17
+ - - "~>"
49
18
  - !ruby/object:Gem::Version
50
19
  version: '1.3'
51
20
  type: :development
52
21
  prerelease: false
53
22
  version_requirements: !ruby/object:Gem::Requirement
54
- none: false
55
23
  requirements:
56
- - - ~>
24
+ - - "~>"
57
25
  - !ruby/object:Gem::Version
58
26
  version: '1.3'
59
27
  - !ruby/object:Gem::Dependency
60
28
  name: rake
61
29
  requirement: !ruby/object:Gem::Requirement
62
- none: false
63
30
  requirements:
64
- - - ! '>='
31
+ - - "~>"
65
32
  - !ruby/object:Gem::Version
66
- version: '0'
33
+ version: '10'
67
34
  type: :development
68
35
  prerelease: false
69
36
  version_requirements: !ruby/object:Gem::Requirement
70
- none: false
71
37
  requirements:
72
- - - ! '>='
38
+ - - "~>"
73
39
  - !ruby/object:Gem::Version
74
- version: '0'
40
+ version: '10'
75
41
  description: simple interface to lookup blacklists results
76
42
  email:
77
43
  - rubygems@chrislee.dhs.org
@@ -80,7 +46,7 @@ executables:
80
46
  extensions: []
81
47
  extra_rdoc_files: []
82
48
  files:
83
- - .gitignore
49
+ - ".gitignore"
84
50
  - Gemfile
85
51
  - LICENSE.txt
86
52
  - README.md
@@ -97,33 +63,26 @@ files:
97
63
  homepage: http://github.com/chrislee35/dnsbl-client
98
64
  licenses:
99
65
  - MIT
66
+ metadata: {}
100
67
  post_install_message:
101
68
  rdoc_options: []
102
69
  require_paths:
103
70
  - lib
104
71
  required_ruby_version: !ruby/object:Gem::Requirement
105
- none: false
106
72
  requirements:
107
- - - ! '>='
73
+ - - ">="
108
74
  - !ruby/object:Gem::Version
109
75
  version: '0'
110
- segments:
111
- - 0
112
- hash: -1644679635728058987
113
76
  required_rubygems_version: !ruby/object:Gem::Requirement
114
- none: false
115
77
  requirements:
116
- - - ! '>='
78
+ - - ">="
117
79
  - !ruby/object:Gem::Version
118
80
  version: '0'
119
- segments:
120
- - 0
121
- hash: -1644679635728058987
122
81
  requirements: []
123
82
  rubyforge_project:
124
- rubygems_version: 1.8.25
83
+ rubygems_version: 2.2.2
125
84
  signing_key:
126
- specification_version: 3
85
+ specification_version: 4
127
86
  summary: queries various DNS Blacklists
128
87
  test_files:
129
88
  - test/helper.rb
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1 +0,0 @@
1
- g]���b�DЇ=�ȫ��D�ҀP`%����2,~Xh�k~E�A��6�����|1����)!HF_gM<U�r�'6[�� �H�,�z����>�Q���%]I3������2����KV>�޴ӝW�%�{��|d���gSEի��J�7o~�D�T� �(n��+ɏ�*��R� uTG<Д�2?�H߹㻥pJ��������\T������H�?��