dradis-metasploit 4.11.0 → 4.12.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 +5 -0
- data/README.md +1 -1
- data/lib/dradis/plugins/metasploit/gem_version.rb +1 -1
- data/lib/dradis/plugins/metasploit/importer.rb +2 -2
- data/lib/dradis/plugins/metasploit/mapping.rb +19 -0
- data/lib/dradis/plugins/metasploit.rb +1 -0
- metadata +4 -5
- data/templates/host_note.fields +0 -3
- data/templates/host_note.template +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c750c49ae3a4bea93bf35ea7261e347caaa85a62efe81b571d0bdc226c1658a0
|
4
|
+
data.tar.gz: db3f3b63e93302c51d3fc8b0e63a7677179a3ad394ad716b0e64ec45eef6d7e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63c71070a21f023e1c414727c8bfb5dd2350dd0cfce82fd8c86011ba281abebddcf96a7ea4f5d32af23cb2c6436687956378707dc8857676415b435ced632b5a
|
7
|
+
data.tar.gz: ccb270da73e579db026e57e8ea8c549be004940cb5d834ffd5b5cd8c6564809a998e1583ddd4d5d24eb272eac2eca11ea623588cb53a859a453aa032629bcbfc
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
The Metasploit add-on enables users to upload Metasploit XML files to create a structure of nodes/notes that contain the same information about the hosts/ports/services as the original file.
|
6
6
|
|
7
|
-
The add-on requires [Dradis CE](https://
|
7
|
+
The add-on requires [Dradis CE](https://dradis.com/ce/) > 3.0, or [Dradis Pro](https://dradis.com/).
|
8
8
|
|
9
9
|
|
10
10
|
|
@@ -68,7 +68,7 @@ module Dradis::Plugins::Metasploit
|
|
68
68
|
end
|
69
69
|
|
70
70
|
if os_name = xml_host.at_xpath('os-name')
|
71
|
-
host_node.set_property(:
|
71
|
+
host_node.set_property(:os, os_name.text)
|
72
72
|
end
|
73
73
|
|
74
74
|
# Service-related properties
|
@@ -94,7 +94,7 @@ module Dradis::Plugins::Metasploit
|
|
94
94
|
end
|
95
95
|
|
96
96
|
xml_host.xpath('notes/note').each do |xml_note|
|
97
|
-
host_note =
|
97
|
+
host_note = mapping_service.apply_mapping(source: 'host_note', data: xml_note)
|
98
98
|
content_service.create_note(text: host_note, node: host_node)
|
99
99
|
end
|
100
100
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Dradis::Plugins::Metasploit
|
2
|
+
module Mapping
|
3
|
+
DEFAULT_MAPPING = {
|
4
|
+
host_note: {
|
5
|
+
'Title' => 'Note {{ metasploit[host_note.id] }}',
|
6
|
+
'Type' => '{{ metasploit[host_note.ntype] }}',
|
7
|
+
'Data' => '{{ metasploit[host_note.data] }}'
|
8
|
+
}
|
9
|
+
}.freeze
|
10
|
+
|
11
|
+
SOURCE_FIELDS = {
|
12
|
+
host_note: [
|
13
|
+
'host_note.id',
|
14
|
+
'host_note.ntype',
|
15
|
+
'host_note.data'
|
16
|
+
]
|
17
|
+
}.freeze
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-metasploit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.12.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: 2024-
|
11
|
+
date: 2024-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -119,6 +119,7 @@ files:
|
|
119
119
|
- lib/dradis/plugins/metasploit/field_processor.rb
|
120
120
|
- lib/dradis/plugins/metasploit/gem_version.rb
|
121
121
|
- lib/dradis/plugins/metasploit/importer.rb
|
122
|
+
- lib/dradis/plugins/metasploit/mapping.rb
|
122
123
|
- lib/dradis/plugins/metasploit/version.rb
|
123
124
|
- lib/tasks/thorfile.rb
|
124
125
|
- spec/dradis/plugins/metasploit/importer_spec.rb
|
@@ -126,9 +127,7 @@ files:
|
|
126
127
|
- spec/fixtures/files/msf5.xml
|
127
128
|
- spec/fixtures/files/qualys.xml
|
128
129
|
- spec/spec_helper.rb
|
129
|
-
- templates/host_note.fields
|
130
130
|
- templates/host_note.sample
|
131
|
-
- templates/host_note.template
|
132
131
|
homepage: https://dradis.com/integrations/metasploit.html
|
133
132
|
licenses:
|
134
133
|
- GPL-2
|
@@ -148,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
147
|
- !ruby/object:Gem::Version
|
149
148
|
version: '0'
|
150
149
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
150
|
+
rubygems_version: 3.1.4
|
152
151
|
signing_key:
|
153
152
|
specification_version: 4
|
154
153
|
summary: Metasploit add-on for the Dradis Framework.
|
data/templates/host_note.fields
DELETED