OpenVAS Scanner
7.0.0~git
|
Unix SMB/Netbios implementation. Version 1.9. More...
Go to the source code of this file.
Macros | |
#define | uint8 uint8_t |
#define | False 0 |
#define | True 1 |
Typedefs | |
typedef unsigned int | bool |
Functions | |
void | E_P24 (const uchar *p21, const uchar *c8, uchar *p24) |
void | E_P16 (uchar *p14, uchar *p16) |
int | strupper_w (smb_ucs2_t *s) |
void | SMBsesskeygen_lm_sess_key_ntlmssp (const uchar lm_hash[16], const uchar lm_resp[24], uint8 sess_key[16]) |
void | SMBsesskeygen_ntv1_ntlmssp (const uchar kr[16], const uchar *nt_resp, uint8 sess_key[16]) |
void | SMBOWFencrypt_ntlmssp (const uchar passwd[16], const uchar *c8, uchar p24[24]) |
void | SMBencrypt_hash_ntlmssp (const uchar lm_hash[16], const uchar *c8, uchar p24[24]) |
void | SMBNTencrypt_hash_ntlmssp (const uchar nt_hash[16], uchar *c8, uchar *p24) |
bool | E_deshash_ntlmssp (const char *passwd, uint8_t pass_len, uchar p16[16]) |
void | SamOEMhash (uchar *data, const uchar *key, int val) |
void | SMBOWFencrypt_ntv2_ntlmssp (const uchar kr[16], const uint8_t *srv_chal, int srv_chal_len, const uint8_t *cli_chal, int cli_chal_len, uchar resp_buf[16]) |
void | SMBsesskeygen_ntv2_ntlmssp (const uchar kr[16], const uchar *nt_resp, uint8 sess_key[16]) |
uint8_t * | NTLMv2_generate_client_data_ntlmssp (const char *addr_list, int address_list_len) |
void | NTLMv2_generate_response_ntlmssp (const uchar ntlm_v2_hash[16], const char *server_chal, const char *address_list, int address_list_len, uint8_t *nt_response) |
void | LMv2_generate_response_ntlmssp (const uchar ntlm_v2_hash[16], const char *server_chal, uint8_t *lm_response) |
void | SMBNTLMv2encrypt_hash_ntlmssp (const char *user, const char *domain, uchar ntlm_v2_hash[16], const char *server_chal, const char *address_list, int address_list_len, unsigned char *lm_response, unsigned char *nt_response, unsigned char *user_session_key) |
Unix SMB/Netbios implementation. Version 1.9.
a partial implementation of DES designed for use in the SMB authentication protocol
Definition in file smb_crypt.h.
#define False 0 |
Definition at line 45 of file smb_crypt.h.
#define True 1 |
Definition at line 46 of file smb_crypt.h.
#define uint8 uint8_t |
Definition at line 41 of file smb_crypt.h.
typedef unsigned int bool |
Definition at line 44 of file smb_crypt.h.
Creates the DES forward-only Hash of the users password in DOS ASCII charset
passwd | password in 'unix' charset. |
p16 | return password hashed with DES, caller allocated 16 byte buffer |
Definition at line 450 of file smb_crypt.c.
References E_P16(), False, True, and ZERO_STRUCT.
Referenced by ntlmssp_genauth_ntlm(), and ntlmssp_genauth_ntlm2().
Definition at line 315 of file smb_crypt.c.
References smbhash(), and uchar.
Referenced by E_deshash_ntlmssp(), and nasl_lm_owf_gen().
Definition at line 323 of file smb_crypt.c.
References smbhash().
Referenced by nasl_ntlmv1_hash(), and SMBOWFencrypt_ntlmssp().
void LMv2_generate_response_ntlmssp | ( | const uchar | ntlm_v2_hash[16], |
const char * | server_chal, | ||
uint8_t * | lm_response | ||
) |
Definition at line 545 of file smb_crypt.c.
References generate_random_buffer_ntlmssp(), SMBOWFencrypt_ntv2_ntlmssp(), and uchar.
Referenced by SMBNTLMv2encrypt_hash_ntlmssp().
uint8_t* NTLMv2_generate_client_data_ntlmssp | ( | const char * | addr_list, |
int | address_list_len | ||
) |
Definition at line 489 of file smb_crypt.c.
References generate_random_buffer_ntlmssp(), put_long_date_ntlmssp(), SIVAL, and uchar.
Referenced by NTLMv2_generate_response_ntlmssp().
void NTLMv2_generate_response_ntlmssp | ( | const uchar | ntlm_v2_hash[16], |
const char * | server_chal, | ||
const char * | address_list, | ||
int | address_list_len, | ||
uint8_t * | nt_response | ||
) |
Definition at line 520 of file smb_crypt.c.
References NTLMv2_generate_client_data_ntlmssp(), SMBOWFencrypt_ntv2_ntlmssp(), and uchar.
Referenced by SMBNTLMv2encrypt_hash_ntlmssp().
Definition at line 331 of file smb_crypt.c.
Referenced by ntlmssp_genauth_keyexchg().
Definition at line 407 of file smb_crypt.c.
References SMBOWFencrypt_ntlmssp(), and uchar.
Referenced by ntlmssp_genauth_ntlm().
Definition at line 419 of file smb_crypt.c.
References SMBOWFencrypt_ntlmssp(), and uchar.
Referenced by ntlmssp_genauth_ntlm(), and ntlmssp_genauth_ntlm2().
void SMBNTLMv2encrypt_hash_ntlmssp | ( | const char * | user, |
const char * | domain, | ||
uchar | ntlm_v2_hash[16], | ||
const char * | server_chal, | ||
const char * | address_list, | ||
int | address_list_len, | ||
unsigned char * | lm_response, | ||
unsigned char * | nt_response, | ||
unsigned char * | user_session_key | ||
) |
Definition at line 397 of file smb_crypt.c.
References E_P24(), uchar, and ZERO_STRUCT.
Referenced by SMBencrypt_hash_ntlmssp(), SMBNTencrypt_hash_ntlmssp(), and SMBsesskeygen_lm_sess_key_ntlmssp().
void SMBOWFencrypt_ntv2_ntlmssp | ( | const uchar | kr[16], |
const uint8_t * | srv_chal, | ||
int | srv_chal_len, | ||
const uint8_t * | cli_chal, | ||
int | cli_chal_len, | ||
uchar | resp_buf[16] | ||
) |
Referenced by LMv2_generate_response_ntlmssp(), nasl_ntlmv2_hash(), and NTLMv2_generate_response_ntlmssp().
void SMBsesskeygen_lm_sess_key_ntlmssp | ( | const uchar | lm_hash[16], |
const uchar | lm_resp[24], | ||
uint8 | sess_key[16] | ||
) |
Definition at line 429 of file smb_crypt.c.
References SMBOWFencrypt_ntlmssp(), and uchar.
Referenced by ntlmssp_genauth_ntlm().
Definition at line 386 of file smb_crypt.c.
References mdfour_ntlmssp().
Referenced by ntlmssp_genauth_ntlm(), and ntlmssp_genauth_ntlm2().
Definition at line 476 of file smb_crypt.c.
References hmac_md5_final(), hmac_md5_init_limK_to_64(), and hmac_md5_update().
Referenced by SMBNTLMv2encrypt_hash_ntlmssp().
int strupper_w | ( | smb_ucs2_t * | s | ) |
Definition at line 48 of file smb_crypt2.c.
References toupper_w().
Referenced by nasl_ntv2_owf_gen().