Hi,
get_kb_item() and get_kb_list can be used to retrieve the value of KB
items. But how to get both the KB item name and value? What I want to do is
writing a nasl to query the KB and get a list of all the open ports. I use
get_kb_list("Ports/*")
But only the value of the kb items are returned, i.e. I only got a list of
'1's. Alternatively, I can write a for loop to query every port, but is
there a more efficient way to do this?
Thanks,
-Lei
get_kb_item() and get_kb_list can be used to retrieve the value of KB
items. But how to get both the KB item name and value? What I want to do is
writing a nasl to query the KB and get a list of all the open ports. I use
get_kb_list("Ports/*")
But only the value of the kb items are returned, i.e. I only got a list of
'1's. Alternatively, I can write a for loop to query every port, but is
there a more efficient way to do this?
Thanks,
-Lei