´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÑ´Ù.
NBTSTAT -c
´ÙÀ½°ú À¯»çÇÑ ÇüÅÂÀÇ ¸Þ½ÃÁö¸¦ ¹Þ°ÔµÉ °ÍÀÌ´Ù.
e:\(0)nbtstat -c
NetBIOS Remote Cache Name Table
Name Type Host Address Life [sec]
------------------------------------------------------------
Á¤Ã¢·Ä UNIQUE 203.253.4.32 5
°æÁ¦Çаú UNIQUE 203.253.11.15 5
»ç¹«½Ç UNIQUE 203.253.5.100 5
¹Ù¶÷°³ºñ UNIQUE 203.253.16.121 5
SYSCON UNIQUE 203.253.15.34 -1
SYSCON UNIQUE 203.253.15.34 -1
SYSCON UNIQUE 203.253.15.34 -1
¸¸¾à ÇØ´ç »ç¿ëÀÚ°¡ ³ªÅ¸³ªÁö ¾Ê´Â´Ù¸é ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÑ´Ù.
net send jswon
NBTSTAT -c
e:\(0)net send jswon hello
The message was successfully sent to JSWON.
e:\(0)nbtstat -c
NetBIOS Remote Cache Name Table
Name Type Host Address Life [sec]
------------------------------------------------------------
JSWON UNIQUE 203.234.169.154 535
±è¿ëÅ UNIQUE 210.113.73.101 425
ZINNIA UNIQUE 210.105.56.97 432
SYSCON UNIQUE 203.253.15.34 -1
SYSCON UNIQUE 203.253.15.34 -1
SYSCON UNIQUE 203.253.15.34 -1
¸¸¾à ¹èÄ¡ÆÄÀÏ¿¡¼ ÀÌ ÀÛ¾÷À» ÇÒ ÇÊ¿ä°¡ ÀÖ´Ù¸é,
WhatIP UserName¸¦ È£ÃâÇÑ´Ù. ÀÌ ÇÁ·Î±×·¥Àº IP ÁÖ¼Ò°ªÀ» °®´Â
whatip ȯ°æº¯¼ö¸¦ ¸®ÅÏÇÑ´Ù. »ç¿ëÀÚ°¡ ¹ß°ßµÇÁö ¾ÊÀ» °æ¿ì¿¡´Â
0À» ¸®ÅÏÇÑ´Ù.
¿¹:
call whatip Jennifer
if "%whatip%"=="0" goto notfound
WHATIP.BATÀº ´ÙÀ½°ú °°´Ù.
@echo off
set whatip=
if "%1"=="" goto syntax
set userv=%1
set userv=%userv:"=%
:again
nbtstat -c|find /i "%userv%" %temp%\where.log
for /f "Tokens=1-7* Delims=. " %%i in (%temp%\where.log)
do call :parse "%%i" "%%j" "%%k" "%%l" "%%m" "%%n" "%%o"
if "%whatip%"=="" goto donbt
if exist %temp%\where.log del /q %temp%\where.log
set userv=
goto end
:syntax
@echo Syntax: Where UserName
goto end
:parse
if /i not %1=="%userv%" goto donbt
if /i not %2=="" goto end
set whatip=%4%5%6%7
set whatip=%whatip:""=.%
set whatip=%whatip:"=%
goto end
:donbt
if "%whatip%"=="0" goto end
net send "%userv%" Ignore this interruption
set whatip=0
goto again
:end