OpenVAS Libraries
8.0.3
|
Stub implementatin for a wmi interface. More...
Functions | |
char * | wmi_versioninfo () |
Return version info for WMI implementation. More... | |
int | wmi_connect (int argc, char **argv, WMI_HANDLE *handle) |
Establish connection to a WMI service. More... | |
int | wmi_close (WMI_HANDLE handle) |
Close the connection handle for a WMI service. More... | |
int | wmi_query (WMI_HANDLE handle, const char *query, char **result) |
Query WMI service using a WQL query. More... | |
int | wmi_connect_rsop (int argc, char **argv, WMI_HANDLE *handle) |
Establish connection to a WMI RSOP service. More... | |
int | wmi_query_rsop (WMI_HANDLE handle, const char *query, char **res) |
WMI RSOP query. More... | |
int | wmi_connect_reg (int argc, char **argv, WMI_HANDLE *handle) |
Establish connection to a WMI Registry service. More... | |
int | wmi_reg_get_sz (WMI_HANDLE handle, unsigned int hive, const char *key, const char *key_name, char **res) |
Get Registry string value. More... | |
int | wmi_reg_enum_value (WMI_HANDLE handle, unsigned int hive, const char *key, char **res) |
Enumerate Registry values. More... | |
int | wmi_reg_enum_key (WMI_HANDLE handle, unsigned int hive, const char *key, char **res) |
Enumerate Registry keys. More... | |
int | wmi_reg_get_bin_val (WMI_HANDLE handle, unsigned int hive, const char *key, const char *val_name, char **res) |
Get Registry binary value. More... | |
int | wmi_reg_get_dword_val (WMI_HANDLE handle, unsigned int hive, const char *key, const char *val_name, char **res) |
Get Registry DWORD value. More... | |
int | wmi_reg_get_ex_string_val (WMI_HANDLE handle, unsigned int hive, const char *key, const char *val_name, char **res) |
Get Registry Expanded string value. More... | |
int | wmi_reg_get_mul_string_val (WMI_HANDLE handle, unsigned int hive, const char *key, const char *val_name, char **res) |
Get Registry multi-valued strings. More... | |
int | wmi_reg_get_qword_val (WMI_HANDLE handle, unsigned int hive, const char *key, const char *val_name, char **res) |
Get Registry QWORD value. More... | |
int | wmi_reg_set_dword_val (WMI_HANDLE handle, const char *key, const char *val_name, uint32_t val) |
Set Registry DWORD value. More... | |
int | wmi_reg_set_qword_val (WMI_HANDLE handle, const char *key, const char *val_name, uint64_t val) |
Set Registry QWORD value. More... | |
int | wmi_reg_set_ex_string_val (WMI_HANDLE handle, const char *key, const char *val_name, const char *val) |
Set Registry Expanded string value. More... | |
int | wmi_reg_set_string_val (WMI_HANDLE handle, const char *key, const char *val_name, const char *val) |
Set Registry string value. More... | |
int | wmi_reg_create_key (WMI_HANDLE handle, const char *key) |
Create Registry Key. More... | |
int | wmi_reg_delete_key (WMI_HANDLE handle, const char *key) |
Delete Registry Key. More... | |
Stub implementatin for a wmi interface.
This file contains an empty implementation that fulfills the wmi interface specfified in openvas_wmi_interface.h
int wmi_close | ( | WMI_HANDLE | handle | ) |
Close the connection handle for a WMI service.
[in] | handle | - WMI service connection handle |
int wmi_connect | ( | int | argc, |
char ** | argv, | ||
WMI_HANDLE * | handle | ||
) |
Establish connection to a WMI service.
[in] | username | - The username for getting access to WMI service |
[in] | password | - The password that corresponds to username |
[in] | host | - The host system to connect to |
[in] | namespace | - The WMI namespace of the service. |
[out] | handle | - A connection handle in case of success. |
int wmi_connect_reg | ( | int | argc, |
char ** | argv, | ||
WMI_HANDLE * | handle | ||
) |
Establish connection to a WMI Registry service.
[in] | username | - The username for getting access to WMI service |
[in] | password | - The password that corresponds to username |
[in] | host | - The host system to connect to |
[out] | handle | - A connection handle in case of success. |
int wmi_connect_rsop | ( | int | argc, |
char ** | argv, | ||
WMI_HANDLE * | handle | ||
) |
Establish connection to a WMI RSOP service.
[in] | username | - The username for getting access to WMI service |
[in] | password | - The password that corresponds to username |
[in] | host | - The host system to connect to |
[out] | handle | - A connection handle in case of success. |
int wmi_query | ( | WMI_HANDLE | handle, |
const char * | query, | ||
char ** | result | ||
) |
Query WMI service using a WQL query.
[in] | handle | - WMI connection handle |
[in] | query | - The WQL query string |
[out] | result | - Result of query as string |
int wmi_query_rsop | ( | WMI_HANDLE | handle, |
const char * | query, | ||
char ** | res | ||
) |
WMI RSOP query.
[in] | handle | - WMI connection handle |
[in] | query | - WQL RSOP query |
[in] | val_name | - Registry value to be queried |
int wmi_reg_create_key | ( | WMI_HANDLE | handle, |
const char * | key | ||
) |
Create Registry Key.
[in] | handle | - WMI connection handle |
[in] | key | - Registry key need to be created |
int wmi_reg_delete_key | ( | WMI_HANDLE | handle, |
const char * | key | ||
) |
Delete Registry Key.
[in] | handle | - WMI connection handle |
[in] | key | - Registry key need to be Deleted |
int wmi_reg_enum_key | ( | WMI_HANDLE | handle, |
unsigned int | hive, | ||
const char * | key, | ||
char ** | res | ||
) |
Enumerate Registry keys.
[in] | handle | - WMI connection handle |
[in] | hive | - Registry hive |
[in] | key | - Registry key |
[out] | res | - Result string |
int wmi_reg_enum_value | ( | WMI_HANDLE | handle, |
unsigned int | hive, | ||
const char * | key, | ||
char ** | res | ||
) |
Enumerate Registry values.
[in] | handle | - WMI connection handle |
[in] | hive | - Registry hive |
[in] | key | - Registry key name |
[out] | res | - Result string |
int wmi_reg_get_bin_val | ( | WMI_HANDLE | handle, |
unsigned int | hive, | ||
const char * | key, | ||
const char * | val_name, | ||
char ** | res | ||
) |
Get Registry binary value.
[in] | handle | - WMI connection handle |
[in] | hive | - Registry hive |
[in] | key | - Registry key containing the value to be queried |
[in] | val_name | - Registry value to be queried |
[out] | res | - Result string |
int wmi_reg_get_dword_val | ( | WMI_HANDLE | handle, |
unsigned int | hive, | ||
const char * | key, | ||
const char * | val_name, | ||
char ** | res | ||
) |
Get Registry DWORD value.
[in] | handle | - WMI connection handle |
[in] | hive | - Registry hive |
[in] | key | - Registry key containing the value to be queried |
[in] | val_name | - Registry value to be queried |
[out] | res | - Result string |
int wmi_reg_get_ex_string_val | ( | WMI_HANDLE | handle, |
unsigned int | hive, | ||
const char * | key, | ||
const char * | val_name, | ||
char ** | res | ||
) |
Get Registry Expanded string value.
[in] | handle | - WMI connection handle |
[in] | hive | - Registry hive |
[in] | key | - Registry key containing the value to be queried |
[in] | val_name | - Registry value to be queried |
[out] | res | - Result string |
int wmi_reg_get_mul_string_val | ( | WMI_HANDLE | handle, |
unsigned int | hive, | ||
const char * | key, | ||
const char * | val_name, | ||
char ** | res | ||
) |
Get Registry multi-valued strings.
[in] | handle | - WMI connection handle |
[in] | hive | - Registry hive |
[in] | key | - Registry key containing the value to be queried |
[in] | val_name | - Registry value to be queried |
[out] | res | - Result string |
int wmi_reg_get_qword_val | ( | WMI_HANDLE | handle, |
unsigned int | hive, | ||
const char * | key, | ||
const char * | val_name, | ||
char ** | res | ||
) |
Get Registry QWORD value.
[in] | handle | - WMI connection handle |
[in] | hive | - Registry hive |
[in] | key | - Registry key containing the value to be queried |
[in] | val_name | - Registry value to be queried |
[out] | res | - Result string |
int wmi_reg_get_sz | ( | WMI_HANDLE | handle, |
unsigned int | hive, | ||
const char * | key, | ||
const char * | key_name, | ||
char ** | res | ||
) |
Get Registry string value.
[in] | handle | - WMI connection handle |
[in] | hive | - Registry Hive |
[in] | key | - Registry key name |
[in] | key_name | - Registry value name. |
[out] | res | - Result string. |
int wmi_reg_set_dword_val | ( | WMI_HANDLE | handle, |
const char * | key, | ||
const char * | val_name, | ||
uint32_t | val | ||
) |
Set Registry DWORD value.
[in] | handle | - WMI connection handle |
[in] | key | - Registry key containing the value to be set |
[in] | val_name | - Registry value to set |
int wmi_reg_set_ex_string_val | ( | WMI_HANDLE | handle, |
const char * | key, | ||
const char * | val_name, | ||
const char * | val | ||
) |
Set Registry Expanded string value.
[in] | handle | - WMI connection handle |
[in] | key | - Registry key containing the value to be set |
[in] | val_name | - Registry value to set |
int wmi_reg_set_qword_val | ( | WMI_HANDLE | handle, |
const char * | key, | ||
const char * | val_name, | ||
uint64_t | val | ||
) |
Set Registry QWORD value.
[in] | handle | - WMI connection handle |
[in] | key | - Registry key containing the value to be set |
[in] | val_name | - Registry value to set |
int wmi_reg_set_string_val | ( | WMI_HANDLE | handle, |
const char * | key, | ||
const char * | val_name, | ||
const char * | val | ||
) |
Set Registry string value.
[in] | handle | - WMI connection handle |
[in] | key | - Registry key containing the value to be set |
[in] | val_name | - Registry value to set |
char* wmi_versioninfo | ( | void | ) |
Return version info for WMI implementation.