web13

时间:2021-04-15 12:40:32   收藏:0   阅读:0

技术图片

根据提示查看源码,看到p1与p2以及后面的eval

看到p1的字符串,想到URL编码,故解码之

 

p1=function checkSubmit(){var a=document.getElementById("password");if("undefined"!=typeof a){if("67d709b2b

p2=aa648cf6e87a7114f1"==a.value)return!0;alert("Error");a.focus();return!1}}document.getElementById("levelQuest").onsubmit=checkSubmit;

eval中间的编码=54aa2

 

合并得到:function checkSubmit(){var a=document.getElementById("password");if("undefined"!=typeof a){if("67d709b2b54aa2aa648cf6e87a7114f1"==a.value)return!0;alert("Error");a.focus();return!1}}document.getElementById("levelQuest").onsubmit=checkSubmit;

 

有两个元素:password和67d709b2b54aa2aa648cf6e87a7114f1,前者不行,输入后者的到flag

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!