############################################################################## # # MailEnable Version Detection # # Copyright: OS2A and it's member companies # # Date Written: 2006/03/23 # # $Revision: 1.4 $ # # $Log: os2a_mailenable_version_601562.nasl,v $ # Revision 1.4 2006/09/20 11:11:29 ksjayesh # new ntlm changes # # Revision 1.1 2006/08/09 14:44:19 hpavithra # Scripts with ntlmv2 changes # # Revision 1.2 2006/08/04 01:03:19 bchandra # Changes for new NTLMv2 # # Revision 1.1 2006/03/24 10:10:04 ksjayesh # To Production # # Revision 1.1 2006/03/23 11:34:16 nrnandini # - General script to get MailEnable version. # issue #2113 # # # ------------------------------------------------------------------------ # This program was written by OS2A and/or it's member companies and is # licensed under the GNU GPL license. Please see below for details. This # header contains information regarding licensing terms under the GPL, and # information regarding obtaining source code from the Author. Consequently, # pursuant to section 3(c) of the GPL, you must accompany the information # found in this header with any distribution you make of this Program. # ------------------------------------------------------------------------ ############################################################################## if(description) { script_id(601562); script_copyright(english:"Copyright (C) 2006 OS2A"); script_version("$Revision: 1.4 $"); script_category(ACT_GATHER_INFO); script_family(english:"General"); name["english"] = "MailEnable Version Detection"; script_name(english:name["english"]); summary["english"] = "Get MailEnable version from registry"; script_summary(english:summary["english"]); desc["english"] = " Overview : This script will set kb_item for MailEnable Enterprise, Professional and Standard Editions. Risk factor : Informational"; script_description(english:desc["english"]); script_dependencies("smb_hotfixes.nasl"); script_require_keys("SMB/WindowsVersion"); exit(0); } include("ntlmv2.inc"); if(!get_kb_item("SMB/WindowsVersion")){ exit(0); } mailEnable = "SOFTWARE\Mail Enable\Mail Enable"; # Set kb item for MailEnable Enterprise Edition. mailenbEntVer = cx_registry_get_sz(key:mailEnable, item:"Enterprise Version"); if(mailenbEntVer){ set_kb_item(name:"MailEnable/Ent/Version", value:mailenbEntVer); } # Set kb item for MailEnable Professional Edition. mailenbProVer = cx_registry_get_sz(key:mailEnable, item:"Professional Version"); if(mailenbProVer){ set_kb_item(name:"MailEnable/Proff/Version", value:mailenbProVer); } # Set kb item for MailEnable Standard Edition. mailenbStdVer = cx_registry_get_sz(key:mailEnable, item:"Version"); if(mailenbStdVer){ set_kb_item(name:"MailEnable/Std/Version", value:mailenbStdVer); }