Anyone made nasl files for these two yet? I am trying to do one for Sophos,
and so far have the attached - but it never discovers anything. Also I can't
see any pattern file numbering that's worth anything, so I'm going by the
Sophos "engine number" of 3.80.

When I start nessusd, I see it loading sophos_installed.nasl, but when I go
to the nessus client, I can't see it (even if I filter) - whereas I can when
I filter on "mcafee".

Can anyone tell me what I've got wrong here? 

Also, I'm assuming the checking-for-running-service bit appears to ignore
extensions - is that correct?  I have a check for "SWEEPSRV", but Task
Manager shows it as "SWEEPSRV.EXE" - which should be used?

Thanks

-- 
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
# This script was written by Jason Haar <[EMAIL PROTECTED]>
#
#
if(description)
{
 script_id(12212);
 script_version("$Revision: 1.0 $");
 name["english"] = "Sophos Anti Virus Check";
 script_name(english:name["english"]);
 desc["english"] = "
This plugin checks that the remote host has the Sophos Antivirus installed 
and then makes sure the latest Vdefs are loaded.

Solution : Make sure Sophos is installed and using the latest VDEFS.
Risk factor : High";

 script_description(english:desc["english"]);
 summary["english"] = "Checks that the remote host has Sophos Antivirus installed and 
then makes sure the latest Vdefs are loaded."; 
 script_summary(english:summary["english"]);
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2004 Jason Haar"); 
 family["english"] = "Windows"; 
 script_family(english:family["english"]);
 script_dependencies("netbios_name_get.nasl", "smb_login.nasl", 
"smb_registry_full_access.nasl", "smb_enum_services.nasl"); 
 script_require_keys("SMB/name", "SMB/login", "SMB/password", 
"SMB/registry_full_access", "SMB/domain","SMB/transport","SMB/svcs");
 script_require_ports(139, 445); 
 script_require_keys("SMB/WindowsVersion");
 exit(0);
}
include("smb_nt.inc");

services = get_kb_item("SMB/svcs");
if ( ! services ) exit(0);

access = get_kb_item("SMB/registry_full_access");
if ( ! access ) exit(0);

port = kb_smb_transport();
if(!port)port = 139;

key = "SOFTWARE\Sophos\SweepNT\";
item = "Version";

#Remember that registry_get_sz looks up HKLM\xxxxxxxxxxxxx

Vdefs = string(registry_get_sz(key:key, item:item));
if(!Vdefs) exit(0);

if(Vdefs)
  {
   mustbe = 3.80;
#
# Modify the date on the line below as newer Vdefs are released. 
#
    info = "
The remote host has an out-dated version (" + Vdefs + ") of the Sophos
virus engine installed.";
    if(Vdefs < mustbe )security_hole(port:port, data:info);
  }



#
# Checks to see if the service is running (requires null sessons and messenger 
service).
#
if("[SWEEPSRV]" >!< services) {
        report = "
The remote host has the Sophos antivirus installed, but it
is not running.

As a result, the remote host might be infected by viruses received by
email or other means. 

Solution : Configure the remote AntiVirus to check for updates regularly.
Risk Factor : Medium";
        security_warning(port:port, data:report);
        }


_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to