nexpose 2.0.0 → 2.0.1

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: dda16614a7c92bd849c6706d4cffb1273bd1ee23
4
- data.tar.gz: 0ead05096d3c51477afe8ade37212f5800ae70dc
3
+ metadata.gz: 78f3af2be1072128057f74cf509d7016e2c1334d
4
+ data.tar.gz: ab819045a5ddaacbdf6f15e1fffb9fbade682716
5
5
  SHA512:
6
- metadata.gz: 4364d638e9c5619e15cc1b5db71864543230b292e136a047762acfc3f1de38e46372c2269ab81f4b4c318a85b11524632dd79ede786b22a765d1ff90c6bef66d
7
- data.tar.gz: b0e835bfb6abcdf65deccff6888aa52921b526580d28c9e0c1f04108f4e34024363c1c3db2c812ea62535865e280acecf1c13aff3915a6829dc3cb191d296391
6
+ metadata.gz: 705d5bdb099b7e921ff757dfec7b1b4f76e654089d0077fce53072391c0f087e892c9488e29d072aa0158aa470ae9c39c800df5f77fffec241bdf8dd9a6f8bce
7
+ data.tar.gz: b6db15181967c1fb67a6fd8e9da90eb29c7649f192b38f564043927a4bcb1be9d78d6f699e688892ed948ece0a3674456ac8fb958801f6b53329f53ac8bb0348
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexpose (2.0.0)
4
+ nexpose (1.0.0)
5
5
  rex (~> 2.0, >= 2.0.8)
6
6
 
7
7
  GEM
@@ -17,7 +17,7 @@ GEM
17
17
  safe_yaml (~> 1.0.0)
18
18
  diff-lcs (1.2.5)
19
19
  docile (1.1.5)
20
- multi_json (1.10.1)
20
+ multi_json (1.11.0)
21
21
  parser (2.2.0.3)
22
22
  ast (>= 1.1, < 3.0)
23
23
  powerpack (0.1.0)
@@ -27,7 +27,7 @@ GEM
27
27
  rspec-core (~> 3.2.0)
28
28
  rspec-expectations (~> 3.2.0)
29
29
  rspec-mocks (~> 3.2.0)
30
- rspec-core (3.2.1)
30
+ rspec-core (3.2.2)
31
31
  rspec-support (~> 3.2.0)
32
32
  rspec-expectations (3.2.0)
33
33
  diff-lcs (>= 1.2.0, < 2.0)
@@ -100,7 +100,7 @@ module Nexpose
100
100
  end
101
101
  @port = Credential::DEFAULT_PORTS[@service] if @port.nil?
102
102
  parameters = _to_param(target, engine_id, @port, siteid)
103
- xml = AJAX.form_post(nsc, '/ajax/test_admin_credentials.txml', parameters)
103
+ xml = AJAX.form_post(nsc, '/data/credential/shared/test', parameters)
104
104
  result = REXML::XPath.first(REXML::Document.new(xml), 'TestAdminCredentialsResult')
105
105
  result.attributes['success'].to_i == 1
106
106
  end
@@ -7,7 +7,7 @@ module Nexpose
7
7
  # @return [Array[Backup]] List of backups.
8
8
  #
9
9
  def list_backups
10
- data = DataTable._get_dyn_table(self, '/admin/global/ajax/backup_listing.txml')
10
+ data = DataTable._get_dyn_table(self, '/data/admin/backups')
11
11
  data.map { |b| Backup.parse(b) }
12
12
  end
13
13
 
@@ -26,7 +26,7 @@ module Nexpose
26
26
  'cmd' => 'backup',
27
27
  'platform_independent' => platform_independent,
28
28
  'targetTask' => 'backupRestore' }
29
- xml = AJAX.form_post(self, '/admin/global/maintenance/maintCmd.txml', parameters)
29
+ xml = AJAX.form_post(self, '/data/maintenance/command', parameters)
30
30
  if !!(xml =~ /succeded="true"/)
31
31
  _maintenance_restart
32
32
  end
@@ -51,7 +51,7 @@ module Nexpose
51
51
  parameters['cleanup'] = 1 if clean_up
52
52
  parameters['compress'] = 1 if compress
53
53
  parameters['reindex'] = 1 if reindex
54
- xml = AJAX.form_post(self, '/admin/global/maintenance/maintCmd.txml', parameters)
54
+ xml = AJAX.form_post(self, '/data/maintenance/command', parameters)
55
55
  if !!(xml =~ /succeded="true"/)
56
56
  _maintenance_restart
57
57
  end
@@ -61,7 +61,7 @@ module Nexpose
61
61
  parameters = { 'cancelAllTasks' => false,
62
62
  'cmd' => 'restartServer',
63
63
  'targetTask' => 'maintModeHandler' }
64
- xml = AJAX.form_post(self, '/admin/global/maintenance/maintCmd.txml', parameters)
64
+ xml = AJAX.form_post(self, '/data/maintenanceMode/command', parameters)
65
65
  !!(xml =~ /succeded="true"/)
66
66
  end
67
67
  end
@@ -103,7 +103,7 @@ module Nexpose
103
103
  parameters = { 'backupid' => @name,
104
104
  'cmd' => 'restore',
105
105
  'targetTask' => 'backupRestore' }
106
- xml = AJAX.form_post(nsc, '/admin/global/maintenance/maintCmd.txml', parameters)
106
+ xml = AJAX.form_post(nsc, '/data/maintenance/command', parameters)
107
107
  if !!(xml =~ /succeded="true"/)
108
108
  nsc._maintenance_restart
109
109
  end
@@ -118,7 +118,7 @@ module Nexpose
118
118
  parameters = { 'backupid' => @name,
119
119
  'cmd' => 'deleteBackup',
120
120
  'targetTask' => 'backupRestore' }
121
- xml = AJAX.form_post(nsc, '/admin/global/maintenance/maintCmd.txml', parameters)
121
+ xml = AJAX.form_post(nsc, '/data/maintenance/command', parameters)
122
122
  !!(xml =~ /succeded="true"/)
123
123
  end
124
124
 
@@ -692,14 +692,15 @@ module Nexpose
692
692
  # returned by a #scan_status call.
693
693
  #
694
694
  module Status
695
- RUNNING = 'running'
696
- FINISHED = 'finished'
697
- ABORTED = 'aborted'
698
- STOPPED = 'stopped'
699
- ERROR = 'error'
700
- PAUSED = 'paused'
701
- DISPATCHED = 'dispatched'
702
- UNKNOWN = 'unknown'
695
+ RUNNING = 'running'
696
+ FINISHED = 'finished'
697
+ ABORTED = 'aborted'
698
+ STOPPED = 'stopped'
699
+ ERROR = 'error'
700
+ PAUSED = 'paused'
701
+ DISPATCHED = 'dispatched'
702
+ UNKNOWN = 'unknown'
703
+ INTEGRATING = 'integrating'
703
704
  end
704
705
  end
705
706
 
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
Binary file
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: 2.0.0
4
+ version: 2.0.1
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-07-29 00:00:00.000000000 Z
16
+ date: 2015-08-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rex
@@ -205,6 +205,7 @@ files:
205
205
  - lib/nexpose/vuln_exception.rb
206
206
  - lib/nexpose/wait.rb
207
207
  - lib/nexpose/web_credentials.rb
208
+ - nexpose-1.2.1.gem
208
209
  - nexpose.gemspec
209
210
  homepage: https://github.com/rapid7/nexpose-client
210
211
  licenses:
@@ -231,3 +232,4 @@ signing_key:
231
232
  specification_version: 4
232
233
  summary: Ruby API for Rapid7 Nexpose
233
234
  test_files: []
235
+ has_rdoc: