首页 > 其他 > 详细

nullcon HackIM 2016 -- Crypto Question 1

时间:2016-02-01 23:52:31      阅读:238      评论:0      收藏:0      [点我收藏+]

You are in this GAME. A critical mission, and you are surrounded by the beauties, ready to shed their slik gowns on your beck. On onside your feelings are pulling you apart and another side you are called by the duty. The biggiest question is seX OR success? The signals of subconcious mind are not clear, cryptic. You also have the message of heart which is clear and cryptic. You just need to use three of them and find whats the clear message of your Mind... What you must do?

 

就是一个xor操作:

import java.io.*;
public class C1{
	public static void main(String[] args) throws Exception{
		File a=new File("Heart_clear.txt");
		File b=new File("Heart_crypt.txt");
		File c=new File("Mind_crypt.txt");
		InputStream isA=new FileInputStream(a);
		InputStream isB=new FileInputStream(b);
		InputStream isC=new FileInputStream(c);
		int x,y,z;
		while( (z=isC.read())!=-1){
			x=isA.read();
			y=isB.read();
			System.out.print((char)(x^y^z));
		}
		isA.close();
		isB.close();
		isC.close();
	}
}

 得到 一个网页地址 https://play.google.com/store/apps/collection/promotion_3001629_watch_live_games?hl=en

标题就是它的flag

Flag: Never Miss a Game

nullcon HackIM 2016 -- Crypto Question 1

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

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