OpenVAS Scanner 21.4.1
|
Unix SMB/Netbios implementation. Version 1.9. More...
Macros | |
#define | int16 1 |
#define | FSTRING_LEN 256 |
Typedefs | |
typedef char | fstring[FSTRING_LEN] |
Functions | |
static void | permute (char *out, char *in, const uchar *p, int n) |
static void | lshift (char *d, int count, int n) |
static void | concat (char *out, char *in1, char *in2, int l1, int l2) |
static void | xor (char *out, char *in1, char *in2, int n) |
static void | dohash (char *out, char *in, char *key, int forw) |
static void | str_to_key (const uchar *str, uchar *key) |
void | smbhash (uchar *out, const uchar *in, const uchar *key, int forw) |
void | E_P16 (uchar *p14, uchar *p16) |
void | E_P24 (const uchar *p21, const uchar *c8, uchar *p24) |
void | SamOEMhash (uchar *data, const uchar *key, int val) |
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) |
void | SMBsesskeygen_lm_sess_key_ntlmssp (const uchar lm_hash[16], const uchar lm_resp[24], uint8 sess_key[16]) |
bool | E_deshash_ntlmssp (const char *passwd, uint8_t pass_len, uchar p16[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, uint8_t *lm_response, uint8_t *nt_response, uint8_t *user_session_key) |
Variables | |
static const uchar | perm1 [56] |
static const uchar | perm2 [48] |
static const uchar | perm3 [64] |
static const uchar | perm4 [48] |
static const uchar | perm5 [32] |
static const uchar | perm6 [64] |
static const uchar | sc [16] = {1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1} |
static const uchar | sbox [8][4][16] |
Unix SMB/Netbios implementation. Version 1.9.
a partial implementation of DES designed for use in the SMB authentication protocol
#define FSTRING_LEN 256 |
#define int16 1 |
typedef char fstring[FSTRING_LEN] |
|
static |
|
static |
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 |
void LMv2_generate_response_ntlmssp | ( | const uchar | ntlm_v2_hash[16], |
const char * | server_chal, | ||
uint8_t * | lm_response | ||
) |
|
static |
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 | ||
) |
|
static |
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, | ||
uint8_t * | lm_response, | ||
uint8_t * | nt_response, | ||
uint8_t * | user_session_key | ||
) |
void SMBsesskeygen_lm_sess_key_ntlmssp | ( | const uchar | lm_hash[16], |
const uchar | lm_resp[24], | ||
uint8 | sess_key[16] | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |