#include <glib.h>
#include <gvm/util/kb.h>
Go to the source code of this file.
◆ advisories_t
◆ advisory_t
◆ fixed_version_t
◆ version_range_t
◆ vuln_pkg_t
◆ fixed_type
Fixed version format.
| Enumerator |
|---|
| UNKNOWN | |
| RANGE | |
| SINGLE | |
◆ advisories_free()
Free()'s an advisories.
- Parameters
-
| advisory | The advisories holder to be free()'ed. It free()'s all advisories members. |
◆ lsc_has_run()
◆ notus_get_response()
| char * notus_get_response |
( |
const char * | pkg_list, |
|
|
const char * | os ) |
Sent the installed package list and OS to notus.
- Parameters
-
| pkg_list | Installed package list |
| os | The target's OS |
- Returns
- String containing the server response or NULL Must be free()'ed by the caller.
◆ process_notus_response()
| advisories_t * process_notus_response |
( |
const gchar * | resp, |
|
|
const size_t | len ) |
Process a json object which contains advisories and vulnerable packages.
@description This is the body string in response get from an openvasd server
- Parameters
-
| resp | String containing the json object to be processed. |
| len | String length. |
- Returns
- a advisories_t struct containing all advisories and vulnerable packages. After usage must be free()'ed with advisories_free().
◆ run_table_driven_lsc()
| int run_table_driven_lsc |
( |
const char * | scan_id, |
|
|
const char * | ip_str, |
|
|
const char * | hostname, |
|
|
const char * | package_list, |
|
|
const char * | os_release ) |
Publish the necessary data to start a Table driven LSC scan.
If the gather-package-list.nasl plugin was launched, and it generated a valid package list for a supported OS, the table driven LSC scan which is subscribed to the topic will perform a scan an publish the the results to be handle by the sensor/client.
- Parameters
-
| scan_id | Scan Id. |
| kb | |
| ip_str | IP string of host. |
| hostname | Name of host. |
- Returns
- 0 on success, less than 0 on error.
◆ set_lsc_flag()
| void set_lsc_flag |
( |
void | | ) |
|