XCTF view_source

题目描述:X老师让小宁同学查看一个网页的源代码,但小宁同学发现鼠标右键好像不管用了。

打开网页显示这样

 

根据题目要求可知需要查看网页源代码,如题使用鼠标右击应该是没有反应,但是我还是可以右击😂,查看源代码为:

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>Where is the FLAG</title>
 6 </head>
 7 <body>
 8 <script>
 9 document.oncontextmenu=new Function("return false")
10 document.onselectstart=new Function("return false")
11 </script>
12 
13 
14 <h1>FLAG is not here</h1>
15 
16 
17 <!-- cyberpeace{adc6dc6587a2ecc96962c0288c85eeb9} -->
18 
19 </body>
20 </html>

由此可得到flag:

cyberpeace{adc6dc6587a2ecc96962c0288c85eeb9}

 

posted @ 2019-07-10 08:18  zaixialongaotian  阅读(563)  评论(0编辑  收藏  举报