mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
pre-8.0
This commit is contained in:
parent
6a94f708e8
commit
9f75ddad8b
32 changed files with 208 additions and 129 deletions
5
ntlm.c
5
ntlm.c
|
@ -1,4 +1,3 @@
|
|||
|
||||
/* $Id$
|
||||
Single file NTLM system to create and parse authentication messages.
|
||||
|
||||
|
@ -1244,7 +1243,7 @@ void buildAuthRequest(tSmbNtlmAuthRequest * request, long flags, char *host, cha
|
|||
free(h);
|
||||
}
|
||||
|
||||
void buildAuthResponse(tSmbNtlmAuthChallenge * challenge, tSmbNtlmAuthResponse * response, long flags, char *user, char *password, char *domainname, char *host) {
|
||||
void buildAuthResponse(tSmbNtlmAuthChallenge *challenge, tSmbNtlmAuthResponse * response, long flags, char *user, char *password, char *domainname, char *host) {
|
||||
uint8 lmRespData[24];
|
||||
uint8 ntRespData[24];
|
||||
char *u = strdup(user);
|
||||
|
@ -1288,6 +1287,8 @@ void buildAuthResponse(tSmbNtlmAuthChallenge * challenge, tSmbNtlmAuthResponse *
|
|||
challenge->flags = flags; /* Overide flags! */
|
||||
response->flags = challenge->flags;
|
||||
|
||||
if (w)
|
||||
free(w);
|
||||
if (d)
|
||||
free(d);
|
||||
if (u)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue