FreeRDP
tools/hash-cli/hash.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <winpr/ntlm.h>
#include <winpr/ssl.h>
#include <winpr/assert.h>

Functions

static WINPR_NORETURN (void usage_and_exit(void))
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ WINPR_NORETURN()

static WINPR_NORETURN ( void   usage_and_exitvoid)
static

WinPR: Windows Portable Runtime NTLM Hashing Tool

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Define NTOWFv1(Password, User, Domain) as MD4(UNICODE(Password)) EndDefine

Define LMOWFv1(Password, User, Domain) as ConcatenationOf(DES(UpperCase(Password)[0..6], "KGS!@#$%"), DES(UpperCase(Password)[7..13], "KGS!@#$%")) EndDefine

Define NTOWFv2(Password, User, Domain) as HMAC_MD5(MD4(UNICODE(Password)), UNICODE(ConcatenationOf(UpperCase(User), Domain))) EndDefine

Define LMOWFv2(Password, User, Domain) as NTOWFv2(Password, User, Domain) EndDefine