metasploit-framework/spec/modules_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.5 KiB
Ruby
Raw Permalink Normal View History

require 'spec_helper'
RSpec.describe 'modules', :content do
modules_pathname = Pathname.new(__FILE__).parent.parent.join('modules')
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'auxiliary',
modules_pathname: modules_pathname,
type_directory: 'auxiliary'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'encoder',
modules_pathname: modules_pathname,
type_directory: 'encoders'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'exploit',
modules_pathname: modules_pathname,
type_directory: 'exploits'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'nop',
modules_pathname: modules_pathname,
type_directory: 'nops'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'post',
modules_pathname: modules_pathname,
type_directory: 'posts'
2023-03-28 19:28:09 +08:00
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'payload',
modules_pathname: modules_pathname,
type_directory: 'payload'
end