
打开一个页面过一会会跳转


趁还没跳转查看源码,看到chase路径,访问

马上也会跳转到die页面,并且点击两个按钮也是。使用burp抓包,

发现leftt页面,访问

点击按钮会跳转到die页面,查看源码

发现shoot页面。访问

点击按钮,来到door页面

随机选择一个然后点击check都会跳转到die页面,查看源码

访问js文件

发现open页面,访问open页面

查看源码

发现js文件,访问

发现fight页面,访问

输入任意字符点击按钮无反应,查看源码
发现js文件,访问

发现flag
考点:使用python permutations()函数对其进行正确的排列组合
使用参考:python——permutations()函数
脚本:
from itertools import permutations
flag = ["{hey", "_boy", "aaaa", "s_im", "ck!}", "_baa", "aaaa", "pctf"]
for i in permutations(flag,8):
result = ''.join('%s'%j for j in i)
if result.startswith('pctf{hey_boys') and result.endswith('}'):
print(result)
