|
|
发表于
2023-12-1 12:46:59
|
显示全部楼层
来自 贵州
首先提示是错的,狗屁的纯英文;再次验证方式有误,根本不需要加{},而是python flag.py 你的flag;最后,这还要录视频?
- # -------------------------------------------------------------------------------
- # Copyright (c) 2023. 挥杯劝, Inc. All Rights Reserved
- # @作者 : 挥杯劝(Huibq)
- # @邮件 : huibq120@gmail.com
- # [url=home.php?mod=space&uid=81836]@文件[/url] : 新建文件夹 - a.py
- # @创建时间 : 2023/12/01 12:16
- # -------------------------------------------------------------------------------
- import re
- import random
- sb = 0.26171626625445665 # 第一个随机种子
- i = 0
- my_list = []
- filename = 'flag.py'
- def elif_numbers(): # elif 数量控制运算次数,加上第一次的if运算
- t = 1
- with open(filename, 'r', encoding='utf-8') as file:
- lines = file.readlines()
- for line in lines:
- if 'elif' in line:
- t += 1
- return t
- times = elif_numbers()
- while i < times: # 运算次数已知,这里就可以确定运算顺序了
- random.seed(sb)
- number_1 = random.random()
- my_list.append(number_1)
- sb = number_1
- i += 1
- def key_values():
- operations_dict = {'0.5101559897461829:': '-= 970', }
- with open(filename, 'r', encoding='utf-8') as file:
- lines = file.readlines()
- key = None
- for line in lines:
- value = None
- if 'elif' in line:
- match = re.search('==(.*)', line)
- if match is not None:
- key = match.group(1).strip()
- if '_5678027505788169' in line:
- match = re.search('_5678027505788169 (.*)', line)
- if match is not None:
- value = match.group(1).strip()
- if key is not None and value is not None:
- operations_dict[key] = value
- return operations_dict
- result = key_values()
- print(my_list)
- print(result)
- operations = []
- for o in my_list[:-2]:
- operations.append(result[str(o) + ':'])
- print(operations)
- Flag = "\u2a90\u2a76\u249a\u3051\u249a\u309c\u27e6\u2817\u33aa\u3051\u2a2b\u2817\u2e45\u2f84\u36e7\u27c0\u36e7\u3051\u2a2b\u2a76\u309c\u2a76\u3051\u309c\u27e6\u2e61\u2a2b\u33aa\u36e7\u27c0\u33aa\u2817\u2e45\u36e7\u36e7\u27c0\u2a90\u36e7\u2a76\u2a2b\u33aa\u2817\u2a2b\u27c0\u2a90\u36e7\u2a76\u309c\u249a\u2e8d\u27c0\u249a\u2f84\u27c0\u2a90\u2f84\u2817\u303d\u2a90\u249a\u2e45\u2e61\u3051\u33aa\u2e61\u33aa\u2a76\u309c\u2f84\u3051\u2e8d\u2a2b\u2e8d\u2e8d\u2e45\u2a90\u27c0\u2817\u2a2b\u2e45\u303d\u36e7\u27e6\u2e45\u27c0\u36e7\u2f84\u33aa\u2e8d\u3051\u33aa\u2f84\u2f84\u27c0\u309c\u303d\u2f84\u2e8d\u2f84\u2a90\u33aa\u2f84\u27c0\u2e61\u309c\u2a76\u2e61\u27c0\u3051\u2817\u2e61\u36e7\u2e8d\u2a90\u2e61\u27c0\u2e8d\u309c\u27e6\u2817\u36e7\u2e45\u2a2b\u27e6\u27c0\u249a\u2e8d\u2a76"
- a = str()
- b = None
- for i in Flag:
- for operation in operations:
- exec('i' + operation)
- a += chr(int(i))
- print(a)
复制代码
|
|