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 +4 -4
- data/.github/pull_request_template.md +12 -3
- data/CHANGELOG.md +8 -0
- data/README.md +3 -3
- 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 +7 -8
- 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
|
@@ -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
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://
|
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/
|
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/
|
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
|
@@ -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
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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:
|
data/templates/host_note.fields
DELETED