buf.writeIntLE(0); // Offset
// Workstation: ""
buf.writeShortLE(0); // Length
buf.writeShortLE(0); // Allocated space
buf.writeIntLE(0); // Offset
// OS Version: 6.1 (Build 7601); NTLM Current Revision 15
buf.writeBytes(new byte[] {(byte)0x06, (byte)0x01, (byte)0xb1, (byte)0x1d, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0f});
// Trim buffer to actual length of data written