nexpose 0.8.12 → 0.8.13
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 +4 -4
- data/lib/nexpose/scan_template.rb +16 -0
- data/lib/nexpose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 474e57f4bb98a4b99c7645607ea2494d7c00c81a
|
4
|
+
data.tar.gz: 14c8333c379fa2a222aedfe8378ad2720ed0891e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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')
|
data/lib/nexpose/version.rb
CHANGED