public static int enc_doublele( double d, byte[] dst, int di ) { return enc_uint64le( Double.doubleToLongBits( d ), dst, di ); } public static int enc_doublebe( double d, byte[] dst, int di )
public static int enc_doublele( double d, byte[] dst, int di ) { return enc_uint64le( Double.doubleToLongBits( d ), dst, di ); } public static int enc_doublebe( double d, byte[] dst, int di )
public static int enc_doublele( double d, byte[] dst, int di ) { return enc_uint64le( Double.doubleToLongBits( d ), dst, di ); } public static int enc_doublebe( double d, byte[] dst, int di )
public static int enc_doublele( double d, byte[] dst, int di ) { return enc_uint64le( Double.doubleToLongBits( d ), dst, di ); } public static int enc_doublebe( double d, byte[] dst, int di )
public static int enc_doublele ( double d, byte[] dst, int di ) { return enc_uint64le(Double.doubleToLongBits(d), dst, di); }
public static int enc_doublele ( double d, byte[] dst, int di ) { return enc_uint64le(Double.doubleToLongBits(d), dst, di); }
public void enc_ndr_hyper ( long h ) { align(8); Encdec.enc_uint64le(h, this.buf, this.index); advance(8); }
public void enc_ndr_hyper(long h) { align(8); Encdec.enc_uint64le(h, buf, index); advance(8); } public long dec_ndr_hyper() {
public void enc_ndr_hyper(long h) { align(8); Encdec.enc_uint64le(h, buf, index); advance(8); } public long dec_ndr_hyper() {
public void enc_ndr_hyper(long h) { align(8); Encdec.enc_uint64le(h, buf, index); advance(8); } public long dec_ndr_hyper() {
public void enc_ndr_hyper(long h) { align(8); Encdec.enc_uint64le(h, buf, index); advance(8); } public long dec_ndr_hyper() {
public void enc_ndr_hyper ( long h ) { align(8); Encdec.enc_uint64le(h, this.buf, this.index); advance(8); }
/** * * @param responseKeyNT * @param serverChallenge * @param clientChallenge * @param nanos1601 * @param avPairs * @return the calculated response */ public static byte[] getNTLMv2Response ( byte[] responseKeyNT, byte[] serverChallenge, byte[] clientChallenge, long nanos1601, byte[] avPairs ) { int avPairsLength = avPairs != null ? avPairs.length : 0; byte[] temp = new byte[28 + avPairsLength + 4]; Encdec.enc_uint32le(0x00000101, temp, 0); // Header Encdec.enc_uint32le(0x00000000, temp, 4); // Reserved Encdec.enc_uint64le(nanos1601, temp, 8); System.arraycopy(clientChallenge, 0, temp, 16, 8); Encdec.enc_uint32le(0x00000000, temp, 24); // Unknown if ( avPairs != null ) System.arraycopy(avPairs, 0, temp, 28, avPairsLength); Encdec.enc_uint32le(0x00000000, temp, 28 + avPairsLength); // mystery bytes! return NtlmUtil.computeResponse(responseKeyNT, serverChallenge, temp, 0, temp.length); }
/** * * @param responseKeyNT * @param serverChallenge * @param clientChallenge * @param nanos1601 * @param avPairs * @return the calculated response */ public static byte[] getNTLMv2Response ( byte[] responseKeyNT, byte[] serverChallenge, byte[] clientChallenge, long nanos1601, byte[] avPairs ) { int avPairsLength = avPairs != null ? avPairs.length : 0; byte[] temp = new byte[28 + avPairsLength + 4]; Encdec.enc_uint32le(0x00000101, temp, 0); // Header Encdec.enc_uint32le(0x00000000, temp, 4); // Reserved Encdec.enc_uint64le(nanos1601, temp, 8); System.arraycopy(clientChallenge, 0, temp, 16, 8); Encdec.enc_uint32le(0x00000000, temp, 24); // Unknown if ( avPairs != null ) System.arraycopy(avPairs, 0, temp, 28, avPairsLength); Encdec.enc_uint32le(0x00000000, temp, 28 + avPairsLength); // mystery bytes! return NtlmUtil.computeResponse(responseKeyNT, serverChallenge, temp, 0, temp.length); }
public static byte[] getNTLMv2Response( byte[] responseKeyNT, byte[] serverChallenge, byte[] clientChallenge, long nanos1601, byte[] targetInfo) { int targetInfoLength = targetInfo != null ? targetInfo.length : 0; byte[] temp = new byte[28 + targetInfoLength + 4]; Encdec.enc_uint32le(0x00000101, temp, 0); // Header Encdec.enc_uint32le(0x00000000, temp, 4); // Reserved Encdec.enc_uint64le(nanos1601, temp, 8); System.arraycopy(clientChallenge, 0, temp, 16, 8); Encdec.enc_uint32le(0x00000000, temp, 24); // Unknown if (targetInfo != null) System.arraycopy(targetInfo, 0, temp, 28, targetInfoLength); Encdec.enc_uint32le(0x00000000, temp, 28 + targetInfoLength); // mystery bytes! return NtlmPasswordAuthentication.computeResponse(responseKeyNT, serverChallenge, temp, 0, temp.length); }
public static byte[] getNTLMv2Response( byte[] responseKeyNT, byte[] serverChallenge, byte[] clientChallenge, long nanos1601, byte[] targetInfo) { int targetInfoLength = targetInfo != null ? targetInfo.length : 0; byte[] temp = new byte[28 + targetInfoLength + 4]; Encdec.enc_uint32le(0x00000101, temp, 0); // Header Encdec.enc_uint32le(0x00000000, temp, 4); // Reserved Encdec.enc_uint64le(nanos1601, temp, 8); System.arraycopy(clientChallenge, 0, temp, 16, 8); Encdec.enc_uint32le(0x00000000, temp, 24); // Unknown if (targetInfo != null) System.arraycopy(targetInfo, 0, temp, 28, targetInfoLength); Encdec.enc_uint32le(0x00000000, temp, 28 + targetInfoLength); // mystery bytes! return NtlmPasswordAuthentication.computeResponse(responseKeyNT, serverChallenge, temp, 0, temp.length); }
public static byte[] getNTLMv2Response( byte[] responseKeyNT, byte[] serverChallenge, byte[] clientChallenge, long nanos1601, byte[] targetInfo) { int targetInfoLength = targetInfo != null ? targetInfo.length : 0; byte[] temp = new byte[28 + targetInfoLength + 4]; Encdec.enc_uint32le(0x00000101, temp, 0); // Header Encdec.enc_uint32le(0x00000000, temp, 4); // Reserved Encdec.enc_uint64le(nanos1601, temp, 8); System.arraycopy(clientChallenge, 0, temp, 16, 8); Encdec.enc_uint32le(0x00000000, temp, 24); // Unknown if (targetInfo != null) System.arraycopy(targetInfo, 0, temp, 28, targetInfoLength); Encdec.enc_uint32le(0x00000000, temp, 28 + targetInfoLength); // mystery bytes! return NtlmPasswordAuthentication.computeResponse(responseKeyNT, serverChallenge, temp, 0, temp.length); }
public void serializeData(NetworkDataRepresentation ndr,Object value,List defferedPointers,int FLAG) { if (value == null) { value = new Long(Long.MIN_VALUE); } ndr.getBuffer().align(8); Encdec.enc_uint64le(((Long)value).longValue(),ndr.getBuffer().getBuffer(),ndr.getBuffer().getIndex()); ndr.getBuffer().advance(8); }
public void serializeData(NetworkDataRepresentation ndr,Object value,List defferedPointers,int FLAG) { if (value == null) { value = new Long(Long.MIN_VALUE); } ndr.getBuffer().align(8); Encdec.enc_uint64le(((Long)value).longValue(),ndr.getBuffer().getBuffer(),ndr.getBuffer().getIndex()); ndr.getBuffer().advance(8); }
@Override public void serializeData ( final NetworkDataRepresentation ndr, Object value, final List defferedPointers, final int FLAG ) { if ( value == null ) { value = new Long ( Long.MIN_VALUE ); } ndr.getBuffer ().align ( 8 ); Encdec.enc_uint64le ( ( (Long)value ).longValue (), ndr.getBuffer ().getBuffer (), ndr.getBuffer ().getIndex () ); ndr.getBuffer ().advance ( 8 ); }