Loading

[BUUCTF题解][b01lers2020]Welcome to Earth

知识点

JavaScript审查

过程

这题就没必要搜集了,就是一个简单的基于JS事件写的简单的页面游戏,可以按照题目需求按部操作,这里就不演示了,直接获取HTML源码,按照其中的正确事件触发的跳转路径进行。

image-20220328194246591

image-20220328194423327

image-20220328194451151

image-20220328194511089

image-20220328194551377

image-20220328194603794

image-20220328194635167

image-20220328194648360

image-20220328194722393

image-20220328194757964

这里就可以对这个存放flag的数组进行排列了,python中组合用的是itertolls中的combinations,而排列则是permutations

脚本如下(直接拿的别的师傅的,摸了):

from itertools import permutations

flag = ["{hey", "_boy", "aaaa", "s_im", "ck!}", "_baa", "aaaa", "pctf"]

item = permutations(flag)
for i in item:
k = ''.join(list(i))
if k.startswith('pctf{hey_boys') and k[-1] == '}':
print(k)

 

posted @ 2022-03-28 21:28  Article_kelp  阅读(216)  评论(0)    收藏  举报