Welcome, Guest. Please Login or Register.
May 14, 2025, 08:06:16 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  password recovery « previous next »
Pages: [1] Reply Ignore Print
Author Topic: password recovery  (Read 855 times)
javaprogrammer
Noobie
*
Posts: 1


I'm a llama!

password recovery
« on: November 26, 2002, 11:29:21 AM »
Reply with quote

hi people,

I will make use of the mysql database from yabb se for verify of use of applications on my server. The problem is that te passwords in the db_members table are encrypted..is there a possibility to decrypt the passwords ??

information about that project:
I am creating a gameserver for school this server will make use of the database to verify users and passwords. if the are matching the user can login
Logged
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:password recovery
« Reply #1 on: November 26, 2002, 02:54:47 PM »
Reply with quote

sorry, but encryption is a one-way street and not reverseable.  The way YaBB SE handles this is to assign a new password.

cheers............
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:password recovery
« Reply #2 on: November 26, 2002, 04:37:08 PM »
Reply with quote

If you want your site to share users with the forum, then just use the same login/logout functions found in the appropriate file within the Sources directory. If you want to be able to see what the passwords are then you'll have to remove any routines from YaBB SE that encrypt the passwords, then reset everyone's password.
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:password recovery
« Reply #3 on: November 26, 2002, 07:34:35 PM »
Reply with quote

And the encryption method is
$encryptedpass = crypt($passwrd, substr($passwrd, 0, 2));
Logged

WedgeAntilles250
Guest
Re:password recovery
« Reply #4 on: December 01, 2002, 05:08:33 AM »
Reply with quote

I thought the password encryption was based on MD5.
« Last Edit: December 01, 2002, 05:08:49 AM by WedgeAntilles250 » Logged
Mike Bobbitt
Noobie
*
Posts: 9


I'm no llama.

Re:password recovery
« Reply #5 on: June 10, 2003, 04:37:02 PM »
Reply with quote

This doesn't appear to be true in 1.5.3... There are references to a "double MD5" hashing scheme there.

I have a photo gallery script that used to work with YaBB SE passwords, but now doesn't. I'd love to see an explaination of how passwords are hashed, so I can replicate that in my Perl album.

I've seen the md5_hmac routine in Load.php, which looks like it's doing proper Hashed Message Authentication Code processing, and I've seen that the seed is either $user (lower case) or "ys". But I'm not sure a) if md5_hmac is called multiple times (see double MD5 reference above) or b) what the seed is when called (when is it $user and when is it 'ys'? and what is $user set to?).

I've done some tinkering (http://perl.bobbitt.ca/test/md5.php) but can't regen the hashed password stored in the YaBB SE database.

Anyone have any hints?

I'd be glad to post Perl code once this is figured out.

Thanks
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:password recovery
« Reply #6 on: June 11, 2003, 12:27:54 AM »
Reply with quote

Take a look at this.
http://www.yabbse.org/community/attachments/irc_auth.txt
Logged

Mike Bobbitt
Noobie
*
Posts: 9


I'm no llama.

Re:password recovery
« Reply #7 on: June 11, 2003, 02:09:22 AM »
Reply with quote

Thanks, that looks like the info I needed!

Cheers
Logged
Mike Bobbitt
Noobie
*
Posts: 9


I'm no llama.

Re:password recovery
« Reply #8 on: June 12, 2003, 03:08:37 PM »
Reply with quote

As promised, here's the Perl code for anyone who's interested:

# YaBB SE "double" MD5 HMAC
# Check to see if we can load the package
eval
{
   use Digest::HMAC_MD5  qw(hmac_md5_hex);
};

# If not, throw a warning
if ($@)
{
   print "Could not import Digest::HMAC_MD5 (hmac_md5_hex) ($@). Continuing anyway...<br />";
}

eval { $passcheck=hmac_md5_hex($storedpass,$::username); };

print "--> Trying hmac_md5_hex hashed cookie password: $passcheck (key: $storedpass - $::username).";
if ($passcheck eq $mypassword)
{
   print "--> It's a match!";
   return($passcheck);
}
else
{
   print "--> Does not match, I give up!!";
}


Now for my next trick, I want to use YaBB SE cookies. I can see a large blob that looks like a hashed password, but am not sure how *that* gets generated. I'm guessing it's some sort of a hash of the hash stored in the DB...

Anyone have an idea on that?

Thanks!
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  password recovery « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.091 seconds with 21 queries.