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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 152073eca0ca8a7293d6d2fccbcadcd18909ca00
4
- data.tar.gz: ddf8237ed5e6d9387f84e7ec74a5a8425bab3949
3
+ metadata.gz: 1c2d075dda69e44d4cc603f80886a948d3b58eaa
4
+ data.tar.gz: 33d27d7a4d4eb464afbf945454eafa41c79bd1a1
5
5
  SHA512:
6
- metadata.gz: f83c4eff46bcc2b9199f68ad0b631030dec0ff3dde574099d836b937fac6ee81fcafa455141580c574a2ea9a344b7738438afcda5e290afbf81743d91856f83f
7
- data.tar.gz: 699224f98c5e9a3d1876672b6fad84f30f534f4db3df235f55fd46a3ca65c3bb4444f24bf6eb8a03ab9b076069a648e4e23a74885d45ad6cc811167c6ddac95f
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
@@ -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
@@ -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']['scans']['scan']
36
+ resp['reply']['contents']
37
37
  end
38
38
  end
39
39
  end
@@ -1,4 +1,4 @@
1
1
  module Nessus
2
2
  # The version of the Nessus.rb library
3
- VERSION = '0.0.1.beta.2'
3
+ VERSION = '0.0.1.beta.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nessus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta.2
4
+ version: 0.0.1.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erran Carey