WEBCAT(1)
π¦ WEBCAT(1) β the webcat manual, bestie edition π¦
okay so this is the <pink>webcat(1) page, and no cap, it's lowkey the most useful little tool ever. let's get into it π
β¨ NAME β¨
webcat β the swiss army knife for websocket, fr fr π
πΈ SYNOPSIS πΈ
webcat [OPTIONS]
that's it. that's the whole vibe check. π«Ά
π DESCRIPTION π
okay so webcat is a tool which is very similar to the well known netcat utility. like, they're giving sibling energy. π
It reads data from stdin and prints received data to stdout β iconic behaviour, honestly.
But instead of using raw TCP connections, webcat uses the websocket protocol (RFC6455). the way that it just upgrades your whole connection into a websocket... main character energy honestly β¨
π OPTIONS π
-HHEADER β set a request header in the formNAME=VALUE. this header gets sent in the initial HTTP request, which is then upgraded to a websocket connection. very demure, very HTTP π-fSHA256 VALUE β set the expectedSHA256value of the server certificate π. ngl this one is important: the hashsum is calculated over the whole certificate inDERencoding. don't skip that part bestie.-kSECONDS β send websocket keep alive probes every SECONDS seconds β°. it's giving "just checking in!!" energy, but make it protocol-level.-lADDRESS β be a server and listen on this address π. you're not just the client anymore, you ARE the moment.-tTARGET β connect to TARGET. and here's the tea: when in server mode and target is not-(which meansstdout), then the incoming connection is proxied to TARGET. π§
π EXAMPLES π
For using an SSH through websocket see this blog article:
https://rumpelsepp.org/blog/ssh-through-websocket/
like go read it, it's literally right there π₯
π AUTHORS π
Maintained by Stefan Tatschner stefan@rumpelsepp.org. π«Ά
The Git repository is hosted here:
https://github.com/rumpelsepp/webcat
ok bestie you're all caught up, go websocket something iconic β¨ π
and yes, this page is dated 1980-01-01 and it's the WEBCAT(1) manual β a little time capsule moment, periodt. π
π
π¦ where this page comes from
- nixos 26.05: webcat 0.2.0
- nixpkgs unstable: webcat 0.2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms