nexpose 0.0.5 → 0.0.6
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.
- data/lib/nexpose.rb +3 -2
- data/nexpose.gemspec +1 -1
- data/nexpose.rb +3 -2
- metadata +6 -6
data/lib/nexpose.rb
CHANGED
|
@@ -117,6 +117,7 @@ class APIRequest
|
|
|
117
117
|
@url = url
|
|
118
118
|
@req = req
|
|
119
119
|
@api_version = api_version
|
|
120
|
+
@url = @url.sub('API_VERSION', @api_version)
|
|
120
121
|
prepare_http_client
|
|
121
122
|
end
|
|
122
123
|
|
|
@@ -970,7 +971,7 @@ class Connection
|
|
|
970
971
|
@silo_id = silo_id
|
|
971
972
|
@session_id = nil
|
|
972
973
|
@error = false
|
|
973
|
-
@url = "https://#{@host}:#{@port}/api/
|
|
974
|
+
@url = "https://#{@host}:#{@port}/api/API_VERSION/xml"
|
|
974
975
|
end
|
|
975
976
|
|
|
976
977
|
# Establish a new connection and Session ID
|
|
@@ -1002,7 +1003,7 @@ class Connection
|
|
|
1002
1003
|
# Execute an API request
|
|
1003
1004
|
def execute(xml, version = '1.1')
|
|
1004
1005
|
@api_version = version
|
|
1005
|
-
APIRequest.execute(@url
|
|
1006
|
+
APIRequest.execute(@url,xml.to_s, @api_version)
|
|
1006
1007
|
end
|
|
1007
1008
|
|
|
1008
1009
|
# Download a specific URL
|
data/nexpose.gemspec
CHANGED
data/nexpose.rb
CHANGED
|
@@ -117,6 +117,7 @@ class APIRequest
|
|
|
117
117
|
@url = url
|
|
118
118
|
@req = req
|
|
119
119
|
@api_version = api_version
|
|
120
|
+
@url = @url.sub('API_VERSION', @api_version)
|
|
120
121
|
prepare_http_client
|
|
121
122
|
end
|
|
122
123
|
|
|
@@ -970,7 +971,7 @@ class Connection
|
|
|
970
971
|
@silo_id = silo_id
|
|
971
972
|
@session_id = nil
|
|
972
973
|
@error = false
|
|
973
|
-
@url = "https://#{@host}:#{@port}/api/
|
|
974
|
+
@url = "https://#{@host}:#{@port}/api/API_VERSION/xml"
|
|
974
975
|
end
|
|
975
976
|
|
|
976
977
|
# Establish a new connection and Session ID
|
|
@@ -1002,7 +1003,7 @@ class Connection
|
|
|
1002
1003
|
# Execute an API request
|
|
1003
1004
|
def execute(xml, version = '1.1')
|
|
1004
1005
|
@api_version = version
|
|
1005
|
-
APIRequest.execute(@url
|
|
1006
|
+
APIRequest.execute(@url,xml.to_s, @api_version)
|
|
1006
1007
|
end
|
|
1007
1008
|
|
|
1008
1009
|
# Download a specific URL
|
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.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,12 +10,12 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2011-
|
|
13
|
+
date: 2011-11-01 00:00:00.000000000 -05:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: librex
|
|
18
|
-
requirement: &
|
|
18
|
+
requirement: &25372200 !ruby/object:Gem::Requirement
|
|
19
19
|
none: false
|
|
20
20
|
requirements:
|
|
21
21
|
- - ! '>='
|
|
@@ -23,10 +23,10 @@ dependencies:
|
|
|
23
23
|
version: 0.0.32
|
|
24
24
|
type: :runtime
|
|
25
25
|
prerelease: false
|
|
26
|
-
version_requirements: *
|
|
26
|
+
version_requirements: *25372200
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rex
|
|
29
|
-
requirement: &
|
|
29
|
+
requirement: &25371924 !ruby/object:Gem::Requirement
|
|
30
30
|
none: false
|
|
31
31
|
requirements:
|
|
32
32
|
- - ! '>='
|
|
@@ -34,7 +34,7 @@ dependencies:
|
|
|
34
34
|
version: 1.0.2
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
|
-
version_requirements: *
|
|
37
|
+
version_requirements: *25371924
|
|
38
38
|
description: This gem provides a Ruby API to the NeXpose vulnerability management
|
|
39
39
|
product by Rapid7. This version is based on Metasploit SVN revision 12878
|
|
40
40
|
email:
|