On Fri, May 10, 2002 at 07:02:20PM +0530, Priyaranjan Dash wrote:
>    Link: File-List
> 
>    Hi,
> 
>    Does anybody know if there is a way in NASL by which we can get to know
>    the version no of a linux OS running on the host. I think there must be
>    some function in NASL that returns the details of the OS including the
>    version no.


Do :

version = get_kb_item("Host/OS");

and make your plugin dependant on nmap_wrapper.nes and/or queso.nes

>    Similarly we want to test a network and find out if a particular patch is
>    running on all the hosts. If the patch is not there in a  particular host
>    , then it should show in the reports .is there a way to do it....??

If it's a non-windows patch, there's no easy solution to do that
(besides giving the root password to a script and let it connect to the
remote host via ssh/bash, but no script does that).

If you're talking about a Windows patch, you can dig thru the remote
registry (provided you give nessus the proper credentials) - see the
smb_nt_XXXXX.nasl plugins for examples.


                                -- Renaud

Reply via email to