public final static byte[] extractChallengeFromType2Message(byte[] msg){
  byte[] challenge=new byte[8];
  System.arraycopy(msg,24,challenge,0,8);
  return challenge;
}

public final static byte [ ] extractChallengeFromType2Message ( byte [ ] msg ) { byte [ ] challenge = new byte [ 8 ] ; System . arraycopy ( msg , 24 , challenge , 0 , 8 ) ; return challenge ; }
extracts the ntlm challenge from the type 2 message as an 8 byte array .
