7

【Root-Me】 Javascript - Source

 2 years ago
source link: https://exp-blog.com/safe/ctf/rootme/web-client/javascript-source/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【Root-Me】 Javascript



水题。一打开页面就弹出交互框要求输入密码,随便输入提示密码错误。

打开浏览器开发者工具,切到 Network 找到名为 ch1.html 中的一段 js 代码。

查看代码内容可以找到刚才的密码错误信息, if 的另一个分支就是密码正确的信息。

明显密码被写死在 if 的判断条件了,把密码拷过去,完成挑战。

01.png

flag 下载后的 flagzip 的文件需要手动更改后缀为 *.zip,然后解压即可(为了避免直接刷答案)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK