홈페이지 : http://sockspy.sourceforge.net/sockspy.html
Sockspy를 사용하면 Tcp 클라이언트와 서버의 대화를 감시할 수 있습니다. Sockspy는 게이트웨이와 매우 유사하게 작동하며, Tcp 연결을 기다린 다음 실제 서버에 연결합니다. 클라이언트의 데이터는 서버로 전달되고, 서버의 데이터는 클라이언트로 전달됩니다.
이 과정에서 데이터 스트림은 텍스트 위젯에 표시되며, 클라이언트에서 보낸 데이터는 녹색으로, 서버에서 보낸 데이터는 파란색으로, 연결 메타데이터는 빨간색으로 표시됩니다. 데이터는 인쇄 가능한 ASCII 문자열로 표시하거나 16진수 및 인쇄 가능한 문자로 구성된 헥스 덤프 형식으로 표시할 수 있습니다.
Sockspy를 사용해야 하는 이유는 무엇인가요? Tcp 클라이언트/서버 프로그램 디버깅, 프로토콜 검사, 네트워크 문제 진단이 가장 좋습니다. 어떤 것이 어떻게 작동하는지 알아내고 싶을 수도 있습니다. 'tcpdump' 및 기타 수동 패킷 스니퍼와 같은 강력한 도구를 대체할 수는 없습니다. 반면, Sockspy는 실행에 특별한 권한이 필요하지 않습니다. (물론 1024 미만의 유닉스 예약 Tcp 포트에서 수신하려고 시도하지 않는 한).
Sockspy lets you watch the conversation of a Tcp client and server. Sockspy acts much like a gateway: it waits for a Tcp connection, then connects to the real server. Data from the client is passed onto the server, and data from the server is passed onto the client.
Along the way, the data streams are also displayed in text widget with data sent from the client displayed in green, data from the server in blue and connection metadata in red. The data can be displayed as printable ASCII strings, or as a hex dump format of both hex and printable characters.
Why might you want to use Sockspy? Debugging Tcp client/server programs, examining protocols and diagnosing network problems are top candidates. Perhaps you just want to figure out how somethings work. It's not a replacement for heavy duty tools such as 'tcpdump' and other passive packet sniffers. On the other hand, Sockspy doesn't require any special priviledges to run (unless of course, you try to listen on a Unix reserved Tcp port less than 1024.)
Examples
All the example use the command-line interface. The GUI interface is identical except that you must specify the connection parameters in the dialog the pops up when Sockspy starts.
HTTP: To watch the HTTP protocol traffic to a particular web server:
$ sockspy 8000 http://www.some.com 80
then with your browser, use a url of:
http://localhost:8000/index.html
Using this method, you will have to start a new Sockspy for each
HTTP host you access. If you normally run an HTTP proxy, start
sockspy 8000 webproxyhost 80 and just set your browser's proxy to
use the Sockspy host and port.
Telnet: To watch your Telnet session to 'otherhost':
$ sockspy 2000 otherhost 23
$ telnet localhost 2000
Database connectivity (Sybase example)
Define an 'interfaces' entry for Sockspy:
SYBASE
query tcp ether dbserv 5000
master tcp ether dbserv 5000
SPY
query tcp ether sockspyhost 5500
master tcp ether sockspyhost 5500
$ sockspy 5500 dbserv 5000
$ isql -SSPY
'확장 패키지 (Extension Package)' 카테고리의 다른 글
Feather 0.1 (1) | 2025.02.14 |
---|---|
iocpsock 1.1 (0) | 2025.02.14 |
Progressbar 1.3 (0) | 2025.02.13 |
Mpexpr 1.0 (0) | 2025.02.13 |
ClassyTcl 1.0.0 (0) | 2025.02.13 |