nessus 0.3.0 → 0.4.0

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: da26219bbf327395cb4829fff768192a636efa2d
4
- data.tar.gz: 23dc3fe7971f3d72c5a4c1532404b20ab0c1dcf5
3
+ metadata.gz: 18069b985edeb884ecee7b6fba8ae8aef0cd576a
4
+ data.tar.gz: 10c8bc027b1e75c4ee38fec689be9db47295e97c
5
5
  SHA512:
6
- metadata.gz: 867e8736cebdb0d7935fd7253a5eb364d1b67d5a520d639846dca210b8aecc9cca2beb14f5f29b519507c798c22866dae16979a0e4230d572d2eb6a024e11928
7
- data.tar.gz: 42cdc8218da8593041207b36f715564cd8ab2c575e9aabc8036a4b839f2a18826299b5e3c8af1e4ff7b66337a76d5e8c5e61e9f92f7642b49f8cc11aa84ec2b3
6
+ metadata.gz: 5c4b4ab35b53a9a10d3d48c1fe557cc46599992dc60579f64fff8851cd8441ff9bb9e82f50490f517ba4fa2795a94727500a276b0009edcb899dabce5de97b4c
7
+ data.tar.gz: 2a406d95162cee778f8980773ae64d62ac734c3083c33a28b8556d88adb9f4e32ac8cc6010da1077dfe1ad517c68f3c868f730c74525fe2d8af94b5e3feb3c25
@@ -11,17 +11,18 @@ module Nessus
11
11
  #
12
12
  # @return [Hash] the newly created scan object
13
13
 
14
- def scan_new(target, policy_id, scan_name, seq = nil)
14
+ def scan_new(target, policy_id, scan_name, seq = nil, description = nil)
15
15
  payload = {
16
- :target => target,
16
+ :custom_targets => target,
17
17
  :policy_id => policy_id,
18
- :scan_name => scan_name
18
+ :name => scan_name
19
19
  }
20
20
  payload[:seq] = seq if seq
21
+ payload[:description] = description if description
21
22
  response = post '/scan/new', payload
22
23
 
23
- if response['reply']['status'].eql? 'ERROR'
24
- raise Nessus::UnknownError, response['reply']['contents']
24
+ if response['error']
25
+ raise Nessus::UnknownError, response['error']
25
26
  end
26
27
 
27
28
  response['reply']['contents'] # ['scan']
@@ -64,8 +65,8 @@ module Nessus
64
65
  response = post '/scan/resume', :scan_uuid => scan_uuid
65
66
  response['reply']['contents']
66
67
  end
67
-
68
-
68
+
69
+
69
70
  # POST /scan/template/new
70
71
  #
71
72
  # @param [String] scan template name
@@ -90,6 +91,6 @@ module Nessus
90
91
 
91
92
  response['reply']['contents'] # ['scan']
92
93
  end
93
- end
94
+ end
94
95
  end
95
96
  end
@@ -1,4 +1,4 @@
1
1
  module Nessus
2
2
  # The version of the Nessus.rb library
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erran Carey
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-06 00:00:00.000000000 Z
12
+ date: 2014-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler