|
OpenVAS Scanner 23.40.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 | notus_advisory |
| struct | skiron_advisory |
| struct | advisories |
Typedefs | |
| typedef enum advisory_type | advisory_type_t |
| typedef struct fixed_version | fixed_version_t |
| typedef struct version_range | version_range_t |
| typedef struct vulnerable_pkg | vuln_pkg_t |
| typedef struct notus_advisory | advisory_t |
| typedef struct skiron_advisory | skiron_advisory_t |
| typedef struct advisories | advisories_t |
Enumerations | |
| enum | fixed_type { UNKNOWN , RANGE , SINGLE } |
| Fixed version format. More... | |
| enum | advisory_type { NOTUS , SKIRON } |
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 * | lsc_get_response (const char *pkg_list, const char *os) |
| Sent the installed package list and OS to notus. | |
| advisories_t * | lsc_process_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 100 of file table_driven_lsc.h.
| typedef struct notus_advisory advisory_t |
Definition at line 77 of file table_driven_lsc.h.
| typedef enum advisory_type advisory_type_t |
Definition at line 32 of file table_driven_lsc.h.
| typedef struct fixed_version fixed_version_t |
Definition at line 41 of file table_driven_lsc.h.
| typedef struct skiron_advisory skiron_advisory_t |
Definition at line 85 of file table_driven_lsc.h.
| typedef struct version_range version_range_t |
Definition at line 50 of file table_driven_lsc.h.
| typedef struct vulnerable_pkg vuln_pkg_t |
Definition at line 66 of file table_driven_lsc.h.
| enum advisory_type |
| Enumerator | |
|---|---|
| NOTUS | |
| SKIRON | |
Definition at line 26 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.
| notus_advisory | The advisories holder to be free()'ed. It free()'s all advisories members. |
Definition at line 589 of file table_driven_lsc.c.
References advisories::advisories, advisory_free(), advisories::count, NOTUS, advisories::skiron_advisories, skiron_advisory_free(), and advisories::type.
Referenced by call_rs_notus(), Ensure(), lsc_process_response_notus(), parse_notus(), and parse_skiron().


| char * lsc_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 1012 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().


| 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().

| advisories_t * lsc_process_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 821 of file table_driven_lsc.c.
References len, lsc_process_response_notus(), and lsc_process_response_skiron().
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.
Definition at line 1167 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().
