nexpose 0.9.6 → 0.9.7

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
  SHA1:
3
- metadata.gz: e40ad91293e896ed8c7f1e9604857dc9d6bf6dd0
4
- data.tar.gz: e362c3ca4411485a1230605a5a06685059911ed8
3
+ metadata.gz: 35275c5942ec2bf0da326c9031c40e0249d95bcf
4
+ data.tar.gz: 4827c44391555e01586ebe88ebdd1a8cfb4eeb8c
5
5
  SHA512:
6
- metadata.gz: f0ea6ca4789118697c035a466306dfaff611417227ba5f1c545d296c9c8916d5c97347b206eb320a59e63ce371aba1d21966020e98ec771b7df2cf7ab23d3571
7
- data.tar.gz: 80b82688cce211cf4268aaafe085635d6f20195e9e4f9afb28a5bcfb5066059c41bf8681d525529064ff786a6e9203f44cb69d312ca8e052eddbd5b912184457
6
+ metadata.gz: 50b8a7675454da7a4e0b71d6ef8f1758c121eb0cf9286fdafdcdb4ceb8cef817f28fd623d1150772af08d1dccbc6f92fd246a7fbf071ac231330615cb554670b
7
+ data.tar.gz: 7485bc542f29083aeeee956e5b2b78f90f2edae9d0587399ee7023011868a59f93fd56fd90d31ef5346df687f56b1f2f0205f0206a2c352cd41bdae64b38c985
@@ -176,6 +176,56 @@ module Nexpose
176
176
  host_threads.text = threads.to_s
177
177
  end
178
178
 
179
+ # Enable/disable IP stack fingerprinting
180
+ # @param [Boolean] enable or disable IP stack fingerprinting
181
+ def enable_ip_stack_fingerprinting=(enable)
182
+ ns = REXML::XPath.first(@xml, 'ScanTemplate/Plugins/Plugin[@name="java/NetworkScanners"]')
183
+ param = REXML::XPath.first(ns, './param[@name="ipFingerprintEnabled"]')
184
+ if param
185
+ param.text = (enable ? 1 : 0)
186
+ else
187
+ param = REXML::Element.new('param')
188
+ param.add_attribute('name', 'ipFingerprintEnabled')
189
+ param.text = (enable ? 1 : 0)
190
+ ns.add_element(param)
191
+ end
192
+ end
193
+
194
+ # Enable/diisable ICMP device discovery
195
+ # @param [Boolean] enable or disable ICMP device discovery
196
+ def enable_icmp_discovery=(enable)
197
+ icmp = REXML::XPath.first(@xml, 'ScanTemplate/DeviceDiscovery/CheckHosts/icmpHostCheck')
198
+ icmp.attributes['enabled'] = (enable ? 1 : 0)
199
+ end
200
+
201
+ # Add custom TCP ports to scan for device discovery
202
+ # @param [Array] ports to scan for device discovery
203
+ def tcp_discovery_ports=(ports)
204
+ tcp = REXML::XPath.first(@xml, 'ScanTemplate/DeviceDiscovery/CheckHosts/TCPHostCheck')
205
+ REXML::XPath.first(tcp, './portList').text = ports.join(',')
206
+ end
207
+
208
+ # Enable/disable TCP device discovery
209
+ # @param [Boolean] enable or disable TCP device discovery
210
+ def enable_tcp_discovery=(enable)
211
+ tcp = REXML::XPath.first(@xml, 'ScanTemplate/DeviceDiscovery/CheckHosts/TCPHostCheck')
212
+ tcp.attributes['enabled'] = (enable ? 1 : 0)
213
+ end
214
+
215
+ # Add custom UDP ports to scan for UDP device discovery
216
+ # @param [Array] posts to scan for UDP device discovery
217
+ def udp_discovery_ports=(ports)
218
+ udp = REXML::XPath.first(@xml, 'ScanTemplate/DeviceDiscovery/CheckHosts/UDPHostCheck')
219
+ REXML::XPath.first(udp, './portList').text = ports.join(',')
220
+ end
221
+
222
+ # Enable/diisable UDP device discovery
223
+ # @param [Boolean] enable or disable UDP device discovery
224
+ def enable_udp_discovery=(enable)
225
+ udp = REXML::XPath.first(@xml, 'ScanTemplate/DeviceDiscovery/CheckHosts/UDPHostCheck')
226
+ udp.attributes['enabled'] = (enable ? 1 : 0)
227
+ end
228
+
179
229
  # Add custom TCP ports to scan for services
180
230
  # @param [Array] ports to scan
181
231
  def tcp_service_ports=(ports)
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '0.9.6'
3
+ VERSION = '0.9.7'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexpose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2015-03-05 00:00:00.000000000 Z
16
+ date: 2015-03-17 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rex
@@ -144,7 +144,6 @@ files:
144
144
  - CONTRIBUTING.md
145
145
  - COPYING
146
146
  - Gemfile
