2014-10-21 01:52:07 +08:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2015-10-17 04:57:04 +08:00
|
|
|
RSpec.describe 'modules', :content do
|
2014-10-21 02:21:22 +08: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-21 02:31:12 +08: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-21 02:32:55 +08: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-21 02:35:57 +08: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-21 02:42:21 +08: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 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
|