it'll be great to have ability to execute shell commands via irc private messaging.
simple case (admin, one shell command, no execution timeout, blocking wait for the results) implemented, see patch attached.
Example of usage:
/bip shell uname -a
Linux rt-n16 126.96.36.199 #8 Sat Mar 19 21:53:29 YEKT 2011 mips GNU/Linux
the more better solution would be like following:
1. open one non-blocking shell pipe (or pseudo tty) per client connection with /bip shell [optional cmd]
2. poll shell output descriptor together with connection handles
3. notify client if any output is available
4. pass subsequent commands directly to the opened shell, if it's not closed yet
5. close shell pipe on timeout and/or with /bip shell exit (semantic would allow *sh exist as well and pipe will be closed)
Updated by Vladislav Grishenko about 12 years ago
p.s by now, it's better not to ping anything :)
Updated by Hjálmar Gylfason almost 12 years ago
In my opinion, this should be disabled by default, as this is a very risky feature.
It might be useful, but someone can really fuck with your user account if that someone gets shell access by accident...
Nice idea anyways!
Updated by Marc Dequènes over 8 years ago
- Status changed from New to Rejected
First, this is complex and very security sensitive. It is also not the goal of this program, so we'd better not scatter resources in features other programs provides much better. And btw there is also a problem with running a shell as the bip user in a bip multiuser environment, except if you also wish bip to run as root and change user…
So sorry this won't make it.