From e5fc0946358c36bbb39b6d86df02138704f2a34e Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 5 Feb 2014 18:30:57 +0000 Subject: [PATCH] Add some NSEdoc for smbauth.get_host_info_from_security_blob --- nselib/smbauth.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nselib/smbauth.lua b/nselib/smbauth.lua index 0db8cd4e5..6bf9b4591 100644 --- a/nselib/smbauth.lua +++ b/nselib/smbauth.lua @@ -727,6 +727,21 @@ function get_security_blob(security_blob, ip, username, domain, password, passwo end +--- +-- @class table +-- @name host_info +-- @field target_realm +-- @field netbios_computer_name +-- @field netbios_domain_name +-- @field fqdn +-- @field dns_domain_name +-- @field dns_forest_name +-- @field timestamp + +--- +-- Gets host info from a security blob +-- @param security_blob The NTLM security blob +-- @return A host_info table containing the data in the blob. @see host_info function get_host_info_from_security_blob(security_blob) local ntlm_challenge = {} --local pos, identifier, message_type, domain_length, domain_max, domain_offset, server_flags, challenge, reserved, target_info_length, target_info_max, target_info_offset = bin.unpack("