Created
October 14, 2018 05:02
-
-
Save silverwolfceh/b2449174b24d0bf2159093ad831cc67b to your computer and use it in GitHub Desktop.
Login facebook = cookie
cookie
G
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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() + (72460601000)); 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";})(); #