- @if (0)==(0) echo off
- (for /f %%i in (domain.txt) do (
- for /f %%j in (dns.txt) do nslookup %%i %%j
- )) | cscript //nologo //e:jscript "%~f0" > a.Log
- pause & exit
- @end
-
- var str = WSH.StdIn.ReadAll() + ':'
- var arr, reg = /Addresses:([\S\s]+?)(?=:)/g, map = [];
- while(arr = reg.exec(str)){
- var re = /(\d+\.){3}\d+/g;
- while(ar = re.exec(arr[1])){
- if(!map[ar[0]]) { map[ar[0]]=1; WSH.Echo(ar[0]) };
- }
- }
复制代码
|