PenetrationTestingScripts/antSword/source/core/index.js

26 lines
480 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* 中国蚁剑::核心模块
* 开写2016/04/12
* 更新:-
* 作者:蚁逅 <https://github.com/antoor>
*/
'use strict';
class Core {
/**
* AntSword Core init
* @return {object} 子模块操作对象
*/
constructor() {
// 加载子模块列表
let cores = {};
['php', 'asp', 'aspx', 'custom'].map((_) => {
cores[_] = require(`./${_}/index`);
});
// 返回子模块对象
return cores;
}
}
module.exports = new Core();