WEBCAT(1)

πŸ“¦ version 0.2.0, in nixos 26.05, nixpkgs unstable

πŸ¦‹ 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 πŸŽ€

  • -H HEADER β€” set a request header in the form NAME=VALUE. this header gets sent in the initial HTTP request, which is then upgraded to a websocket connection. very demure, very HTTP πŸ’…
  • -f SHA256 VALUE β€” set the expected SHA256 value of the server certificate πŸ”. ngl this one is important: the hashsum is calculated over the whole certificate in DER encoding. don't skip that part bestie.
  • -k SECONDS β€” send websocket keep alive probes every SECONDS seconds ⏰. it's giving "just checking in!!" energy, but make it protocol-level.
  • -l ADDRESS β€” be a server and listen on this address πŸ‘‘. you're not just the client anymore, you ARE the moment.
  • -t TARGET β€” connect to TARGET. and here's the tea: when in server mode and target is not - (which means stdout), 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