The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
md5(md5(password)) --> md5(password)
Is there any hack that turn the complicated authentication into just md5(password) + salt. I want to validate my member against mod_auth_mysql which only take md5(password) + salt.
vBulleting Support tell me that some body outthere already made this modification. If you have any idea, please let me know. Thanks for any suggestion p.s. I also posted in vb2 forum. sorry wrong forum. I solved the problem myself. Instead of modify vb code, I modified mod_auth_mysql.c to meet the requirement of vb authentication algorithm. For those interested, here is the code: note: this for for mod_auth_mysql.c version 2.9.0. I don't know any other mod. I am very happy of my first ever achievement. I completed this modification within 1 hr w/o much knowledge of vb and c programing. I bought vBulletin 2 days ago :smoke: and never use any forum before. The completed source code is attached. Repalce this: Code:
return strcmp(real_pw,ap_md5(pool, (const unsigned char *) sent_pw)) == 0; Code:
return strcmp(real_pw,ap_md5(pool, strcat(ap_md5(pool,(const unsigned char *) sent_pw), salt))) == 0; Code:
{"md5", NO_SALT, pw_md5}, Code:
{"md5", SALT_REQUIRED, pw_md5}, //vBulletin Authentication |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|