"Biswas, Proneet" <[EMAIL PROTECTED]> writes:

>   I am new to NASL. I was trying to figure out how does NASL configure the
> OS dependencies.

Most of the time, you don't have to bother with that. There are two
exceptions where you want to disable a script for some systems:
- to speed Nessus up, if you are 100% sure that the flaw can only
exists in one OS,
- to remove false positives.

In the first case, you may use script_require_keys, and the test will
be disabled if the KB item is not here, _if_ "optimize test" is on.

In the second case, you have to write something like:
   os = get_kb_item("Host/OS");
   if("Windows" >!< os) exit(0);
(see backorifice1.nasl for example)

-- 
[EMAIL PROTECTED]       http://arboi.da.ru
FAQNOPI de fr.comp.securite http://faqnopi.da.ru/

Reply via email to