|
|
|
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Windows\system32>@echo off
setlocal EnableDelayedExpansion
set "xNext="
set "xComputer="
for /f %%A in ('net view /all') do (
%%A was unexpected at this time.
set "xComputer=%%~A"
if "!xComputer:~0,2!"=="\\" for /f "tokens=2,* delims=. " %%X in ('nslookup
%%A') do (
%%X was unexpected at this time.
if "!xNext!"=="1" (
More? echo.!xComputer! = %%X.%%Y
More? set "xNext=0"
More? )
if "!xComputer:~2!"=="%%~X" set "xNext=1"
)
)
endlocal
pause
Press any key to continue . . .
netstat
Active Connections
Proto Local Address Foreign Address State
TCP 127.0.0.1:57122 asifidtellyou:57123 ESTABLISHED
TCP 127.0.0.1:57123 asifidtellyou:57122 ESTABLISHED
TCP 127.0.0.1:58128 asifidtellyou:27777 SYN_SENT
TCP 127.0.0.1:58129 asifidtellyou:5050 SYN_SENT
TCP 172.31.98.191:53446 ec2-54-85-163-99:https ESTABLISHED
TCP 172.31.98.191:53544 199.16.156.73:https ESTABLISHED
TCP 172.31.98.191:53581 104.244.42.65:https ESTABLISHED
TCP 172.31.98.191:57801 iad23s61-in-f4:https ESTABLISHED
TCP 172.31.98.191:57807 iad30s07-in-f3:https TIME_WAIT
TCP 172.31.98.191:57809 iad23s61-in-f4:https ESTABLISHED
TCP 172.31.98.191:57812 iad23s63-in-f14:https TIME_WAIT
TCP 172.31.98.191:57814 iad23s63-in-f14:https TIME_WAIT
TCP 172.31.98.191:57816 iad23s44-in-f162:https ESTABLISHED
TCP 172.31.98.191:57821 iad23s63-in-f13:https TIME_WAIT
TCP 172.31.98.191:57822 iad30s15-in-f14:https TIME_WAIT
TCP 172.31.98.191:57823 iad23s43-in-f2:https TIME_WAIT
TCP 172.31.98.191:57826 iad23s60-in-f2:https TIME_WAIT
TCP 172.31.98.191:57828 iad30s10-in-f206:https TIME_WAIT
TCP 172.31.98.191:57830 iad23s59-in-f14:https TIME_WAIT
TCP 172.31.98.191:57838 151.101.1.69:https ESTABLISHED
TCP 172.31.98.191:57847 104.16.112.18:https TIME_WAIT
TCP 172.31.98.191:57852 iad23s63-in-f2:https TIME_WAIT
TCP 172.31.98.191:57858 iad30s14-in-f14:https ESTABLISHED
TCP 172.31.98.191:57859 a23-34-1-71:https ESTABLISHED
TCP 172.31.98.191:57863 iad30s14-in-f14:https ESTABLISHED
TCP 172.31.98.191:57864 server-52-84-128-232:https ESTABLISHED
TCP 172.31.98.191:57865 iad23s63-in-f2:https ESTABLISHED
TCP 172.31.98.191:57868 72.21.91.29:http TIME_WAIT
TCP 172.31.98.191:57871 a23-194-117-179:https ESTABLISHED
TCP 172.31.98.191:57873 iad23s63-in-f2:https ESTABLISHED
TCP 172.31.98.191:57874 a23-194-117-179:https ESTABLISHED
TCP 172.31.98.191:57877 iad23s61-in-f4:https TIME_WAIT
TCP 172.31.98.191:57878 iad30s15-in-f1:https TIME_WAIT
TCP 172.31.98.191:57879 iad30s15-in-f1:https ESTABLISHED
TCP 172.31.98.191:57880 iad23s60-in-f2:https TIME_WAIT
TCP 172.31.98.191:57882 iad23s57-in-f14:http TIME_WAIT
TCP 172.31.98.191:57883 iad23s57-in-f14:http TIME_WAIT
TCP 172.31.98.191:57884 iad23s61-in-f2:https ESTABLISHED
TCP 172.31.98.191:57997 iad23s61-in-f2:https ESTABLISHED
TCP 172.31.98.191:57998 iad23s61-in-f2:https ESTABLISHED
TCP 172.31.98.191:58000 iad23s61-in-f3:https ESTABLISHED
TCP 172.31.98.191:58006 iad30s08-in-f142:https ESTABLISHED
TCP 172.31.98.191:58016 stackoverflow:https ESTABLISHED
TCP 172.31.98.191:58025 iad23s63-in-f2:https TIME_WAIT
netstat -n
Active Connections
Proto Local Address Foreign Address State
TCP 127.0.0.1:57122 127.0.0.1:57123 ESTABLISHED
TCP 127.0.0.1:57123 127.0.0.1:57122 ESTABLISHED
TCP 127.0.0.1:58196 127.0.0.1:5050 SYN_SENT
TCP 172.31.98.191:53446 54.85.163.99:443 ESTABLISHED
TCP 172.31.98.191:53544 199.16.156.73:443 ESTABLISHED
TCP 172.31.98.191:53581 104.244.42.65:443 ESTABLISHED
TCP 172.31.98.191:57801 172.217.13.228:443 TIME_WAIT
TCP 172.31.98.191:57809 172.217.13.228:443 TIME_WAIT
TCP 172.31.98.191:57816 216.58.217.162:443 TIME_WAIT
TCP 172.31.98.191:57847 104.16.112.18:443 TIME_WAIT
TCP 172.31.98.191:57858 172.217.9.206:443 TIME_WAIT
TCP 172.31.98.191:57863 172.217.9.206:443 TIME_WAIT
TCP 172.31.98.191:57864 52.84.128.232:443 TIME_WAIT
TCP 172.31.98.191:57865 172.217.15.66:443 TIME_WAIT
TCP 172.31.98.191:57873 172.217.15.66:443 TIME_WAIT
TCP 172.31.98.191:57879 172.217.12.225:443 TIME_WAIT
TCP 172.31.98.191:57884 172.217.13.226:443 TIME_WAIT
TCP 172.31.98.191:57997 172.217.13.226:443 TIME_WAIT
TCP 172.31.98.191:57998 172.217.13.226:443 TIME_WAIT
TCP 172.31.98.191:58000 172.217.13.227:443 TIME_WAIT
TCP 172.31.98.191:58006 172.217.7.142:443 TIME_WAIT
TCP 172.31.98.191:58016 198.252.206.25:443 ESTABLISHED
|
|
|
|
|
|
|