nexposecli 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/nexposecli +5 -5
- data/lib/nexposecli/ops.rb +1 -1
- data/lib/nexposecli/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: 890a304f8a21729e9487cb8dd5851c3116433818
|
4
|
+
data.tar.gz: 26a2ec19c2f6a85cabc663081a0ac4f4c4c0480e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b29edf50e5d313314f66ddd58bc513dbe2822e79574e8af650136de8aa0ddfb792e9f97de4b7715e9dc5d46eeb3d0a515535f4ac9eb682c0ff7981d052000925
|
7
|
+
data.tar.gz: 63ec51988dca413a4046521d2ee24156792c13dea7049e6ad531aa65ecd11cbc8504e2cfc741d56a0c06efc99a525766d01f022353f1b6646fb7b11d8a6088d0
|
data/bin/nexposecli
CHANGED
@@ -2074,16 +2074,16 @@ when 1024 # TARGET TAG
|
|
2074
2074
|
end
|
2075
2075
|
upp tag.search_criteria
|
2076
2076
|
|
2077
|
-
|
2077
|
+
begin
|
2078
2078
|
if tag.save(@nsc)
|
2079
2079
|
puts "Tag was successfully created/updated - id: #{tag.id.to_s.ljust(10)} name: \"#{tag.name.to_s}\""
|
2080
2080
|
else
|
2081
2081
|
puts "Tag create/update failed - name: \"#{tag.name.to_s}\""
|
2082
2082
|
end
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2083
|
+
rescue Nexpose::APIError => e
|
2084
|
+
uputs("TAG", "An error occurred while attempting to save the Tag: #{e.to_s}")
|
2085
|
+
STDERR.puts "ERROR [ " + e.to_s + " ]"
|
2086
|
+
end
|
2087
2087
|
upp tag
|
2088
2088
|
|
2089
2089
|
# End of TAG list loop
|
data/lib/nexposecli/ops.rb
CHANGED
@@ -3,7 +3,7 @@ require 'set'
|
|
3
3
|
module Nexposecli
|
4
4
|
# Allowed Search and Filter Operators by field, in Set form
|
5
5
|
CVSS_SCORE_OPS = Set["IS", "IS_NOT", "IN_RANGE", "GREATER_THAN", "LESS_THAN"]
|
6
|
-
IP_RANGE_OPS = Set["
|
6
|
+
IP_RANGE_OPS = Set["IN_RANGE", "NOT_IN"]
|
7
7
|
OS_OPS = Set["CONTAINS", "NOT_CONTAINS", "IS_EMPTY", "IS_NOT_EMPTY"]
|
8
8
|
RISK_SCORE_OPS = Set["IS", "IS_NOT", "IN_RANGE", "GREATER_THAN", "LESS_THAN"]
|
9
9
|
SITE_ID_OPS = Set["IN", "NOT_IN"]
|
data/lib/nexposecli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexposecli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Gomez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-06-
|
12
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nexpose
|