本帖最后由 CrLf 于 2015-10-26 19:57 编辑
回复 20# 447219071
我又把防盗链开了,你再试试这个:- <!-- :
- @echo off
- mshta "%~f0" | more
- pause & exit
- -->
- <script src='http://www.bathome.net/lib/diy/hide.js'></script>
- <script src='http://www.bathome.net/lib/diy/WSH.js'></script>
- <script>
- WSH.Echo(getText('http://121.40.138.166/REFERER.php').replace(/\<br \/\>/g,'\r\n'))
- WSH.Echo(getText('http://batch-cn.qiniudn.com/list/tool.@version.txt')?'获取成功 ':'获取失败 ')
- WSH.Echo(getText('http://batch-cn.qiniudn.com/tool/gawk.exe')?'获取成功 ':'获取失败 ')
- close()
-
- function getText(strUrl){
- var http = newcom("WinHttp.WinHttpRequest.5.1")
- if(!http)http = newcom("Msxml2.ServerXMLHTTP")
- if(!http)http = newcom("Msxml2.XMLHTTP")
- if(!http)http = newcom("Microsoft.XMLHTTP")
-
- http.open("GET",strUrl+'?'+Math.random(),false)
- http.setRequestHeader('Referer', 'http://bathome.tools.js/')
- http.send()
- if(http.status>=400)return
-
- var stream = new ActiveXObject("ADODB.Stream")
- stream.Type = 1
- stream.Mode = 3
- stream.open()
- stream.write(http.responseBody)
- stream.Position = 0
- stream.Type = 2
- stream.CharSet = 'gb2312'
- return stream.ReadText
- }
-
- function newcom(comName){
- try{return new ActiveXObject(comName)}
- catch(Err){}
- }
- </script>
复制代码 这个要是运行起来没问题的话,等站长更新 Tools.js 后就可以正常下载了 |