TCP 포트 스캔 구현
TCP의 포트를 스캔하는 확장 패키지를 구현하여 보았습니다. 윈도즈는 GetTcpTable API를 이용하여 MinGW로 테스트하였고, Linux는 /proc/net/tcp 파일을 검색해 보면 알 수 있기에 순수 Tcl로 작성하였습니다.Windows 코드/* portscan.c how to cpmpile % gcc -I$(TCL)/include -DUSE_TCL_STUBS -c portscan.c % gcc -shared -o portscan.dll portscan.o -L$(TCL)/lib -ltcl85 -ltclstub85 -lws2_32 -liphlpapi*/#include #include #ifdef __MINGW32__#include #include #include #endif#include #..