OpenVAS Scanner
7.0.1~git
|
Stub implementation for SMB interface. More...
Go to the source code of this file.
Functions | |
char * | smb_versioninfo () |
Return version info for SMB implementation. More... | |
int | smb_connect (const char *server, const char *share, const char *username, const char *password, SMB_HANDLE *con) |
Establish connection to a SMB service. More... | |
int | smb_close (SMB_HANDLE handle) |
Close the connection handle for SMB service. More... | |
char * | smb_file_SDDL (SMB_HANDLE handle, const char *filename) |
Obtain Windows file rights in SDDL format. More... | |
char * | smb_file_OwnerSID (SMB_HANDLE handle, const char *filename) |
Obtain the SID of the Owner for a given file/path. More... | |
char * | smb_file_GroupSID (SMB_HANDLE handle, const char *filename) |
Obtain the SID of the Group for a given file/path. More... | |
char * | smb_file_TrusteeRights (SMB_HANDLE handle, const char *filename) |
Obtain the Trustee SID and their rights for a given file/path. More... | |
int | wincmd (int argc, char *argv[], char **res) |
Command Execution in Windows. More... | |
Stub implementation for SMB interface.
This file contains an empty implementation that fulfills the SMB interface specfified in openvas_smb_interface.h
Definition in file smb_interface_stub.c.
int smb_close | ( | SMB_HANDLE | handle | ) |
Close the connection handle for SMB service.
[in] | handle | - SMB connection handle |
Definition at line 81 of file smb_interface_stub.c.
Referenced by nasl_smb_close().
int smb_connect | ( | const char * | server, |
const char * | share, | ||
const char * | username, | ||
const char * | password, | ||
SMB_HANDLE * | con | ||
) |
Establish connection to a SMB service.
[in] | server | - The host system to connect to |
[in] | share | - The file system share. |
[in] | username | - The username for getting access to SMB service |
[in] | password | - The password that corresponds to username |
[out] | con | - A connection handle in case of success. |
Definition at line 62 of file smb_interface_stub.c.
Referenced by nasl_smb_connect().
char* smb_file_GroupSID | ( | SMB_HANDLE | handle, |
const char * | filename | ||
) |
Obtain the SID of the Group for a given file/path.
[in] | handle | - SMB connection handle |
[in] | filename | - File system path |
Definition at line 131 of file smb_interface_stub.c.
Referenced by nasl_smb_file_group_sid().
char* smb_file_OwnerSID | ( | SMB_HANDLE | handle, |
const char * | filename | ||
) |
Obtain the SID of the Owner for a given file/path.
[in] | handle | - SMB connection handle |
[in] | filename | - File system path |
Definition at line 114 of file smb_interface_stub.c.
Referenced by nasl_smb_file_owner_sid().
char* smb_file_SDDL | ( | SMB_HANDLE | handle, |
const char * | filename | ||
) |
Obtain Windows file rights in SDDL format.
[in] | handle | - SMB connection handle |
[in] | filename | - File system path |
Definition at line 97 of file smb_interface_stub.c.
Referenced by nasl_smb_file_SDDL().
char* smb_file_TrusteeRights | ( | SMB_HANDLE | handle, |
const char * | filename | ||
) |
Obtain the Trustee SID and their rights for a given file/path.
[in] | handle | - SMB connection handle |
[in] | filename | - File system path |
Definition at line 148 of file smb_interface_stub.c.
Referenced by nasl_smb_file_trustee_rights().
char* smb_versioninfo | ( | void | ) |
Return version info for SMB implementation.
Definition at line 41 of file smb_interface_stub.c.
Referenced by nasl_smb_versioninfo().
int wincmd | ( | int | argc, |
char * | argv[], | ||
char ** | res | ||
) |
Command Execution in Windows.
[in] | argc | - Connection strings |
[in] | argv | - Number of arguments |
Definition at line 165 of file smb_interface_stub.c.