足球游戏_中国足彩网¥体育资讯$

用来猜后台的HTA小程序
来源:易贤网 阅读:802 次 日期:2014-08-12 16:05:29
温馨提示:易贤网小编为您整理了“用来猜后台的HTA小程序”,方便广大网友查阅!

代码如下:

<input type=text id=http size=28 style="color:888888" value="http://www.haiyangtop.net">

<input type=button onclick=vbs:isExist(http.value) value="检测url是否存在" style="color:888888">

<div id="t"></div>

<script language=vbs>

function isExist(url)

dic="c:\dic.dic"

Set fso = CreateObject("Scripting.FileSystemObject")

set zidian=fso.OpenTextFile(dic,1,False)

Do While zidian.AtEndOfStream <> true

path=zidian.readline

set xmlhttp = CreateObject("Microsoft.XMLHTTP")

       xmlhttp.open "GET",http.value+path,false

       xmlhttp.send

       t.innerHTML = t.innerHTML&url&path&"--------"&xmlhttp.status&"<br>"

       loop

End Function

</script>

JS版写法:

如果换js,要将第二行的“onclick=vbs:isExist(http.value)”里的"vbs:"去掉

代码如下:

<script>

function isExist(url)

{

var myObject = new Object();

myObject.lcx1 = "/admin/index.asp";

myObject.lcx2 = "/safety";

myObject.lcx3 = "/safetyx";

for (lcx in myObject)

{

xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")

xmlhttp.open("GET",http.value+myObject[lcx],false)

xmlhttp.send()

if(xmlhttp.status==200)

t.innerHTML += url+myObject[lcx]+"存在<br>";

else

t.innerHTML+= url+myObject[lcx]+"不存在<br>";

}

}

</script>

字典放在页面里的写法vbscript版:

代码如下:

<script language=vbs>

function isExist(url)

Dim d  

       Set d = CreateObject("Scripting.Dictionary")

       d.Add "a","/admin/index.asp"

       d.Add "b", "/safety"

       d.Add "c", "/safetyx"

       a = d.Keys

       For i = 0 To d.Count -1 ' 遍历数组。

       set xmlhttp = CreateObject("Microsoft.XMLHTTP")

       xmlhttp.open "GET",http.value+d.Item(a(i)),false

       xmlhttp.send

       if xmlhttp.status=200 then

       t.innerHTML = t.innerHTML+url+d.Item(a(i))+"存在<br>"

       else

       t.innerHTML = t.innerHTML+url+d.Item(a(i))+"不存在<br>"

       end if

       Next

       end function

</script>

代码如下:

<input type=text id=http size=28 style="color:888888" value="http://www.haiyangtop.net">

<input type=button onclick=isExist(http.value) value="打开字典进行猜解" style="color:888888">

<div id="t"></div>

<script language=vbs>

function isExist(url)

set objFile = CreateObject("SAFRCFileDlg.FileOpen")

intRet = objFile.OpenFileOpenDlg

if intret then

dic= objFile.filename

end if

if dic<>"" then

Set fso = CreateObject("Scripting.FileSystemObject")

set zidian=fso.OpenTextFile(dic,1,False)

If 2 = MsgBox( "字典为:" & objFile.filename & vbCrLf & " 您确定吗?", 32 + 1, "请确认" ) Then isExist(http.value)

Do While zidian.AtEndOfStream <> true

path=zidian.readline

set xmlhttp = CreateObject("Microsoft.XMLHTTP")

     xmlhttp.open "GET",http.value+path,false

     xmlhttp.send

     t.innerHTML = t.innerHTML&url&path&"--------"&"<font color=red>"&xmlhttp.status&"</font><br>"

     loop

end if

End function

</script>

最后一个比较好用

中国足彩网信息请查看IT技术专栏

中国足彩网信息请查看脚本栏目
易贤网手机网站地址:用来猜后台的HTA小程序
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
关于我们 | 联系我们 | 人才招聘 | 网站声明 | 网站帮助 | 非正式的简要咨询 | 简要咨询须知 | 加入群交流 | 手机站点 | 投诉建议
工业和信息化部备案号:滇ICP备2023014141号-1 足球游戏_中国足彩网¥体育资讯$ 滇公网安备53010202001879号 人力资源服务许可证:(云)人服证字(2023)第0102001523号
云南网警备案专用图标
联系电话:0871-65317125(9:00—18:00) 获取招聘考试信息及咨询关注公众号:hfpxwx
咨询QQ:526150442(9:00—18:00)版权所有:易贤网
云南网警报警专用图标