> Gesendet: Montag, 29. Juli 2013 um 15:47 Uhr
> Von: "Jan-Oliver Wagner" <[email protected]>
> An: [email protected]
> Betreff: Re: [Openvas-plugins] Sharing results between scanned hosts?
>
> I am currently no so deep involved in the NVT development myself,
> but there is a scanner option "network_scan" that allows for sharing
> information across hosts in a pre-scan or early phase.
> Unfortunately this is clearly underdocumented.
Hi,
and thanks for your reply. This info is exactly what i was looking for.
If someone is stumbling over this post some more infos:
I need to share a random number from rand() between two or more hosts.
My solution for this is to set the network_scan scanner option to yes and
create a new NVT like:
----------------
if(description)
{
<snip>
script_category(ACT_INIT);
exit(0);
}
targets = split(network_targets(),sep: ", ", keep: FALSE);
random_value = rand();
foreach f (targets) {
set_kb_item(name: f + "/foo/bar", value: random_value);
}
exit(0);
---------------
Now the other NVTs which needs this random number can get this value
from the kb shared between the hosts:
random_login = get_kb_item("foo/bar");
_______________________________________________
Openvas-plugins mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins