nexpose 0.8.12 → 0.8.13

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: 5775283458986894b95fd962949b90ac823a703d
4
- data.tar.gz: 16dae4681f6014fac3e11a4a87abbfb570d7a8a3
3
+ metadata.gz: 474e57f4bb98a4b99c7645607ea2494d7c00c81a
4
+ data.tar.gz: 14c8333c379fa2a222aedfe8378ad2720ed0891e
5
5
  SHA512:
6
- metadata.gz: 2a89fcc8ef7d2055b91ea186b6ac9f4fd4277d9ba1e353d9949f89c6c869f5fcc44db4f4728c304e862398d8486a7c85f274094f9c9672b5c0b2bdeaffd254a8
7
- data.tar.gz: 877bfea17e486996016054e7afbc186f4af61f57875d2c372b24e79fe3987241152daf285cf90069499ca850d6ad6880868115b32fdbbf74642552dbeb95167c
6
+ metadata.gz: bc5baa14ea3cd3cb18087dd2339f3bad38c6f83db277695a9ef4f104dad51ab750d0b2f592f41323e638bf2a35f69028a199a9596795063ffe3c6637f6be8380
7
+ data.tar.gz: 8a67e8db4958859b6ddc31d80607ffd78ff1401d370ecdbe9e599dc3555837934204cabfe0d232ac3794995d928f08b8ed10c8b34fbd755c28185596d1a9e0e6
@@ -107,6 +107,22 @@ module Nexpose
107
107
  end
108
108
  end
109
109
 
110
+ # @return [Boolean] Whether control scanning in enabled.
111
+ def control_scanning?
112
+ global_controls_scan = REXML::XPath.first(@xml, 'ScanTemplate/ControlsScan/globalControlsScanEnabled')
113
+ local_controls_scan = REXML::XPath.first(@xml, 'ScanTemplate/ControlsScan/localControlsScanEnabled')
114
+
115
+ global_controls_scan.attributes['enabled'] == '1' || local_controls_scan.attributes['enabled'] == '1'
116
+ end
117
+
118
+ # Adjust whether to perform control scanning (ControlsInsight integration)
119
+ # with this template.
120
+ # @param [Boolean] enable Whether to turn on control scanning.
121
+ def control_scanning=(enable)
122
+ local_controls_scan = REXML::XPath.first(@xml, 'ScanTemplate/ControlsScan/localControlsScanEnabled')
123
+ local_controls_scan.attributes['enabled'] = enable ? '1' : '0'
124
+ end
125
+
110
126
  # @return [Boolean] Whether vuln scanning in enabled.
111
127
  def vuln_scanning?
112
128
  gen = REXML::XPath.first(@xml, 'ScanTemplate/General')
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '0.8.12'
3
+ VERSION = '0.8.13'
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.8.12
4
+ version: 0.8.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore