VBS 获取外网IP的实现代码
时间:2021-08-02 07:30:20|栏目:VBS|点击: 次
复制代码 代码如下:
set oDOM = WScript.GetObject("http://ipseeker.cn//")
flag=0
for i=1 to 10
if oDOM.readyState = "complete" then
flag=1
exit for
end if
WScript.sleep 500
next
if flag=0 then
WScript.Echo "timeout ..."
wscript.quit
end if
s=oDOM.documentElement.innerText
Set Re = New RegExp
Re.Pattern="(\d+)\.(\d+)\.(\d+)\.(\d+)"
for each r in Re.Execute(s)
res=r
exit for
Next
WScript.Echo "IPAddress: " & res
原文:http://www.enun.net/?p=1188
栏 目:VBS
下一篇:xp、2003开3389+非net创建管理用户+Shift后门+自删除脚本vbs
本文标题:VBS 获取外网IP的实现代码
本文地址:http://www.codeinn.net/misctech/163566.html