第一周

第一次会内竞赛
re1
拿到一个pyc
import base64 print("请输入你的flag:") a = input().encode() b = base64.b64encode(a) c = "aGVsbG9fcHl0aG9u" e = b.decode() flag = "" a = a.decode() if( e == c ): for i in (a): if(i == "o"): flag += '0' else: flag += i print("Congratulations, it's yours flag:",flag) else: print("error,Please try again")
尝试转为py运行并修改最后一个else print# -*- coding: utf-8 -*- import base64 print("请输入你的flag:") a = raw_input().encode() b = base64.b64encode(a) c = "aGVsbG9fcHl0aG9u" e = b.decode() flag = "" a = a.decode() if( e == c ): for i in (a): if(i == "o"): flag += '0' else: flag += i print("Congratulations, it's yours flag:",flag) else: print(a,b,c,e)
得出a,b,c,e的关系
b=e-》(base64)b或e=a
得答案为hello_python
输入得hell0_pyth0n(当然也可以从题目中解出)
re2
跳跃式难度

上一篇:页面报错:Failed to decode downloaded font,一种解决思路


下一篇:线程守护 --小例子