147
- - Gemfile.lock
148
147
  - README.markdown
149
148
  - Rakefile
150
149
  - lib/README.md
@@ -192,7 +191,6 @@ files:
192
191
  - lib/nexpose/vuln.rb
193
192
  - lib/nexpose/vuln_def.rb
194
193
  - lib/nexpose/vuln_exception.rb
195
- - nexpose.gemspec
196
194
  homepage: https://github.com/rapid7/nexpose-client
197
195
  licenses:
198
196
  - BSD
@@ -218,3 +216,4 @@ signing_key:
218
216
  specification_version: 4
219
217
  summary: Ruby API for Rapid7 Nexpose
220
218
  test_files: []
219
+ has_rdoc:
@@ -1,68 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- nexpose (0.9.6)
5
- rex (= 2.0.7)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- addressable (2.3.7)
11
- ast (2.0.0)
12
- astrolabe (1.3.0)
13
- parser (>= 2.2.0.pre.3, < 3.0)
14
- codeclimate-test-reporter (0.4.7)
15
- simplecov (>= 0.7.1, < 1.0.0)
16
- crack (0.4.2)
17
- safe_yaml (~> 1.0.0)
18
- diff-lcs (1.2.5)
19
- docile (1.1.5)
20
- multi_json (1.10.1)
21
- parser (2.2.0.3)
22
- ast (>= 1.1, < 3.0)
23
- powerpack (0.1.0)
24
- rainbow (2.0.0)
25
- rex (2.0.7)
26
- rspec (3.2.0)
27
- rspec-core (~> 3.2.0)
28
- rspec-expectations (~> 3.2.0)
29
- rspec-mocks (~> 3.2.0)
30
- rspec-core (3.2.1)
31
- rspec-support (~> 3.2.0)
32
- rspec-expectations (3.2.0)
33
- diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.2.0)
35
- rspec-mocks (3.2.1)
36
- diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.2.0)
38
- rspec-support (3.2.2)
39
- rubocop (0.29.1)
40
- astrolabe (~> 1.3)
41
- parser (>= 2.2.0.1, < 3.0)
42
- powerpack (~> 0.1)
43
- rainbow (>= 1.99.1, < 3.0)
44
- ruby-progressbar (~> 1.4)
45
- ruby-progressbar (1.7.1)
46
- safe_yaml (1.0.4)
47
- simplecov (0.9.2)
48
- docile (~> 1.1.0)
49
- multi_json (~> 1.0)
50
- simplecov-html (~> 0.9.0)
51
- simplecov-html (0.9.0)
52
- vcr (2.9.3)
53
- webmock (1.20.4)
54
- addressable (>= 2.3.6)
55
- crack (>= 0.3.2)
56
-
57
- PLATFORMS
58
- ruby
59
-
60
- DEPENDENCIES
61
- bundler (~> 1.3)
62
- codeclimate-test-reporter (~> 0.4.6)
63
- nexpose!
64
- rspec (~> 3.2)
65
- rubocop (~> 0.29.0)
66
- simplecov (~> 0.9.1)
67
- vcr (~> 2.9.3)
68
- webmock (~> 1.20.4)
@@ -1,30 +0,0 @@
1
- # encoding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'nexpose/version'
5
-
6
- Gem::Specification.new do |s|
7
- s.name = 'nexpose'
8
- s.version = Nexpose::VERSION
9
- s.homepage = 'https://github.com/rapid7/nexpose-client'
10
- s.summary = 'Ruby API for Rapid7 Nexpose'
11
- s.description = 'This gem provides a Ruby API to the Nexpose vulnerability management product by Rapid7.'
12
- s.license = 'BSD'
13
- s.authors = ['HD Moore', 'Chris Lee', 'Michael Daines', 'Brandon Turner', 'Gavin Schneider', 'Scott Green']
14
- s.email = ['hd_moore@rapid7.com', 'christopher_lee@rapid7.com', 'michael_daines@rapid7.com', 'brandon_turner@rapid7.com', 'gavin_schneider@rapid7.com', 'scott_green@rapid7.com']
15
- s.files = Dir['[A-Z]*'] + Dir['lib/**/*']
16
- s.require_paths = ['lib']
17
- s.extra_rdoc_files = ['README.markdown']
18
- s.required_ruby_version = '>= 1.9'
19
- s.platform = 'ruby'
20
-
21
- s.add_runtime_dependency('rex', '2.0.7')
22
-
23
- s.add_development_dependency('bundler', '~> 1.3')
24
- s.add_development_dependency('codeclimate-test-reporter', '~> 0.4.6')
25
- s.add_development_dependency('simplecov', '~> 0.9.1')
26
- s.add_development_dependency('rspec', '~> 3.2')
27
- s.add_development_dependency('rubocop', '~> 0.29.0')
28
- s.add_development_dependency('webmock', '~> 1.20.4')
29
- s.add_development_dependency('vcr', '~> 2.9.3')
30
- end