Creating a KBaseItem:
From scripting you can create a variable of the type
KBaseItem by the following code:
var item = new TKBaseItem();
After completing all the information on a knowledge base item, it can be send to the scan using the
AddKBItem global function.
Example:
var kbi = new
TKBaseItem();
kbi.
Name = "POP3 server running";
kbi.
Text = "A POP3 server is running on TCP port 110.";
kbi.
AddReference("Wikipedia entry about POP3", "http://en.wikipedia.org/wiki/Post_Office_Protocol");
AddKBItem(kbi);
Functions:
Properties:
function AddReference(Name, URL)
With this function reference links can be added to a knowledge base item.
Parameter list:
- Name
String with the title of the reference.
- URL
String with the location URL of the reference.
function ClearReferences()
Deletes all references from the knowledge base item.
property Name
Read and write string property with the title of the knowledge base item.
property Text
Read and write string property with the content of the knowledge base item.