dradis-nmap 3.9.0 → 3.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dradis/plugins/nmap/gem_version.rb +1 -1
- data/lib/dradis/plugins/nmap/importer.rb +17 -12
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b86146a650b6a34609cb267a6c5d8e089f2263f9
|
4
|
+
data.tar.gz: b6d42353ddecfc904ebf0cf67860f61250f140e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01c6226cada0034ab53f352c079d6b020428273db580d3a451866934d9ae9da89caa9f2b371997b8f74052844f7e8353894edda9a355344a0fd42629f5437d6b
|
7
|
+
data.tar.gz: c771b2ff0081f368f41ba6d64939451f600e468fbf3118270a0ea4b9b8d8a8087d135b3376b2d4205429a3504a0690ebe3fbc9dd35c7dacbace54c53089d2f16
|
data/CHANGELOG.md
CHANGED
@@ -41,19 +41,24 @@ module Dradis::Plugins::Nmap
|
|
41
41
|
content_service.create_note(text: host_text, node: host_node)
|
42
42
|
|
43
43
|
host.each_port do |port|
|
44
|
-
logger.info{ "\tNew port: #{
|
44
|
+
logger.info { "\tNew port: #{port.number}/#{port.protocol}" }
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
46
|
+
service = {
|
47
|
+
port: port.number,
|
48
|
+
protocol: port.protocol.to_s,
|
49
|
+
state: port.state.to_s,
|
50
|
+
reason: port.reason,
|
51
|
+
name: port.try(:service).try(:name),
|
52
|
+
product: port.try(:service).try(:product),
|
53
|
+
version: port.try(:service).try(:version),
|
54
|
+
source: :nmap,
|
55
|
+
}
|
56
|
+
|
57
|
+
# Node#set_service will store these under
|
58
|
+
# Node#properties[:service_extras]:
|
59
|
+
port.scripts.each { |k, v| service[k] = v } if port.try(:scripts)
|
60
|
+
|
61
|
+
host_node.set_service(service)
|
57
62
|
|
58
63
|
# HACK: patch in a `host` method to `Nmap::Port`
|
59
64
|
# so we can use it in the template:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-nmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.6.8
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Nmap add-on for the Dradis Framework.
|