Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/modules_spec.rb
21463 views
1
require 'spec_helper'
2
3
RSpec.describe 'modules', :content do
4
modules_pathname = Pathname.new(__FILE__).parent.parent.join('modules')
5
6
it_should_behave_like 'all modules with module type can be instantiated',
7
module_type: 'auxiliary',
8
modules_pathname: modules_pathname,
9
type_directory: 'auxiliary'
10
11
it_should_behave_like 'all modules with module type can be instantiated',
12
module_type: 'encoder',
13
modules_pathname: modules_pathname,
14
type_directory: 'encoders'
15
16
it_should_behave_like 'all modules with module type can be instantiated',
17
module_type: 'exploit',
18
modules_pathname: modules_pathname,
19
type_directory: 'exploits'
20
21
it_should_behave_like 'all modules with module type can be instantiated',
22
module_type: 'evasion',
23
modules_pathname: modules_pathname,
24
type_directory: 'evasion'
25
26
it_should_behave_like 'all modules with module type can be instantiated',
27
module_type: 'nop',
28
modules_pathname: modules_pathname,
29
type_directory: 'nops'
30
31
it_should_behave_like 'all modules with module type can be instantiated',
32
module_type: 'payload',
33
modules_pathname: modules_pathname,
34
type_directory: 'payload'
35
36
it_should_behave_like 'all modules with module type can be instantiated',
37
module_type: 'post',
38
modules_pathname: modules_pathname,
39
type_directory: 'post'
40
end
41
42