本文主要是介绍攻防世界 Misc高手进阶区 3分题 Become_a_Rockstar,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
前言
继续ctf的旅程
攻防世界Misc高手进阶区的3分题
本篇是Become_a_Rockstar的writeup
发现攻防世界的题目分数是动态的
就仅以做题时的分数为准了
解题过程
下下来一个rock文件
记事本打开
似乎藏着flag
查了查
rockstar是个语言
可以用rockstar-py转换为python
如下
Leonard_Adleman = "star"
Problem_Makers = 76
Problem_Makers = "NCTF{"
def God(World):a_boy = "flag"the_boy = 3
def Evil(your_mind):a_girl = "no flag"the_girl = 5
Truths = 3694
Bob = "ar"
Adi_Shamir = "rock"
def Love(Alice, Bob):Mallory = 13Mallory = 24
Everything = 114514
Alice = "you"
def Reality(God, Evil):God = 26Evil = 235
Ron_Rivest = "nice"
def You_Want_To(Alice, Love, Anything):You = 5.75428
your_heart = input()
You = 5
your_mind = input()
Nothing = 31
if Truths * Nothing == Everything:RSA = Ron_Rivest + Adi_Shamir + Leonard_Adleman
if Everything / Nothing == Truths:Problem_Makers = Problem_Makers + Alice + Bob
print(Problem_Makers)
the_flag = 245
the_confusion = 244
print(RSA)
Mysterious_One = "}"
print(Mysterious_One)
This = 4
This = 35
This = 7
This = 3
This = 3
This = 37
根据程序得到flag:NCTF{youarnicerockstar}
结语
认识了一个新语言rockstar
这篇关于攻防世界 Misc高手进阶区 3分题 Become_a_Rockstar的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!