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.
- checksums.yaml +4 -4
- data/README +1 -1
- data/bin/nexmagic.rb +8 -8
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb70d3579545c2c04da43f5faf637ab18bfc0f06
|
4
|
+
data.tar.gz: 6fd699a3a9bba1d7fec86b59535ed8543f9c18a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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 -
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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.
|
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: []
|