攻防世界是grey觉得一个挺不错的学习CTF的靶场训练地。下面是攻防世界Web类型题目新手练习区第一题的writeup。
一、题目
![](https://www.hygrey.com/wp-content/uploads/2020/04/view_source-1.jpg)
二、解题过程
1.环境:Windows
2.工具:Chrome浏览器
3.过程:
进入题目场景网址,网页内容显示:
![FLAG is not here](https://www.hygrey.com/wp-content/uploads/2020/04/view_source-2.jpg)
根据题目描述,查看源代码时鼠标右键用不了,猜测需要使用其他方式查看源代码。
方法一:使用键盘F12查看源代码
![键盘F12](https://www.hygrey.com/wp-content/uploads/2020/04/view_source-3-1024x443.jpg)
方法二:使用ctrl+U 或者在网址最前面输入 view-source: 查看源代码
![源代码](https://www.hygrey.com/wp-content/uploads/2020/04/view_source-4.jpg)
OK,获得flag:
cyberpeace{3ba26501a3fc4d8327e963c067ad281e}
这里提供其他大佬们的解题过程,开拓自己的解题思路:
1.使用Burp抓包
![Burp Suite 抓包](https://www.hygrey.com/wp-content/uploads/2020/04/view_source-5-1.png)
2.使用Python爬取网页源代码
![Python 爬取源代码](https://www.hygrey.com/wp-content/uploads/2020/04/view_source-6.jpg)
本站文章由渡缘人原创,如若转载请注明原文及出处:
https://www.hygrey.com/web-view-source-writeup.html
Comments NOTHING