OpenVAS Scanner
7.0.1~git
|
Functions to support Authentication(type3 message) for NTLMSSP (NTLMv2, NTLM2, NTLM, KEY GEN) More...
Go to the source code of this file.
Macros | |
#define | NTLMSSP_NEGOTIATE_LM_KEY 0x00000080 |
Functions | |
void | ntlmssp_genauth_ntlmv2 (char *user, char *domain, char *address_list, int address_list_len, char *challenge_data, uint8_t *lm_response, uint8_t *nt_response, uint8_t *session_key, unsigned char *ntlmv2_hash) |
void | ntlmssp_genauth_ntlm2 (char *password, uint8_t pass_len, uint8_t *lm_response, uint8_t *nt_response, uint8_t *session_key, char *challenge_data, unsigned char *nt_hash) |
void | ntlmssp_genauth_ntlm (char *password, uint8_t pass_len, uint8_t *lm_response, uint8_t *nt_response, uint8_t *session_key, char *challenge_data, unsigned char *nt_hash, int neg_flags) |
uint8_t * | ntlmssp_genauth_keyexchg (uint8_t *session_key, char *challenge_data, unsigned char *nt_hash, uint8_t *new_sess_key) |
Functions to support Authentication(type3 message) for NTLMSSP (NTLMv2, NTLM2, NTLM, KEY GEN)
Definition in file ntlmssp.c.
#define NTLMSSP_NEGOTIATE_LM_KEY 0x00000080 |
Definition at line 30 of file ntlmssp.c.
Referenced by ntlmssp_genauth_ntlm().
uint8_t* ntlmssp_genauth_keyexchg | ( | uint8_t * | session_key, |
char * | challenge_data, | ||
unsigned char * | nt_hash, | ||
uint8_t * | new_sess_key | ||
) |
Definition at line 99 of file ntlmssp.c.
References generate_random_buffer_ntlmssp(), SamOEMhash(), and uint8.
Referenced by nasl_keyexchg().
void ntlmssp_genauth_ntlm | ( | char * | password, |
uint8_t | pass_len, | ||
uint8_t * | lm_response, | ||
uint8_t * | nt_response, | ||
uint8_t * | session_key, | ||
char * | challenge_data, | ||
unsigned char * | nt_hash, | ||
int | neg_flags | ||
) |
Definition at line 75 of file ntlmssp.c.
References E_deshash_ntlmssp(), NTLMSSP_NEGOTIATE_LM_KEY, SMBencrypt_hash_ntlmssp(), SMBNTencrypt_hash_ntlmssp(), SMBsesskeygen_lm_sess_key_ntlmssp(), SMBsesskeygen_ntv1_ntlmssp(), and uchar.
Referenced by nasl_ntlm_response().
void ntlmssp_genauth_ntlm2 | ( | char * | password, |
uint8_t | pass_len, | ||
uint8_t * | lm_response, | ||
uint8_t * | nt_response, | ||
uint8_t * | session_key, | ||
char * | challenge_data, | ||
unsigned char * | nt_hash | ||
) |
Definition at line 44 of file ntlmssp.c.
References E_deshash_ntlmssp(), generate_random_buffer_ntlmssp(), hmac_md5(), MD5Final(), MD5Init(), MD5Update(), SMBNTencrypt_hash_ntlmssp(), SMBsesskeygen_ntv1_ntlmssp(), and uchar.
Referenced by nasl_ntlm2_response().
void ntlmssp_genauth_ntlmv2 | ( | char * | user, |
char * | domain, | ||
char * | address_list, | ||
int | address_list_len, | ||
char * | challenge_data, | ||
uint8_t * | lm_response, | ||
uint8_t * | nt_response, | ||
uint8_t * | session_key, | ||
unsigned char * | ntlmv2_hash | ||
) |
Definition at line 33 of file ntlmssp.c.
References SMBNTLMv2encrypt_hash_ntlmssp().
Referenced by nasl_ntlmv2_response().