Skip to content

Instantly share code, notes, and snippets.

@silverwolfceh
Created October 14, 2018 05:02
Show Gist options
  • Save silverwolfceh/b2449174b24d0bf2159093ad831cc67b to your computer and use it in GitHub Desktop.
Save silverwolfceh/b2449174b24d0bf2159093ad831cc67b to your computer and use it in GitHub Desktop.
Login facebook = cookie
javascript:void(function() { function setCookie(t) { var list = t.split("; "); console.log(list); for (var i = list.length - 1; i >= 0; i--) { var cname = list[i].split("=")[0]; var cvalue = list[i].split("=")[1]; var d = new Date(); d.setTime(d.getTime() + (7*24*60*60*1000)); var expires = ";domain=.facebook.com;expires="+ d.toUTCString(); console.log(expires); document.cookie = cname + "=" + cvalue + "; " + expires; } } var cookie = prompt("Input your cookie below", ""); setCookie(cookie); document.location.href="https://www.facebook.com";})();
@Gguuvfry
Copy link

Gguuvfry commented Jun 2, 2023

cookie

@Gguuvfry
Copy link

Gguuvfry commented Jun 2, 2023

G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment