Advertisement
rfq

Cookie Injector (login without username/password)

rfq
Feb 19th, 2023
2,184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript: void(function () {
  2.   var domain = location.hostname;
  3.   function setCookie(t) {
  4.     var a = t.split("; ");
  5.  //   console.log(a);
  6.     for (var i = a.length - 1; i >= 0; i--) {
  7.       var b = a[i].split("=")[0];
  8.       var c = a[i].split("=")[1];
  9.       var d = new Date();
  10.       d.setTime(d.getTime() + (7 * 24 * 60 * 60 * 1000));
  11.       var e = `domain=.${domain};expires=${d.toUTCString()}`;
  12.       document.cookie = b + "=" + c + "; " + e
  13.     }
  14.   }
  15.  
  16.   var f = prompt("Enter your Cookie here", "");
  17.   setCookie(f);
  18.   location.reload()
  19. })();
Tags: Bookmarklet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement