把myipneighbors查詢的結(jié)果COPY下來,然后保存后,拖到此腳本上,進(jìn)行整理因?yàn)閙yipneighbors有驗(yàn)證碼,能力有限,沒辦法突破..只能先這樣了.
代碼如下:
On Error Resume Next
Set Arg=Wscript.Arguments
If Arg.count=0 then Wscript.quit
'code by NetPatch
'enjoy it
Set Fso=CreateObject("Scripting.FileSystemObject")
Set Gofile=Fso.OpenTextFile(Arg(0),1,false,-2)
Do while Gofile.Atendofline <> True
Data=gofile.readline
With fso.opentextfile(Arg(0)&".htm",8,true)
Data=replace(Data,"(view site)","")
Data=trim(replace(Data,mid(Data,1,InStr(Data,")")),""))
.Write "<table>"
.Write "<tr>"
.Write "<tr><td><a tArget='_blank'>Google_Site查詢</a></td></tr>"
.Write "<td><a href='http://www."&Data&"' tArget='_blank'>www."&Data&"</a></td></tr>"
.Write "<tr><td><a tArget='_blank'>查擴(kuò)展映射(asp|aspx|cfm)</a></td></tr>"
.Write "<tr><td><a tArget='_blank'>查擴(kuò)展映射(cgi|jsp|pl|py|php|php3)</a></td></tr>"
.Write "</table>"
.Writeline "<br><br>"
.close
End With
Loop
File.Close
Set Fso=Nothing
Wscript.Echo "ok"