From d9b73da3a120c4d92d6ad40392dd613480d4a347 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 8 Sep 2012 17:05:33 +0000 Subject: [PATCH] Give sample return values for smb.get_os. --- nselib/smb.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nselib/smb.lua b/nselib/smb.lua index a8641ffaa..7ce0da05f 100644 --- a/nselib/smb.lua +++ b/nselib/smb.lua @@ -3242,6 +3242,21 @@ end ---Retrieve information about the host's operating system. This should always be possible to call, as long as there isn't already -- a SMB session established. -- +-- The returned table has the following keys (shown here with sample values). +-- * os: "Windows 7 Professional 7601 Service Pack 1" +-- * lanmanager: "Windows 7 Professional 6.1" +-- * domain: "WORKGROUP" +-- * server: "COMPUTERNAME" +-- * time: 1347121470.0462 +-- * date: "2012-09-08 09:24:30" +-- * timezone: -7 +-- * timezone_str: UTC-7 +-- The table may also contain these additional keys: +-- * fqdn: "Sql2008.lab.test.local" +-- * domain_dns: "lab.test.local" +-- * forest_dns: "test.local" +-- * workgroup +-- --@param host The host object --@return (status, data) If status is true, data is a table of values; otherwise, data is an error message. function get_os(host)