[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nessus-plugins-writers
Subject:    Re: [Plugins-writers] Getting VALUE from get_kb_item
From:       Josh Zlatin-Amishav <josh () tkos ! co ! il>
Date:       2006-03-16 14:11:43
Message-ID: Pine.LNX.4.64.0603161543440.16947 () maoz ! education ! gov ! il
[Download RAW message or body]

On Wed, 15 Mar 2006, HObbES wrote:

> I'm working on getting KB information from a plugin.
> 
> The KB item is (HTTP/application, value: version)
> 
> So I set_kb_item(HTTP/application, value: version).
> 
> The problem is get_kb_item(HTTP/application) will get me the KB item, but how to do \
> I get the version information to use from this kb item?

Try (where 1.3.4 is the value of HTTP/application):

set_kb_item(name:"HTTP/application", value:"1.3.4");
ver = get_kb_item("HTTP/application");
display("ver [", ver, "]\n");

--
  - Josh
_______________________________________________
Plugins-writers mailing list
Plugins-writers@list.nessus.org
http://mail.nessus.org/mailman/listinfo/plugins-writers


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic