3 ms·
Just sayin' you can do something like this in bash out of the box... Don't let me spoil the party though, the more the merrier. https://www.gnu.org/software/ba
by kristopolous 5y ago
Just sayin' you can do something like this in bash out of the box... Don't let me spoil the party though, the more the merrier.
https://www.gnu.org/software/bash/manual/html_node/Redirections.html https://www.gnu.org/software/bash/manual/html_node/Redirecti...
"/dev/tcp/host/port
If host is a valid hostname or Internet address, and port is an integer port number or service name, Bash attempts to open the corresponding TCP socket.
/dev/udp/host/port
If host is a valid hostname or Internet address, and port is an integer port number or service name, Bash attempts to open the corresponding UDP socket."
I've got an example of a "practical" way to use it in an answer I did over here https://superuser.com/questions/563083/how-to-transfer-files-over-ssh-while-already-sshd-into-the-server/1632961#1632961 https://superuser.com/questions/563083/how-to-transfer-files...
- freddie_mercury 5y ago"Seashells lets you pipe output from command-line programs to the web in real-time, even without installing any new software on your machine" The page already told us you can do this out of the box. It's the very first sentence. It also clearly explains the benefits provided by using the additional, optionally installed tooling.
- kristopolous 5y agoI'm claiming this can already be accomplished using standard tools already installed, without much effort. It won't look The Exact Same but it is functionally equivalent for many uses and is self hosted It's not meant to be discouraging, if people find it useful then great
- Linosaurus 5y ago> self hosted The article has two points. 1. They are providing a web server. 2. They are providing instructions on sending things to that server using netcat or an optional client/script. I think your bash example covers point 2 only.
- pierrec 5y agoYou seem to be missing the "live updating web page displaying what's being piped to the server" part.
- deleted 5y ago[deleted]
- jedimastert 5y ago> "/dev/tcp/host/port If host is a valid hostname or Internet address, and port is an integer port number or service name, Bash attempts to open the corresponding TCP socket. that is WILD.
- teeray 5y agoBeware the folly of the Dropbox comment
- kristopolous 5y agoFor the background, that was way back in the day where someone looking at things through only their own use case and concluding the just announced dropbox was a useless product (to them). A very similar comment was famously made on slashdot about the "just released" ipod in 2001, "No wireless. Less space than a nomad. Lame." I was thinking about both famous dismissals as I was typing my first comment. Still thought it was worth surfacing some arcane knowledge some may find useful.