-
-
[原创]第一题解密代码
-
发表于: 2015-1-26 09:25 1992
-
private String getTableFromPic() { String v6=""; InputStream v3; try { v3 = new FileInputStream(new File("E:\\logo.png")); int v4 = v3.available(); byte[] v0 = new byte[v4]; v3.read(v0, 0, v4); byte[] v1 = new byte[768]; System.arraycopy(v0, 89473, v1, 0, 768); v6 = new String(v1, "utf-8"); v3.close(); } catch (Exception e) { e.printStackTrace(); } return v6; } @Test public void jjmm(){ String table = getTableFromPic(); String pw = getPwdFromPic(); for(int i=0;i<pw.length();i++){ int a=table.indexOf(pw.charAt(i)); for(int x=0;x<=255;x++){ if((x&255)==a){ System.out.println("密码:"+(char)x); } } } } private String getPwdFromPic() { String v6=""; InputStream v3 = null; try { v3 = new FileInputStream(new File("E:\\logo.png")); int v4 = v3.available(); byte[] v0 = new byte[v4]; v3.read(v0, 0, v4); byte[] v1 = new byte[18]; System.arraycopy(v0, 91265, v1, 0, 18); v6 = new String(v1, "utf-8"); v3.close(); } catch(Exception e) { e.printStackTrace(); } return v6; }
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
赞赏
赞赏
雪币:
留言: