dradis-metasploit 4.10.0 → 4.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9c420c06ed67a602f80e1dac67b324a8008ed12dc1080c75f4bc4f0369e43e2
4
- data.tar.gz: bf8d118bf1e3e905c2200d7def6208f6c0d6c4e95a3a430347de757aacb498c1
3
+ metadata.gz: c750c49ae3a4bea93bf35ea7261e347caaa85a62efe81b571d0bdc226c1658a0
4
+ data.tar.gz: db3f3b63e93302c51d3fc8b0e63a7677179a3ad394ad716b0e64ec45eef6d7e5
5
5
  SHA512:
6
- metadata.gz: 2b3f4d8dad62e9301f10b4f582f40d0f7ceeb053d952383968235088a1fa24510778e2a99ff8809737e5220080ef2ec7a5bbf7096ef55d28d46b06e931bdf55c
7
- data.tar.gz: 296cd56a7bc319df4dc073d7a6eef19c04fdb43089608606e36e324735aab21e810c495ad67fc7f63852502b956536b3c36ac6978c634bee346937d2a5185e40
6
+ metadata.gz: 63c71070a21f023e1c414727c8bfb5dd2350dd0cfce82fd8c86011ba281abebddcf96a7ea4f5d32af23cb2c6436687956378707dc8857676415b435ced632b5a
7
+ data.tar.gz: ccb270da73e579db026e57e8ea8c549be004940cb5d834ffd5b5cd8c6564809a998e1583ddd4d5d24eb272eac2eca11ea623588cb53a859a453aa032629bcbfc
@@ -1,3 +1,5 @@
1
+ Please review [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md) and remove this line.
2
+
1
3
  ### Summary
2
4
 
3
5
  Provide a general description of the code changes in your pull
@@ -6,6 +8,11 @@ these bugs have open GitHub issues, be sure to tag them here as well,
6
8
  to keep the conversation linked together.
7
9
 
8
10
 
11
+ ### Testing Steps
12
+
13
+ Provide steps to test functionality, described in detail for someone not familiar with this part of the application / code base
14
+
15
+
9
16
  ### Other Information
10
17
 
11
18
  If there's anything else that's important and relevant to your pull
@@ -26,11 +33,13 @@ products, we must have the copyright associated with the entire
26
33
  codebase. Any code you create which is merged must be owned by us.
27
34
  That's not us trying to be a jerks, that's just the way it works.
28
35
 
29
- Please review the [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/master/CONTRIBUTING.md)
30
- file for the details.
31
-
32
36
  You can delete this section, but the following sentence needs to
33
37
  remain in the PR's description:
34
38
 
35
39
  > I assign all rights, including copyright, to any future Dradis
36
40
  > work by myself to Security Roots.
41
+
42
+ ### Check List
43
+
44
+ - [ ] Added a CHANGELOG entry
45
+ - [ ] Added specs
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ v4.12.0 (May 2024)
2
+ - Migrate integration to use Mappings Manager
3
+ - Update Dradis links in README
4
+ - Use the `os` Node property to match other plugins
5
+
6
+ v4.11.0 (January 2024)
7
+ - No changes
8
+
1
9
  v4.10.0 (September 2023)
2
10
  - Update gemspec links
3
11
 
data/README.md CHANGED
@@ -4,18 +4,18 @@
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://dradisframework.org/) > 3.0, or [Dradis Pro](https://dradisframework.com/pro/).
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
 
11
11
  ## More information
12
12
 
13
- See the Dradis Framework's [README.md](https://github.com/dradis/dradisframework/blob/master/README.md)
13
+ See the Dradis Framework's [README.md](https://github.com/dradis/dradis-ce/blob/develop/README.md)
14
14
 
15
15
 
16
16
  ## Contributing
17
17
 
18
- See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradisframework/blob/master/CONTRIBUTING.md)
18
+ See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md)
19
19
 
20
20
 
21
21
  ## License
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 10
11
+ MINOR = 12
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -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(:os_name, os_name.text)
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 = template_service.process_template(template: 'host_note', data: xml_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
@@ -7,5 +7,6 @@ end
7
7
 
8
8
  require 'dradis/plugins/metasploit/engine'
9
9
  require 'dradis/plugins/metasploit/field_processor'
10
+ require 'dradis/plugins/metasploit/mapping'
10
11
  require 'dradis/plugins/metasploit/importer'
11
12
  require 'dradis/plugins/metasploit/version'
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.10.0
4
+ version: 4.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Martin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -96,7 +96,7 @@ dependencies:
96
96
  version: 0.5.3
97
97
  description: This add-on allows you to upload and parse output produced from Metasploit
98
98
  Framework into Dradis.
99
- email:
99
+ email:
100
100
  executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
@@ -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,14 +127,12 @@ 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
135
134
  metadata: {}
136
- post_install_message:
135
+ post_install_message:
137
136
  rdoc_options: []
138
137
  require_paths:
139
138
  - lib
@@ -149,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
148
  version: '0'
150
149
  requirements: []
151
150
  rubygems_version: 3.1.4
152
- signing_key:
151
+ signing_key:
153
152
  specification_version: 4
154
153
  summary: Metasploit add-on for the Dradis Framework.
155
154
  test_files:
@@ -1,3 +0,0 @@
1
- host_note.id
2
- host_note.ntype
3
- host_note.data
@@ -1,8 +0,0 @@
1
- #[Title]#
2
- Note %host_note.id%
3
-
4
- #[Type]#
5
- %host_note.ntype%
6
-
7
- #[Data]#
8
- %host_note.data%