Retrieving information from SMTP servers with NTLM authentication
SMTP servers with Windows NT LAN Manager (NTLM) authentication disclose NetBIOS, DNS, and OS build version information. This is excellent information to fingerprint a system accurately prior to authentication.
This recipe shows how to use Nmap to extract information from SMTP servers with NTLM authentication enabled.
How to do it...
To retrieve information from an SMTP server with NTLM, run the following command:
$ nmap -p25,465,587 --script smtp-ntlm-info --script-args smtp-ntlm- info.domain=<target domain> <target>
The results will include NetBIOS, DNS, and OS build version information in the script output section:
25/tcp   open  smtp | smtp-ntlm-info: |    Target_Name: SMTP |    NetBIOS_Domain_Name: SMTP |    NetBIOS_Computer_Name: SMTP |    DNS_Domain_Name: 0xdeadbeefcafe.com | ...