知识库,是一个包含脚本测试结果的键值对集合。使用script_dependencies(), get_kb_item(), set_kb_item()函数,可以优化你的脚本,避免做重复的事情。
这里是知识库的总结:
KB 的条目可能有多个值。比如,想象一下,远程主机上起了两个FTP服务,分别监听在21和2100端口上。那么Servces/ftp的值等于21和2100.如果这样的话,这个脚本会被执行两次,第一次,get_kb_item(“Services/ftp”)返回21,第二次返回2100。但这个行为是自动的,脚本中并不需要关系,只需要知道每次只会返回一个值。即使在真实条件下,也是这样,nessusd会控制整个流程。
Defined in : queso.nasl and nmap_wrapper.nasl Type : string Meaning : Remote operating system type
Defined in : ping_host.nasl and all the DoS plugins Type : boolean Meaning : The remote host is dead. If you set this item, then nessusd will interrupt the test of the host.
Defined in : find_service.nes Type : port number Meaning : port on which a web server is running. Returns 0 if no web server has been found.
Defined in : find_service.nes Type : port number Meaning : port on which an identd server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which ‘echo’ is running. Returns 0 if no such service has been found
Defined in : find_service.nes Type : port number Meaning : port on which a finger server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which an ftp server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which an SMTP server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which an SSH server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which an HTTP proxy is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which an imap server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a POP-1 server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a POP-2 server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a POP-3 server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which an NNTP server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a linuxconf server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a SWAT server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a shell is open to the world (usually a bad thing). Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a telnet server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a RealServer server is running. Returns 0 if no such server has been found
Defined in : find_service.nes Type : port number Meaning : port on which a NetBus server is running (usually not a good thing). Returns 0 if no such server has been found
Defined in : bind_version.nasl Type : string Meaning : version of the remote BIND daemon
Defined in : bootparamd.nasl Type : string Meaning : The bootparam RPC service is running
Defined in : ca_unicenter_file_transfer_service.nasl, ca_unicenter_transport_service.nasl, mssqlserver_detect.nasl and windows_detect.nasl Type : boolean value Meaning : The remote host appears to be running a Windows-compatible operating system (this test is only done regarding the number of the opened-ports)
Defined in : cfinger_search.nasl Type : boolean value Meaning : The finger daemon dumps the list of users if the query .** is made
Defined in : finger_0.nasl Type : boolean value Meaning : The finger daemon dumps a list of users if the query 0 is made
Defined in : finger_dot.nasl Type : boolean value Meaning : The finger daemon dumps a list of users if the query . is made
Defined in : finger_0.nasl Type : boolean value Meaning : The finger daemon is vulnerable to a redirection attack
Defined in : frontpage.nasl Type : boolean value Meaning : The remote web server is running frontpage extensions
Defined in : ftp_anonymous.nasl Type : boolean value Meaning : The remote FTP server accepts anonymous logins
Defined in : ftp_cwd_root.nasl Type : boolean value Meaning : It is possible to gain root on the remote FTP server using the CWD ~ bug (see CVE-1999-0082)
Defined in : ftp_overflow.nasl Type : boolean value Meaning : The remote server is a Microsoft FTP server, which closes the connection whenever a too long argument is issued.
Defined in : ftp_overflow.nasl Type : boolean value Meaning : the remote FTP server is either protected by tcp wrappers or the FTP port is open but closes the connection