2014-10-20 12:52:07 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
2015-10-16 15:57:04 -05:00
|
|
|
RSpec.describe 'modules', :content do
|
2014-10-20 13:21:22 -05:00
|
|
|
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'
|
2014-10-20 13:31:12 -05:00
|
|
|
|
|
|
|
|
it_should_behave_like 'all modules with module type can be instantiated',
|
|
|
|
|
module_type: 'encoder',
|
|
|
|
|
modules_pathname: modules_pathname,
|
|
|
|
|
type_directory: 'encoders'
|
2014-10-20 13:32:55 -05:00
|
|
|
|
|
|
|
|
it_should_behave_like 'all modules with module type can be instantiated',
|
|
|
|
|
module_type: 'exploit',
|
|
|
|
|
modules_pathname: modules_pathname,
|
|
|
|
|
type_directory: 'exploits'
|
2014-10-20 13:35:57 -05:00
|
|
|
|
|
|
|
|
it_should_behave_like 'all modules with module type can be instantiated',
|
|
|
|
|
module_type: 'nop',
|
|
|
|
|
modules_pathname: modules_pathname,
|
|
|
|
|
type_directory: 'nops'
|
2014-10-20 13:42:21 -05:00
|
|
|
|
|
|
|
|
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 12:28:09 +01:00
|
|
|
it_should_behave_like 'all modules with module type can be instantiated',
|
|
|
|
|
module_type: 'payload',
|
|
|
|
|
modules_pathname: modules_pathname,
|
|
|
|
|
type_directory: 'payload'
|
|
|
|
|
end
|