Check and understand the content of a NTLM message
npm install ntlm-parser
npm i -g ntlm-parser
`
Local:
`
npm i ntlm-parser
`
Usage
$3
`
ntlm-parser
ntlm-parser -x
`
Example:
Base64 message:
`
ntlm-parser TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAKALpHAAAADw==
`
Hex message:
`
ntlm-parser 4e544c4d53535000010000000732000006000600330000000b000b0028000000050093080000000f574f524b53544154494f4e444f4d41494e
`
$3
`js
const {ntlmParse} = require('ntlm-parser');
const object = ntlmParse(base64);
console.log('object: ', object);
`
$3
`
object: {
messageType: 'NEGOTIATE_MESSAGE (type 1)',
flags: 'NEGOTIATE_UNICODE NEGOTIATE_OEM REQUEST_TARGET NEGOTIATE_NTLM NEGOTIATE_ALWAYS_SIGN NEGOTIATE_EXTENDED_SESSIONSECURITY NEGOTIATE_VERSION NEGOTIATE_128 NEGOTIATE_56',
suppliedDomain: { length: 0, allocated: 0, offset: 0 },
suppliedWorkstation: { length: 0, allocated: 0, offset: 0 },
osVersionStructure: {
majorVersion: 10,
minorVersion: 0,
buildNumber: 18362,
unknown: 15
},
suppliedDomainData: '',
suppliedWorkstationData: ''
}
`
$3
This module already works with Typescript.
Same program as above:
`ts
import {ntlmParse} from 'ntlm-parser';
const object = ntlmParse(base64);
console.log('object: ', object);
``