|
OpenVAS Scanner 23.32.3
|
#include <glib.h>#include <gvm/util/kb.h>

Go to the source code of this file.
Data Structures | |
| struct | fixed_version |
| Fixed version. More... | |
| struct | version_range |
| Specify a version range. More... | |
| struct | vulnerable_pkg |
| Define a vulnerable package. More... | |
| struct | advisory |
| struct | advisories |
Typedefs | |
| typedef struct fixed_version | fixed_version_t |
| typedef struct version_range | version_range_t |
| typedef struct vulnerable_pkg | vuln_pkg_t |
| typedef struct advisory | advisory_t |
| typedef struct advisories | advisories_t |
Enumerations | |
| enum | fixed_type { UNKNOWN , RANGE , SINGLE } |
| Fixed version format. More... | |
Functions | |
| void | advisories_free (advisories_t *advisories) |
| Free()'s an advisories. | |
| void | set_lsc_flag (void) |
| Set lsc_flag to 1. | |
| int | lsc_has_run (void) |
| Get lsc_flag value. | |
| int | run_table_driven_lsc (const char *, const char *, const char *, const char *, const char *) |
| Publish the necessary data to start a Table driven LSC scan. | |
| char * | notus_get_response (const char *pkg_list, const char *os) |
| Sent the installed package list and OS to notus. | |
| advisories_t * | process_notus_response (const gchar *resp, const size_t len) |
| Process a json object which contains advisories and vulnerable packages. | |
| typedef struct advisories advisories_t |
Definition at line 80 of file table_driven_lsc.h.
| typedef struct advisory advisory_t |
Definition at line 70 of file table_driven_lsc.h.
| typedef struct fixed_version fixed_version_t |
Definition at line 33 of file table_driven_lsc.h.
| typedef struct version_range version_range_t |
Definition at line 42 of file table_driven_lsc.h.
| typedef struct vulnerable_pkg vuln_pkg_t |
Definition at line 58 of file table_driven_lsc.h.
| enum fixed_type |
Fixed version format.
| Enumerator | |
|---|---|
| UNKNOWN | |
| RANGE | |
| SINGLE | |
Definition at line 19 of file table_driven_lsc.h.
| void advisories_free | ( | advisories_t * | advisories | ) |
Free()'s an advisories.
Definition at line 549 of file table_driven_lsc.c.
References advisories::advisories, advisory_free(), and advisories::count.
Referenced by call_rs_notus(), Ensure(), nasl_notus(), and process_notus_response().


| int lsc_has_run | ( | void | ) |
Get lsc_flag value.
Definition at line 48 of file table_driven_lsc.c.
References lsc_flag.
Referenced by attack_host().

| char * notus_get_response | ( | const char * | pkg_list, |
| const char * | os ) |
Sent the installed package list and OS to notus.
| pkg_list | Installed package list |
| os | The target's OS |
Definition at line 918 of file table_driven_lsc.c.
References free_notus_info(), init_notus_info(), make_package_list_as_json_str(), parse_server(), and send_request().
Referenced by call_rs_notus(), and nasl_notus().


| 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
| resp | String containing the json object to be processed. |
| len | String length. |
Definition at line 616 of file table_driven_lsc.c.
References advisories_add(), advisories_free(), advisories_new(), advisory_add_vuln_pkg(), advisory_new(), len, name, RANGE, SINGLE, UNKNOWN, and vulnerable_pkg_new().
Referenced by call_rs_notus(), Ensure(), and nasl_notus().


| 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.
| scan_id | Scan Id. |
| kb | |
| ip_str | IP string of host. |
| hostname | Name of host. |
Definition at line 1057 of file table_driven_lsc.c.
References call_rs_notus(), get_status_of_table_driven_lsc_from_json(), hostname, make_table_driven_lsc_info_json_str(), payload, and scan_id.
Referenced by call_lsc().


| void set_lsc_flag | ( | void | ) |
Set lsc_flag to 1.
Definition at line 40 of file table_driven_lsc.c.
References lsc_flag.
Referenced by process_ipc_data().
