File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ def sort_platform_string(string)
3434 string.split(',').each(&:strip!).sort.join(',')
3535end
3636
37+ # Mixins that can be filtered as they're not interesting
38+ common_mixins = (
39+ Msf::Exploit.ancestors +
40+ Msf::Auxiliary.ancestors +
41+ Msf::Post.ancestors
42+ ).map(&:to_s).uniq
43+
3744_, total_time = record_time do
3845 STDERR.puts 'Extracting module paths'
3946 module_paths, module_paths_timing = record_time { framework.modules.to_a }
@@ -71,6 +78,7 @@ _, total_time = record_time do
7178 references: mod.references.map { |ref| { 'type' => ref.ctx_id, 'value' => ref.ctx_val, 'site' => ref.site } },
7279 platform: sort_platform_string(mod.platform_to_s),
7380 arch: mod.arch_to_s,
81+ mixins: mod.class.ancestors.map(&:to_s) - common_mixins - [mod.class.to_s],
7482 autofilter_ports: (
7583 mod.respond_to?(:autofilter_ports) ? mod.autofilter_ports : nil
7684 ),
You can’t perform that action at this time.
0 commit comments