Live data from Hacker News

Devzat – Chat over SSH, with some nice quality-of-life features

github.com

31–40 of 111 posts

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#31
post #8
post #2

I wonder if you could do something similar with an ssh account which is hard-wired to run 'ytalk' ( https://en.wikipedia.org/wiki/Talk_(software) ).

Probably. See my comment (and example repo) elsewhere about running any old binary when someone connects.

Or you can just run IRC client on start. Just trap SIGINT and SIGTSTP, run simple or modified client that cannot do exec or escape to shell and you are done :)

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#32
post #30
post #26

Is this working for anybody else? I created a throwaway ed25519 key, reconfigured ssh config, and tried to connect with ‘ssh chat’ Nothing loads. ‘ssh -v chat’ isn’t helpful either. ping and nc (on both 22 and 443) show the server (or load balancer) is accessible for me. Maybe a “hnfp DoS” (hacker news front page DoS)?

Have you tried connecting with the actual hostname directly instead of an alias? Edit: nvm the author said it’s down

back up now!

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#33
post #28
post #21

Earlier quoted context omitted.

This is not sshd, this is a golang binary that uses the stdlib ssh lib. You would have to either a) figure out how to escape out of a golang binary, or b) if the go code executes shell commands with some user provided text, trying to shell inject something in there.

Or convince the ssh daemon to pass on terminal escape codes to another user. https://nvd.nist.gov/vuln/detail/CVE-2021-33477

[deleted]

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#35
post #28
post #21

Earlier quoted context omitted.

This is not sshd, this is a golang binary that uses the stdlib ssh lib. You would have to either a) figure out how to escape out of a golang binary, or b) if the go code executes shell commands with some user provided text, trying to shell inject something in there.

Or convince the ssh daemon to pass on terminal escape codes to another user. https://nvd.nist.gov/vuln/detail/CVE-2021-33477

whoa

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#39

See also: ssh-chat by shazow from ~10 years ago written in Go ssh chat.shazow.net The most amazing part is perhaps the fact that this one is still around, 10 years later! Try it yourself and you’ll see :) Discussion at the time: https://news.ycombinator.com/item?id=8743374 Source code in GitHub repo here: https://github.com/shazow/ssh-chat

ssh-chat sort of inspired devzat. here's the story: I used to live in dubai at the time and for some odd dns reasons I could never actually join ssh-chat, but it acted as proof that ssh chats are possible, and so I decided to make my own version of it. then I moved to the us and was actually able to use both ssh-chat and devzat.

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#40
post #6

I experimented with writing a shell replacement a while back. Turns out you can just run any old program. Here’s and example “hello world” shell replacement written in Go. https://github.com/codazoda/goshell

> Turns out you can just run any old program.

It’s amazing how simple some things are. Similarly, an HTTP server can also run any old binary in response to an incoming request. As long as it produces output that looks like an HTTP response, the client will receive that response.

Post reply on HN