nexpose-magic 0.0.2 → 0.0.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README +1 -1
  3. data/bin/nexmagic.rb +8 -8
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46316b96692e942e08a24d91c67939017fbb9d8d
4
- data.tar.gz: ce6dcd7e2d17e5a8d0a52c9ddc1905a0261cd427
3
+ metadata.gz: bb70d3579545c2c04da43f5faf637ab18bfc0f06
4
+ data.tar.gz: 6fd699a3a9bba1d7fec86b59535ed8543f9c18a9
5
5
  SHA512:
6
- metadata.gz: 16b266ea56fae5da2e3e854fa897e306641aceff2ae4d81c371683d248085c833e22c659598c189a45d78a14f2379fb43ab3277175d11800502067ca06e3b0ac
7
- data.tar.gz: f08095961f428ce5ba66a8d19f75eb6f0573ff7becb3a26489abe95f1c4a10840fc566721ef6311b7737e3217ee79d4de3fe4d0c79edd5dd231260830863d323
6
+ metadata.gz: 7513acb61677e9a1530eb04f912c5f01732d22ea19c03b19b7ca10778bca4715ebc45fb28369a006e5937e07ec50b656124ba8804ce656154450c28310105bdd
7
+ data.tar.gz: 8a27bf018fae7d570f71149b25cbfe1529ddecf84942a36ed0b3c0df473420dd3cd83eb311fdf4ac254951891157de3c1d8b050b26a9f96c7890107d938e0157
data/README CHANGED
@@ -6,7 +6,7 @@ Required files:
6
6
  nexpose-magic.rb
7
7
  nexmagic.rb
8
8
 
9
- Nexpose Magic uses the arugments supplied by -u, -p, and -i to make the connection the the nexpose console
9
+ Nexpose Magic uses the arugments supplied by -u (--user), -p (--password), -i (--ip), -t (--port) to make the connection the the nexpose console. If no port is supplied, then the default nexpose port 3780 will be used.
10
10
 
11
11
  To display information about a specific scan engine:
12
12
  - nexmagic.rb -i 192.168.1.128 -u nexposeuser -p password -e [--engine] <engine ID>
data/bin/nexmagic.rb CHANGED
@@ -8,32 +8,32 @@ include Nexpose
8
8
  options = {}
9
9
 
10
10
  OptionParser.new do |opts|
11
- opts.banner = "Usage: nexpose-magic.rb -c [console] [options]"
11
+ opts.banner = "Usage: nexpose-magic.rb -i [console ip address] -u [user] -p [password] [ -t [port]] [ options ]"
12
12
 
13
13
  opts.separator ""
14
14
  opts.separator "Specific options:"
15
15
 
16
- opts.on('-i', "--ip <IP ADDRESS>", "Nexpose Console IP") do |i|
16
+ opts.on('-i', "--ip [ip address]", "Nexpose Console IP") do |i|
17
17
  options[:ip] = i
18
18
  end
19
19
 
20
- opts.on('-u', "--user <User>", "Nexpose Console User") do |u|
20
+ opts.on('-u', "--user [username]", "Nexpose Console User") do |u|
21
21
  options[:user] = u
22
22
  end
23
23
 
24
- opts.on('-p', "--password <Password>", "Nexpose Console Password") do |p|
24
+ opts.on('-p', "--password [password]", "Nexpose Console Password") do |p|
25
25
  options[:password] = p
26
26
  end
27
27
 
28
- opts.on('-t', "--port <Port Number>", "Nexpose Port Number") do |t|
28
+ opts.on('-t', "--port [port number]", "Nexpose Port Number") do |t|
29
29
  options[:port] = t
30
30
  end
31
31
 
32
- opts.on("-e", "--engine <Engine ID>", "Display Scan Engine Information") do |e|
32
+ opts.on("-e", "--engine [engine ID]", "Display Scan Engine Information") do |e|
33
33
  options[:scan_engine] = e
34
34
  end
35
35
 
36
- opts.on("-s", "--site <site ID>", "Display Site Information") do |s|
36
+ opts.on("-s", "--site [site ID]", "Display Site Information") do |s|
37
37
  options[:site] = s
38
38
  end
39
39
 
@@ -41,7 +41,7 @@ OptionParser.new do |opts|
41
41
  options[:scans] = v
42
42
  end
43
43
 
44
- opts.on("-l", "--list [sites] [engines]", "Display tabled list of all Nexpose Sites, or Scan Engines present on a console") do |l|
44
+ opts.on("-l", "--list [sites | engines]", "Display tabled list of all Nexpose Sites, or Scan Engines present on a console") do |l|
45
45
  options[:list] = l
46
46
  end
47
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexpose-magic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Spah
@@ -50,7 +50,8 @@ files:
50
50
  - lib/nexpose-magic.rb
51
51
  - nexposemagic.rspec
52
52
  homepage:
53
- licenses: []
53
+ licenses:
54
+ - MIT
54
55
  metadata: {}
55
56
  post_install_message:
56
57
  rdoc_options: []