snetcat is a clone of a famous netcat utility developed by the UNIX hacker we know as Hobbit, with SSL and easier port forwarding support. A tiny Matrix SSL lib, with footprint about 50K, was used to implement encryption.


Sources, statically linked binaries for Linux and FreeBSD 5, precompiled Windows executable you can get from Sourceforge project page

Options overview

usage: snetcat [OPTIONS] [<host> <port>]
-u              use UDP instead of TCP
-g              bind to INADDR_ANY
-o file         hexdump passed traffic to a file
-d		Act as listening server, forking childs
-s certif	Wrap the connection into SSL, using given certificate file
-l localport    listen on localport
-e prog         redirect stdin/stdout to program

Usage examples

Fetch web page
% echo -e "GET /index.html HTTP/1.0\n\n" | snetcat 80
Fetch web page via HTTPS
% echo -e "GET /index.html HTTP/1.0\n\n" | snetcat -s "" 80
Run port forwarder
% snetcat -l local_port remote_host remote_port
Turn web server on your machine to be HTTPS web server
% snetcat -l 443 -s CERTIFICATE.PEM -d 80
Mail client (sh script)
Simple web server (sh script)


© Sergey Lyubka <valenok at gmail dot com>

© Matrix SSL