nexpose 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nexpose/console.rb +2 -2
- data/lib/nexpose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6135181a3541c32569d8ea7606ba0685dd5fa3c7
|
4
|
+
data.tar.gz: 494ff896cb0366bd74b3470414c223d21d1e13a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61168a8c11c370094a44b55c96b52a2009150abeca7b0ca83fb75da0beec11f72f2e8ce864f139a34397913f1cc661745dd1fe4d40f01dea22f342dc8d3de122
|
7
|
+
data.tar.gz: d3e0177cdd6aa5db81dd299657fca8dfe863908f99b2c87455cdd3824ead7dd1d18d1b6dfb6dde6794a6df27cfb63679bdaf0cd03e7fc630e16d5159c6c14d13
|
data/Gemfile.lock
CHANGED
data/lib/nexpose/console.rb
CHANGED
@@ -46,7 +46,7 @@ module Nexpose
|
|
46
46
|
# @param [Connection] connection Nexpose connection.
|
47
47
|
#
|
48
48
|
def self.load(connection)
|
49
|
-
xml = REXML::Document.new(Nexpose::AJAX.get(connection, '/
|
49
|
+
xml = REXML::Document.new(Nexpose::AJAX.get(connection, '/data/admin/config/nsc'))
|
50
50
|
new(xml)
|
51
51
|
end
|
52
52
|
|
@@ -63,7 +63,7 @@ module Nexpose
|
|
63
63
|
web_server = REXML::XPath.first(nsc, 'WebServer')
|
64
64
|
web_server.attributes['sessionTimeout'] = @session_timeout.to_i
|
65
65
|
|
66
|
-
response = REXML::Document.new(Nexpose::AJAX.post(connection, '/
|
66
|
+
response = REXML::Document.new(Nexpose::AJAX.post(connection, '/data/admin/config/nsc', @xml))
|
67
67
|
saved = REXML::XPath.first(response, 'SaveConfig')
|
68
68
|
saved.attributes['success'] == '1'
|
69
69
|
end
|
data/lib/nexpose/version.rb
CHANGED
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.1.
|
4
|
+
version: 2.1.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-10-
|
16
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rex
|