X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Client%20Applications%2Frcracki_mt%2FHashAlgorithm.cpp;h=4a4cbbb674856b0fd8bc5978984e6726d1f6e482;hb=86bbf0fd5ba4e07d3279b4179fd8fc808198eaae;hp=bf04682e6792e0ecbee9ef9dc89960d4308a5629;hpb=371055825f09b5dc2ad00e5702ef4ffe18c419b0;p=freerainbowtables diff --git a/Client Applications/rcracki_mt/HashAlgorithm.cpp b/Client Applications/rcracki_mt/HashAlgorithm.cpp index bf04682..4a4cbbb 100644 --- a/Client Applications/rcracki_mt/HashAlgorithm.cpp +++ b/Client Applications/rcracki_mt/HashAlgorithm.cpp @@ -3,7 +3,7 @@ * RainbowCrack * * Copyright (C) Zhu Shuanglei - * Copyright Martin Westergaard Jørgensen + * Copyright 2009, 2010 Martin Westergaard Jørgensen * Copyright 2009, 2010 Daniël Niggebrugge * Copyright 2009, 2010 James Nobis * @@ -296,11 +296,7 @@ void HashMSCACHE(unsigned char *pPlain, int nPlainLen, unsigned char* pHash) unicode_user[i*2] = username[i]; unicode_user[i*2+1] = 0x00; } - /* - MD4_Init(&ctx); - MD4_Update(&ctx,unicode_pwd,nPlainLen*2); - MD4_Final(final1,&ctx); - */ + MD4_NEW( (unsigned char*)unicode_pwd, nPlainLen*2, final1 ); MD4_Init(&ctx); @@ -314,7 +310,7 @@ void HashMSCACHE(unsigned char *pPlain, int nPlainLen, unsigned char* pHash) { unicode_pwd[i*2] = pPlain[i]; unicode_pwd[i*2+1] = 0x00; - }*/ + }*/ /* unsigned char *buf = (unsigned char*)calloc(MSCACHE_HASH_SIZE + nSaltLength, sizeof(unsigned char)); HashNTLM(pPlain, nPlainLen, buf, NULL); @@ -396,10 +392,6 @@ void HashPIX(unsigned char* pPlain, int nPlainLen, unsigned char* pHash) memcpy (pass,pPlain,nPlainLen); - /*MD5_CTX ctx; - MD5_Init(&ctx); - MD5_Update(&ctx, (unsigned char *) pass, MD5_DIGEST_LENGTH); - MD5_Final(final, &ctx);*/ fast_MD5((unsigned char *) pass, MD5_DIGEST_LENGTH, final); char* p = (char*) temp;