首页 > 其他 > 详细

nullcon HackIM 2016 -- Crypto Question 5

时间:2016-02-02 01:12:11      阅读:310      评论:0      收藏:0      [点我收藏+]

Now you are one step away from knowing who is that WARRIOR. The Fighter who will decide the fate of war between the 2 countries. The Pride of One and Envey of the Other... You have got the secrete file which has the crucial information to identify the fighter. But the file is encrypted with a RSA-Private key. Good news you have its corresponding public key in a file. Bad news there are 49 other keys. Whos is the Fighter.

crypto5.zip   

 

我是在windows下在进行操作的,由于我安装了 git, 然后里面有 Git bash, 进入bash后有awk。

进入cmd,进bash

cmd> bash

用awk分出每一个key

bash-3.1$ awk ‘/BEGIN PUBLIC KEY/{n++}{print >"key" n ".txt" }‘ all_keys.txt

然后一个perl脚本:

for($i=1;$i<50;$i++){
    system("openssl rsautl -inkey key$i.txt -pubin -in warrior.txt >> outx.txt");
}

perl脚本后,打开 outx.txt 文件,得到:

This fighter is a designation for two separate, heavily upgraded derivatives of the Su-35 ‘Flanker‘ jet plane. They are single-seaters designed by Sukhoi(KnAAPO).

Google:Sukhoi(KnAAPO) Fighter, 得到 flag: Sukhoi Su-35

 

nullcon HackIM 2016 -- Crypto Question 5

原文:http://www.cnblogs.com/Christmas/p/5176600.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!