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 +4 -4
- data/lib/nessus/client/scan.rb +9 -8
- data/lib/nessus/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: 18069b985edeb884ecee7b6fba8ae8aef0cd576a
|
4
|
+
data.tar.gz: 10c8bc027b1e75c4ee38fec689be9db47295e97c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c4b4ab35b53a9a10d3d48c1fe557cc46599992dc60579f64fff8851cd8441ff9bb9e82f50490f517ba4fa2795a94727500a276b0009edcb899dabce5de97b4c
|
7
|
+
data.tar.gz: 2a406d95162cee778f8980773ae64d62ac734c3083c33a28b8556d88adb9f4e32ac8cc6010da1077dfe1ad517c68f3c868f730c74525fe2d8af94b5e3feb3c25
|
data/lib/nessus/client/scan.rb
CHANGED
@@ -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
|
-
:
|
16
|
+
:custom_targets => target,
|
17
17
|
:policy_id => policy_id,
|
18
|
-
:
|
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['
|
24
|
-
raise Nessus::UnknownError, response['
|
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
|
-
|
94
|
+
end
|
94
95
|
end
|
95
96
|
end
|
data/lib/nessus/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2014-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|