-
-
第一题
-
发表于: 2015-1-23 17:26 1960
-
private static void t1() { FileInputStream fs = null; String file = "logo.png"; String strTable = ""; String strPwd = ""; try { fs = new FileInputStream(file); byte table[] = new byte[768]; fs.skip(89473); fs.read(table, 0, 768); fs.close(); strTable = new String(table, "utf-8"); fs = new FileInputStream(file); byte pwd[] = new byte[18]; fs.skip(91265); fs.read(pwd, 0, 18); fs.close(); strPwd = new String(pwd, "utf-8"); StringBuilder sb = new StringBuilder(); for (int i = 0; i < strPwd.length(); i++) { char ch = (char)strTable.indexOf(strPwd.charAt(i)); sb.append(ch); } System.out.println(sb.toString()); } catch (Exception e) { e.printStackTrace(); } }
赞赏
他的文章
- KCTF2022春季赛 第三题 石像病毒 9193
- KCTF2022春季赛 第二题 末日邀请 16535
- KCTF2021秋季赛 第二题 迷失丛林 19287
- KCTF2020秋季赛 第十题 终焉之战 9291
- KCTF2020秋季赛 第九题 命悬一线 6788
赞赏
雪币:
留言: