nessus 0.0.1.beta.2 → 0.0.1.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nessus/client.rb +14 -14
- data/lib/nessus/client/file.rb +2 -1
- data/lib/nessus/client/scan.rb +2 -2
- data/lib/nessus/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: 1c2d075dda69e44d4cc603f80886a948d3b58eaa
|
4
|
+
data.tar.gz: 33d27d7a4d4eb464afbf945454eafa41c79bd1a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64c28b7b1794a009b490dab3a5256a13b909c335781e435b7bb440cdac130ed3ee9ff618167a20f19cc87f78b5c3d0a12008642312587d950a18d4841aca66ac
|
7
|
+
data.tar.gz: 10421c1a9117a11f2b8329e6906736432df072212ae644e0e49a94478bbadc15397ab78480e7260ecbf416c7733f8f0ba410f6f5d624a226533271cdef6c2c0f
|
data/lib/nessus/client.rb
CHANGED
@@ -54,20 +54,20 @@ module Nessus
|
|
54
54
|
true
|
55
55
|
end
|
56
56
|
|
57
|
-
# @return [String] {#inspect}'s output with a censored session token
|
58
|
-
def inspect
|
59
|
-
inspected = super
|
60
|
-
|
61
|
-
if connection
|
62
|
-
cookie = CGI::Cookie.parse(connection.headers[:cookie])
|
63
|
-
|
64
|
-
if cookie.keys.include? 'token'
|
65
|
-
inspected.gsub cookie['token'], ('*' * cookie['token'].length)
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
inspected
|
70
|
-
end
|
57
|
+
# # @return [String] {#inspect}'s output with a censored session token
|
58
|
+
# def inspect
|
59
|
+
# inspected = super
|
60
|
+
#
|
61
|
+
# if connection
|
62
|
+
# cookie = CGI::Cookie.parse(connection.headers[:cookie])
|
63
|
+
#
|
64
|
+
# if cookie.keys.include? 'token'
|
65
|
+
# inspected.gsub cookie['token'].to_s, ('*' * cookie['token'].to_s.length)
|
66
|
+
# end
|
67
|
+
# end
|
68
|
+
#
|
69
|
+
# inspected
|
70
|
+
# end
|
71
71
|
|
72
72
|
# @param [String] url the URL/path to send a GET request using the
|
73
73
|
# connection object and default headers/parameters
|
data/lib/nessus/client/file.rb
CHANGED
@@ -7,7 +7,8 @@ module Nessus
|
|
7
7
|
# @param [String] uuid the unique ID (name) of the report to download
|
8
8
|
# @return [String] the specified report as an XML string
|
9
9
|
def download_report(uuid)
|
10
|
-
connection.get '/file/report/download', :report => uuid
|
10
|
+
resp = connection.get '/file/report/download', :report => uuid
|
11
|
+
resp.body
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|
data/lib/nessus/client/scan.rb
CHANGED
@@ -24,7 +24,7 @@ module Nessus
|
|
24
24
|
raise Nessus::UnknownError, resp['reply']['contents']
|
25
25
|
end
|
26
26
|
|
27
|
-
resp['reply']['contents']['scan']
|
27
|
+
resp['reply']['contents'] # ['scan']
|
28
28
|
end
|
29
29
|
|
30
30
|
# GET /scan/list
|
@@ -33,7 +33,7 @@ module Nessus
|
|
33
33
|
def scans
|
34
34
|
resp = get '/scan/list'
|
35
35
|
|
36
|
-
resp['reply']['contents']
|
36
|
+
resp['reply']['contents']
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
data/lib/nessus/version.rb
CHANGED