diff --git a/scripts/http-ntlm-info.nse b/scripts/http-ntlm-info.nse index 813b40397..acb59e486 100644 --- a/scripts/http-ntlm-info.nse +++ b/scripts/http-ntlm-info.nse @@ -34,7 +34,7 @@ available. -- | DNS_Domain_Name: somedomain.com -- | DNS_Computer_Name: web-test2.somedomain.com -- | DNS_Tree_Name: somedomain.com --- |_ OS_Version: 6.1 (Build 7601) +-- |_ Product_Version: 6.1.7601 -- --@xmloutput -- TELME @@ -42,7 +42,7 @@ available. -- GT4 -- telme.somedomain.com -- gt4.telme.somedomain.com --- 5.0 (Build 2195) +-- 5.0.2195 author = "Justin Cacak" @@ -52,26 +52,17 @@ categories = {"default", "discovery", "safe"} portrule = shortport.http --- TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw== --- Ref: http://davenport.sourceforge.net/ntlm.html#theType1Message -local auth_blob = base64.enc( - "NTLMSSP\x00" .. - "\x01\x00\x00\x00" .. -- NTLM Type 1 message - bin.pack(" 48 and target_offset_dec ~= 48 then - -- Get product major version - local major_version = data:sub(49, 50) - local pos, major_version_dec = bin.unpack("C", major_version) - - -- Get product minor version - local minor_version = data:sub(50, 51) - local pos, minor_version_dec = bin.unpack("C", minor_version) - - -- Get product build version - local build = data:sub(51, 53) - local pos, build_dec = bin.unpack("