码迷,mamicode.com
首页 > 其他好文 > 详细

nullcon HackIM 2016 -- Crypto Question 1

时间:2016-02-01 23:54:54      阅读:196      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!