@Test public void testGenerateType2Msg() { Type2Message type2Message = new Type2Message("TlRMTVNTUAACAAAAAAAAACgAAAABggAAU3J2Tm9uY2UAAAAAAAAAAA=="); Assert.assertEquals(type2Message.getMessageLength(), 40, "This is a sample challenge that should return 40"); }
readBytes(challenge, 24); flags = readULong(20); if (getMessageLength() >= 12 + 8) { final byte[] bytes = readSecurityBuffer(12); if (bytes.length != 0) { try { if (getMessageLength() >= 40 + 8) { final byte[] bytes = readSecurityBuffer(40); if (bytes.length != 0) { targetInfo = bytes;
readBytes(challenge, 24); flags = readULong(20); if (getMessageLength() >= 12 + 8) { final byte[] bytes = readSecurityBuffer(12); if (bytes.length != 0) { try { if (getMessageLength() >= 40 + 8) { final byte[] bytes = readSecurityBuffer(40); if (bytes.length != 0) { targetInfo = bytes;
public String generateType3Msg(final String username, final String password, final String domain, final String workstation, final String challenge) throws NtlmEngineException { final Type2Message t2m = new Type2Message(challenge); return getType3Message(username, password, workstation, domain, t2m.getChallenge(), t2m.getFlags(), t2m.getTarget(), t2m.getTargetInfo()); }
public String generateType3Msg(final String username, final String password, final String domain, final String workstation, final String challenge) throws NtlmEngineException { final Type2Message t2m = new Type2Message(challenge); return getType3Message(username, password, workstation, domain, t2m.getChallenge(), t2m.getFlags(), t2m.getTarget(), t2m.getTargetInfo()); }