第一次会内竞赛
re1
拿到一个pycimport 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
跳跃式难度
相关文章
- 02-23计算机系统 学习笔记(0)南京大学(一)第一周
- 02-23合天weekly_ctf 第一周
- 02-23第一周 Largest Rectangle in a Histogram
- 02-23Android第一周环境搭建
- 02-23深度学习 第二课 第一周 作业2
- 02-23吴恩达深度学习第二课第一周知识总结
- 02-23山东大学暑期实训第二次记载(第一周第二次)
- 02-23leetcode第一周--递归专题
- 02-23软件工程第一周开课微博
- 02-23第一周单元1:Requests库入门