-
-
第一题
-
发表于: 2015-1-23 17:26 1978
-
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();
}
}
[培训]科锐软件逆向54期预科班、正式班开始火爆招生报名啦!!!
赞赏
他的文章
- KCTF2022春季赛 第三题 石像病毒 9230
- KCTF2022春季赛 第二题 末日邀请 16574
- KCTF2021秋季赛 第二题 迷失丛林 19337
- KCTF2020秋季赛 第十题 终焉之战 9358
- KCTF2020秋季赛 第九题 命悬一线 6826
赞赏
雪币:
留言: