exe程序 反编译

  • 把exe程序生成class
public static void main(String[] args) throws IOException {
		File f = new File("E:\\160\\new\\RobTicket.exe");// exe文件路径
		File f1 = new File("E://160//test//rob_new.rar");// 生成的rar文件路径
		FileInputStream fin = new FileInputStream(f);
		FileOutputStream fout = new FileOutputStream(f1);
		BufferedInputStream bin = new BufferedInputStream(fin);
		BufferedOutputStream bout = new BufferedOutputStream(fout);
		int in = 0;
		do {
			in = bin.read();
			if (in == -1)
				break;
			in ^= 0x88;
			bout.write(in);
		} while (true);
		bin.close();
		fin.close();
		bout.close();
		fout.close();
	}

  • class 使用jd-gui 反编译即可

猜你喜欢

转载自my.oschina.net/u/2605948/blog/1593093
今日推荐