|
OpenVAS Scanner 23.23.1
|
Stub implementation for a wmi interface. More...
Functions | |
| char * | wmi_versioninfo () |
| Return version info for WMI implementation. | |
| WMI_HANDLE | wmi_connect (int argc, char **argv) |
| Establish connection to a WMI service. | |
| int | wmi_close (WMI_HANDLE handle) |
| Close the connection handle for a WMI service. | |
| int | wmi_query (WMI_HANDLE handle, const char *query, char **result) |
| Query WMI service using a WQL query. | |
| WMI_HANDLE | wmi_connect_rsop (int argc, char **argv) |
| Establish connection to a WMI RSOP service. | |
| int | wmi_query_rsop (WMI_HANDLE handle, const char *query, char **res) |
| WMI RSOP query. | |
| WMI_HANDLE | wmi_connect_reg (int argc, char **argv) |
| Establish connection to a WMI Registry service. | |
| int | wmi_reg_get_sz (WMI_HANDLE handle, unsigned int hive, const char *key, const char *key_name, char **res) |
| Get Registry string value. | |
| int | wmi_reg_enum_value (WMI_HANDLE handle, unsigned int hive, const char *key, char **res) |
| Enumerate Registry values. | |
| int | wmi_reg_enum_key (WMI_HANDLE handle, unsigned int hive, const char *key, char **res) |
| Enumerate Registry keys. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| int | wmi_reg_set_dword_val (WMI_HANDLE handle, const char *key, const char *val_name, uint32_t val) |
| Set Registry DWORD value. | |
| int | wmi_reg_set_qword_val (WMI_HANDLE handle, const char *key, const char *val_name, uint64_t val) |
| Set Registry QWORD value. | |
| 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. | |
| int | wmi_reg_set_string_val (WMI_HANDLE handle, const char *key, const char *val_name, const char *val) |
| Set Registry string value. | |
| int | wmi_reg_create_key (WMI_HANDLE handle, const char *key) |
| Create Registry Key. | |
| int | wmi_reg_delete_key (WMI_HANDLE handle, const char *key) |
| Delete Registry Key. | |
Stub implementation 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 |
| WMI_HANDLE wmi_connect | ( | int | argc, |
| char ** | argv ) |
Establish connection to a WMI service.
| [in] | argc | Number of arguments. |
| [in] | argv | Array of arguments. |
| WMI_HANDLE wmi_connect_reg | ( | int | argc, |
| char ** | argv ) |
Establish connection to a WMI Registry service.
| [in] | argc | Number of arguments. |
| [in] | argv | Array of arguments. |
| WMI_HANDLE wmi_connect_rsop | ( | int | argc, |
| char ** | argv ) |
Establish connection to a WMI RSOP service.
| [in] | argc | Number of arguments. |
| [in] | argv | Array of arguments. |
| 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] | res | - 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.