writeup-khaleesi

描述:
She is the only surviving child of King Aerys II Targaryen, who was ousted from the Iron Throne during Robert’s Rebellion.

题目链接:http://218.2.197.234:2033/index.html

打开页面,先看到khaleesi的图片。。冰与火之歌。。。
先按F12看一下有什么东西,

Yea I know I’m so hot and that can be cause lack of attention<3
Oh my dragons! My beautiful dragons…

有两句话。。意义不明。。。。

看一下页面,发现有一大串js代码,首先有一个字符串数组_0x5e57,然后输出一下发现前两句就是上面的,后面的就是split,substring之类的,把代码复制到sublime那里,然后格式化一下

拉到代码的最下面,发现有一个迷之alert,那里应该是弹flag的地方,先试下直接扔控制台,但是显示有错误,还是老老实实写吧,看了一下if的内容,很多都是直接用_0x5e57里面的东西来调用,然后翻译了一下

if (location["hash"]["substring"](1)["split"](decodeURIComponent("-")))
 {
            var els = new EncryptedLocalSt orage(arr_list["substring"](location["hash"]["substring"](1)["split"](decodeURIComponent("-"))[0], location["hash"]["substring"](1)["split"](decodeURIComponent("-"))[1]));
            if (location["hash"]["substring"](1)["split"](decodeURIComponent("-"))[0] == ((7 ^ 15) - 1) 
            && location["hash"]["substring"](1)["split"](decodeURIComponent("-"))[1] == (7 ^ 22)) { alert(_0x5e57[25] + els[_0x5e57[26]](_0x5e57[4])); 
};

查了下js里面的location,发现是获取#后面的东西,获取之后用”-“来分割成数组

于是就可以构造地址了http://218.2.197.234:2033/index.html#7-17

成功拿到flag

Flag:YouNeedToFallInLoveKhaleesiTobeH4ck3r

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值