nexpose 0.7.1 → 0.7.2

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: a42c70664170fab14be9e4ae17903c81da5360ff
4
- data.tar.gz: 6938f2319a3f111f57384e07031b7fa88e69e7fa
3
+ metadata.gz: e01318657cc5e089ad7026420d75b3b20ef9babe
4
+ data.tar.gz: 9e0f1a624bcc6c6555156bfafe2a9c72c53857fa
5
5
  SHA512:
6
- metadata.gz: 717acb49d1c6b133d706fb17de051f03995176acc032e94a129ac4af50860acff3a616ca3af5e87879d075772690a7f30399ff93983a531e1f20f841bfff6d87
7
- data.tar.gz: 5b9c431a8f4c16b17e2decc10bcdd7039fbff6b142a8a3b52adc3875a99e3219d145c3c0a21a29d7288f26a20a7e9d194622e44e9265cce2797bc863a1272a44
6
+ metadata.gz: 7a6a3ce3125ea1ddc59cc42cbdaa6e07e1c328991e5c28efc67a5d33e4f73baa5a53a14cb588443585e2ecd618f4a50aaecb36790a7bbdfd604c7c752c531a48
7
+ data.tar.gz: 44096569c3c011159b5f3c88571c43d20ed87c6e9f4552347bf35989c8d4d9e48640e1ef02364143283f659f56eb1f43d6f6bb1b3a2c8bffd1c18e8d5438bd41
@@ -30,8 +30,8 @@ module Nexpose
30
30
  CONFIGURE_ALERTS = 'ConfigureAlerts'
31
31
  CONFIGURE_CREDENTIALS = 'ConfigureCredentials'
32
32
  CONFIGURE_ENGINES = 'ConfigureEngines'
33
- CONFIGURE_SCAN_TEMPLATES = 'ConfigureScanTemplates'
34
- CONFIGURE_SCHEDULE_SCANS = 'ConfigureScheduleScans'
33
+ CONFIGURE_SCAN_TEMPLATES = 'ConfigureScanTemplates'
34
+ CONFIGURE_SCHEDULE_SCANS = 'ConfigureScheduleScans'
35
35
  CONFIGURE_SITE_SETTINGS = 'ConfigureSiteSettings'
36
36
  CONFIGURE_TARGETS = 'ConfigureTargets'
37
37
  MANUAL_SCANS = 'ManualScans'
@@ -66,7 +66,7 @@ module Nexpose
66
66
  def role_delete(role, scope = Scope::SILO)
67
67
  xml = %Q(<RoleDeleteRequest session-id="#{@session_id}">)
68
68
  xml << %Q(<Role name="#{role}" scope="#{scope}"/>)
69
- xml << '</RoleDeleteRequest>'
69
+ xml << '</RoleDeleteRequest>'
70
70
  response = execute(xml, '1.2')
71
71
  response.success
72
72
  end
@@ -118,6 +118,7 @@ module Nexpose
118
118
 
119
119
  GLOBAL_ADMINISTRATOR = 'global-admin'
120
120
  ASSET_OWNER = 'system-admin'
121
+ CONTROLS_INSIGHT_ONLY = 'controls-insight-only'
121
122
  SECURITY_MANAGER = 'security-manager'
122
123
  SITE_OWNER = 'site-admin'
123
124
  USER = 'user'
@@ -131,7 +132,7 @@ module Nexpose
131
132
  # Flag determines behavior of #save method.
132
133
  attr_accessor :existing
133
134
 
134
- def initialize(name, full_name, id, enabled = true, scope = Scope::SILO)
135
+ def initialize(name, full_name, id = -1, enabled = true, scope = Scope::SILO)
135
136
  @name, @full_name, @id, @enabled, @scope = name, full_name, id, enabled, scope
136
137
  @privileges = []
137
138
  end
@@ -203,7 +204,7 @@ module Nexpose
203
204
  def delete(nsc)
204
205
  xml = %Q(<RoleDeleteRequest session-id="#{nsc.session_id}">)
205
206
  xml << %Q(<Role name="#{@name}" scope="#{@scope}"/>)
206
- xml << '</RoleDeleteRequest>'
207
+ xml << '</RoleDeleteRequest>'
207
208
  response = APIRequest.execute(nsc.url, xml, '1.2')
208
209
  response.success
209
210
  end
@@ -81,7 +81,7 @@ module Nexpose
81
81
 
82
82
  # user id, set to -1 to create a new user
83
83
  attr_reader :id
84
- # valid roles: global-admin|security-manager|site-admin|system-admin|user|custom
84
+ # valid roles: global-admin|security-manager|site-admin|system-admin|user|custom|controls-insight-only
85
85
  attr_accessor :role_name
86
86
  # Required fields
87
87
  attr_reader :name
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-10 00:00:00.000000000 Z
13
+ date: 2014-04-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: librex