interesting tool cited on ntk

Sounds a bit like to old BANTER tool I wrote, without the smarts:

If Perl is the Swiss Army chainsaw of programming languages, then SOCAT is the Swiss Army chainsaw of, uh, shell/networking tools. Socat works by connecting the input and output of two files together – where file can be a socket, or a pipe, or any number of other filish mutants that Unix has spawned. Need to connect to your SMTP server to do some manual diagnostics, a la netcat or telnet? Sure. Feel like wrapping readline around that to get command history? No problem. You can connect an IPV6 address to a chrooted shell script, run ssh with its controlling tty connected to stdin so it’ll accept the password from something other than the keyboard, or attach a Unix socket to an inet socket. You can tunnel a local Unix socket through someone’s socks server to an unprotected internal X server, using a source port of 20 to slip by a poorly-configured firewall. And that’s just the manpage examples! It’s available as a Debian unstable package and FreeBSD port, and v1.2 (due this month) has a pile of extra goodies to anticipate, including fake pseudo terminals, and ssl support. I can’t believe I just wrote “fake pseudo terminals”.

http://www.dest-unreach.org/socat/

– ironically unreachable for most of yesterday

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *