// The service name starts at 0x52: // // 0050: 00 00 00 02 00 00 00 0A 4D 41 58 49 2E 4C // ----------- ----------- // 0060: 4F 43 41 4C 00 00 00 06 6B 72 62 74 67 74 00 00 // ----------- ----- // 0070: 00 0A 4D 41 58 49 2E 4C 4F 43 41 4C // ----- // // which contains 2 (the length of names), a 10-byte realm, a 6-byte // name[0], and a 10-byte name[1].
// We will empty the realm, and pack the realm string to another // name (6-byte ".LOCAL"). Finally "krbtgt/MAXI.LOCAL@MAXI.LOCAL" // becomes ".LOCAL/krbtgt/MAXI.LOCAL@".
// length of names is now 3
ccache[0x55] = 3; // The empty realm
System.arraycopy(newbyte[4], 0, ccache, 0x56, 4); // Length of inserted name is 6
System.arraycopy(newbyte[]{0,0,0,6}, 0, ccache, 0x5A, 4);
Files.write(Paths.get("tmpcc"), TimeInCCache.ccache); if (CredentialsCache.getInstance("tmpcc").getCredsList() != null) { thrownew Exception("Nothing should be there");
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.