Advertisement
Guest User

4chan_pass subversion [Cookie Fucker]

a guest
May 25th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Anti_Cookie
  3. // @description fuck cookie bans.
  4. // @namespace   anon.ops
  5. // @include     *://*.4chan.org/*
  6. // @author team Anonymous
  7. // @version     1
  8. // ==/UserScript==
  9.  
  10. (function(){
  11.     // Generate a random 4chan_pass value
  12.     function gen_rnd(){
  13.         var pass, chars, i, len, rnd;
  14.  
  15.         chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
  16.         len = chars.length;
  17.         pass = '';
  18.  
  19.         for (var i = 0; i < 32; i++) {
  20.             rnd = Math.floor(Math.random() * len);
  21.             pass += chars.substring(rnd,rnd + 1);
  22.         }
  23.  
  24.         return '_' + pass;
  25.     }
  26.     // Continuously assign a new value to the cookie in order to subvert user identification
  27.     setInterval(function() {
  28.         document.cookie = '4chan_pass='+gen_rnd()+';expires=Thu, 01 May 2016 00:00:01 GMT;';
  29.     }, 1000);
  30. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement