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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: becf7bf731367ccaa6c025b97eadb318918429ca
4
- data.tar.gz: 4e41d347f9b2d733db1843e13d0ecd274945a80a
3
+ metadata.gz: 890a304f8a21729e9487cb8dd5851c3116433818
4
+ data.tar.gz: 26a2ec19c2f6a85cabc663081a0ac4f4c4c0480e
5
5
  SHA512:
6
- metadata.gz: 2baa76cc1f1d72f88d1ab1517f39eb36edb8dc07b05a939098fba6218dc131fd1aeadd89a4d51707e173b2e4252b0f6e4ef9330eaf7f6d660d00799663adcc68
7
- data.tar.gz: 49965e98c9f4fa76bc88d95907bfa2eecafa058efe3a7bc87e31f8f4c775235be25bd75e213855d2c24553b2fe6d6b03cc97100316f93504cbe6f81ffa0d73d8
6
+ metadata.gz: b29edf50e5d313314f66ddd58bc513dbe2822e79574e8af650136de8aa0ddfb792e9f97de4b7715e9dc5d46eeb3d0a515535f4ac9eb682c0ff7981d052000925
7
+ data.tar.gz: 63ec51988dca413a4046521d2ee24156792c13dea7049e6ad531aa65ecd11cbc8504e2cfc741d56a0c06efc99a525766d01f022353f1b6646fb7b11d8a6088d0
@@ -2074,16 +2074,16 @@ when 1024 # TARGET TAG
2074
2074
  end
2075
2075
  upp tag.search_criteria
2076
2076
 
2077
- # begin
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
- # 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
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
@@ -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["IN", "NOT_IN"]
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"]
@@ -1,3 +1,3 @@
1
1
  module Nexposecli
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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.1
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-14 00:00:00.000000000 Z
12
+ date: 2017-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nexpose