OpenVAS Scanner
7.0.1~git
|
Protos for NASL SMB API. More...
Go to the source code of this file.
Functions | |
tree_cell * | nasl_smb_versioninfo (lex_ctxt *lexic) |
Get a version string of the SMB implementation. More... | |
tree_cell * | nasl_smb_connect (lex_ctxt *lexic) |
Connect to SMB service and return a handle for it. More... | |
tree_cell * | nasl_smb_close (lex_ctxt *lexic) |
Close SMB service handle. More... | |
tree_cell * | nasl_smb_file_SDDL (lex_ctxt *lexic) |
Obtain Security Descriptor in SDDL format. More... | |
tree_cell * | nasl_smb_file_owner_sid (lex_ctxt *lexic) |
Obtain File Owner SID. More... | |
tree_cell * | nasl_smb_file_group_sid (lex_ctxt *lexic) |
Obtain File Group SID. More... | |
tree_cell * | nasl_smb_file_trustee_rights (lex_ctxt *lexic) |
Obtain File Trustee SID with Access Mask. More... | |
tree_cell * | nasl_win_cmd_exec (lex_ctxt *lexic) |
Execute the command in windows. More... | |
Protos for NASL SMB API.
This file contains the protos for nasl_smb.c
Definition in file nasl_smb.h.
Close SMB service handle.
[in] | lexic | Lexical context of NASL interpreter. |
Retrieves local variable "smb_handle" from the lexical context and closes the respective handle.
Definition at line 145 of file nasl_smb.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), TC::i_val, smb_close(), and TC::x.
Connect to SMB service and return a handle for it.
[in] | lexic | Lexical context of NASL interpreter. |
Retrieves local variables "host", "username", "password" and "share" from the lexical context, performs and connects to this given SMB service returning a handle for the service as integer.
Definition at line 90 of file nasl_smb.c.
References alloc_typed_cell(), CONST_INT, get_str_var_by_name(), TC::i_val, plug_get_host_ip(), struct_lex_ctxt::script_infos, smb_connect(), and TC::x.
Obtain File Group SID.
[in] | lexic | Lexical context of NASL interpreter. |
Retrieves local variable "smb_handle" and "filename" from the lexical context and perform file rights query.
Definition at line 261 of file nasl_smb.c.
References alloc_typed_cell(), CONST_DATA, get_int_var_by_name(), get_str_var_by_name(), TC::size, smb_file_GroupSID(), TC::str_val, and TC::x.
Obtain File Owner SID.
[in] | lexic | Lexical context of NASL interpreter. |
Retrieves local variable "smb_handle" and "filename" from the lexical context and perform file rights query.
Definition at line 218 of file nasl_smb.c.
References alloc_typed_cell(), CONST_DATA, get_int_var_by_name(), get_str_var_by_name(), TC::size, smb_file_OwnerSID(), TC::str_val, and TC::x.
Obtain Security Descriptor in SDDL format.
[in] | lexic | Lexical context of NASL interpreter. |
Retrieves local variable "smb_handle" and "filename" from the lexical context and perform file rights query.
Definition at line 175 of file nasl_smb.c.
References alloc_typed_cell(), CONST_DATA, get_int_var_by_name(), get_str_var_by_name(), TC::size, smb_file_SDDL(), TC::str_val, and TC::x.
Obtain File Trustee SID with Access Mask.
[in] | lexic | Lexical context of NASL interpreter. |
Retrieves local variable "smb_handle" and "filename" from the lexical context and perform file rights query.
Definition at line 304 of file nasl_smb.c.
References alloc_typed_cell(), CONST_DATA, get_int_var_by_name(), get_str_var_by_name(), TC::size, smb_file_TrusteeRights(), TC::str_val, and TC::x.
Get a version string of the SMB implementation.
[in] | lexic | Lexical context of NASL interpreter. |
Definition at line 62 of file nasl_smb.c.
References alloc_typed_cell(), CONST_DATA, TC::size, smb_versioninfo(), TC::str_val, and TC::x.
Execute the command in windows.
[in] | lexic | Lexical context of NASL interpreter. |
Retrieves local variables "cmd" from the lexical context, performs the windows command execution operation returning the result.
Definition at line 349 of file nasl_smb.c.
References alloc_typed_cell(), CONST_DATA, IMPORT, plug_get_host_ip(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, and TC::x.