nexposecli 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/nexposecli +5 -3
- 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: 2756413bcba67c3b8323e9c8252cd9b918ccd526
|
|
4
|
+
data.tar.gz: 7de177ac086c322317a0c0f18e68b5feaf2b3e47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0db13707710d525c2716d591d1edb2ccf526e54cf058cd15b2e3fb4c5f1408ab5b7c315fc912628e19b03828ce3a3de7552f1ca7987e2eb0dc178ac1d412d3b7
|
|
7
|
+
data.tar.gz: e907fb6448f7d12a98771aae1531b273e8e7de2e0d3eb31ac30d25d2c25c05e310a7dcd70af926c78d1a2380f21a413a65d7af6fb692d672ca4c0d0db73723b1
|
data/bin/nexposecli
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
2
|
##############################################################################
|
|
3
3
|
#
|
|
4
4
|
# File: nexposecli
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
#
|
|
20
20
|
##############################################################################
|
|
21
21
|
require 'rubygems'
|
|
22
|
+
require 'io/console'
|
|
22
23
|
require 'nexpose'
|
|
23
24
|
require 'nexposecli'
|
|
24
25
|
require 'socket'
|
|
@@ -110,8 +111,9 @@ def read_config(conf)
|
|
|
110
111
|
config = YAML.load_file(conf)
|
|
111
112
|
|
|
112
113
|
@nsc_server = config["config"]["server"]
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
if config["config"].key?("port")
|
|
115
|
+
@nsc_port = config["config"]["port"]
|
|
116
|
+
else
|
|
115
117
|
@nsc_port = $nxport
|
|
116
118
|
end
|
|
117
119
|
@nsc_user = config["config"]["user"]
|
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.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Erik Gomez
|
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
162
162
|
version: '0'
|
|
163
163
|
requirements: []
|
|
164
164
|
rubyforge_project:
|
|
165
|
-
rubygems_version: 2.6.
|
|
165
|
+
rubygems_version: 2.6.8
|
|
166
166
|
signing_key:
|
|
167
167
|
specification_version: 4
|
|
168
168
|
summary: Ruby command-line utility for Rapid7 Nexpose
|