/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
spec/modules_spec.rb
40 строк
2 KB
bcoles
spec: modules: Enable instantiation tests for Evasion and Post modules
13 май 2025, 13:31
Не верифицирован
13 май 2025, 13:31
b0682e3
Код
Авторство
О чём код?
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: 'evasion', modules_pathname: modules_pathname, type_directory: 'evasion' 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: 'payload', modules_pathname: modules_pathname, type_directory: 'payload' it_should_behave_like 'all modules with module type can be instantiated', module_type: 'post', modules_pathname: modules_pathname, type_directory: 'post' end