NVT tests to make sure other tests are executed

nasl

#1

Hello, Is there any way to have a vulnerability test that can make sure a couple of other tests are executed?


#2

The most straightforward way to do it is to set_kb_item() on a unique key in the others tests, then verify the value in the verification VT (this VT should have those tests in its script_dependencies() so that it runs after them.)


#3

Thank you again for your reply. Can we use category ACT_END to make sure it runs at the end?


#4

Sure, if you want it to run at the end of the scan. But there is no assurance that it will run before/after other ACT_END VTs.