|
Hack that I never finished, but have found extremely useful
anyway. Here's the help:
Usage: tcptee [options] <local port> [remote host <remote port>]
options are:
-h, --help show this help
-q, --quiet supress ALL output
-w, --windows open xterms for server and client
-x [file], --translation[=file] turn on translation
If you call it with only a local port, then it will accept connections
on that port and allow you to type at whatever is connecting. It's
been used in that more for example to play web server while screwing
around with various clients. If you call it with a local port and
``remote'' host/port, whenever it accepts a connection on the local
port, it will connect it to the remote port on the remote host, and
allow you to watch the client and server talk to each other. This is
useful for figuring out what a random client or server actually does.
There are 3 translation modules currently:
- default.xlt
- This one will passthough ``printable'' characters (see the file
for what is considered printable), and replace non-printable
characters with hex codes.
- dots.xlt
- Like default.xlt, but prints dots instead of hex codes.
- telnet.xlt
- Decodes telnet commands, but it's only partially there.
|