Page 1 of 1

Admin Password Lockout

Posted: Mon Mar 20, 2006 5:13 pm
by Realtruth
Does anyone know how to reset an admin password. Something has corrupted the password on one of my forums and I can't get in now.

Thanks

RT

Posted: Mon Mar 20, 2006 5:16 pm
by Interlog
Have you tried the "forgotten your password" link when trying to log in as this emails you a new password.

Mark :D

Posted: Mon Mar 20, 2006 5:19 pm
by Realtruth
Interlog wrote: Have you tried the "forgotten your password" link when trying to log in as this emails you a new password.

Mark :D


LOL! Someone always has to make things easy. :lol:


Thanks

RT

Posted: Mon Mar 20, 2006 6:12 pm
by Everstudient
I found a way, but I've never tried. Now I will try, if it works you' ll got the answer.

Posted: Mon Mar 20, 2006 7:20 pm
by Everstudient
I tried but it does not work.

Iam not sur if the file I used is correct.

Do you know how to process your database with phpmyadmin ?

And do you know to use softwares at level wizard (or wizard like)?

If yes use this knowledge:

1) Try to find the software MD5 that PHP teams use.
2) Type in dos mode echo "a password" (without quotes) > mypass.txt
3) Put it in the same folder were lays MD5
4) In dos mode type md5 mypass.txt
5) It gives you 32 bytes character code
6) Open with phpmyadmin your database

write the following SQL command

UPDATE phpbb_users SET user_password = 'the 32 bytes code you got from MD5' where username = ' YOUR NICKNAME '; (you type here you nickname)

But for security I advise you to try with another nick that you have register before to try this.

Theorically it must work if you have the correct MD5

PS: If you make any mistake there is no probleme, nothing will change but don't do any mistake when writing 32 bytes code.

Posted: Mon Mar 20, 2006 7:21 pm
by karlsemple
or you could just use the Admin Toolkit

Posted: Mon Mar 20, 2006 7:23 pm
by Everstudient
And If you find the MD5 file used by PHPBB team your will be great to post it to me :lol:

I will just do a try if it works

Posted: Mon Mar 20, 2006 7:47 pm
by Everstudient
Great. The search command on my pc does not work on phpbb server.

It works (I don't know why) only in mod and styles?! not in forum.

I will try just know

Posted: Mon Mar 20, 2006 7:56 pm
by Everstudient
Fantastic!

It worked!

Posted: Mon Mar 20, 2006 8:09 pm
by AnthraX101
Everstudient wrote: I tried but it does not work.

Iam not sur if the file I used is correct.

Do you know how to process your database with phpmyadmin ?

And do you know to use softwares at level wizard (or wizard like)?

If yes use this knowledge:

1) Try to find the software MD5 that PHP teams use.
2) Type in dos mode echo "a password" (without quotes) > mypass.txt
3) Put it in the same folder were lays MD5
4) In dos mode type md5 mypass.txt
5) It gives you 32 bytes character code
6) Open with phpmyadmin your database

write the following SQL command

UPDATE phpbb_users SET user_password = 'the 32 bytes code you got from MD5' where username = ' YOUR NICKNAME '; (you type here you nickname)

But for security I advise you to try with another nick that you have register before to try this.

Theorically it must work if you have the correct MD5

PS: If you make any mistake there is no probleme, nothing will change but don't do any mistake when writing 32 bytes code.


Do not use a file-based MD5 hasher, the proper way would be to use a standard MD5 text hash, rather then the file itself. Text editors can frequently add extra text to a file that will mess up your hash. You can do all this in a single SQL statement:

Code: Select all

UPDATE phpbb_users SET user_password = MD5('your desired password')  where username = ' YOUR NICKNAME ';
AnthraX101

Posted: Mon Mar 20, 2006 8:32 pm
by Everstudient

2) Type in dos mode echo "a password" (without quotes) > mypass.txt


This is why I choose this method and I copied /pasted from DOS.

I tried my method not the tool.

But in fact, the tool is very userfriend.

I am a just oldfashionned programmer, born in the age of dark screen times.

Posted: Mon Mar 20, 2006 8:44 pm
by ~AJK~
Interlog wrote: Have you tried the "forgotten your password" link when trying to log in as this emails you a new password.

Mark :D
What ever happened to the easy way?