Admin Password Lockout

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
User avatar
Realtruth
Registered User
Posts: 66
Joined: Wed Jan 11, 2006 3:29 am
Contact:

Admin Password Lockout

Post by Realtruth » Mon Mar 20, 2006 5:13 pm

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

User avatar
Interlog
Registered User
Posts: 1258
Joined: Sat Jun 11, 2005 4:11 pm
Location: London, UK
Contact:

Post by Interlog » Mon Mar 20, 2006 5:16 pm

Have you tried the "forgotten your password" link when trying to log in as this emails you a new password.

Mark :D
Image

User avatar
Realtruth
Registered User
Posts: 66
Joined: Wed Jan 11, 2006 3:29 am
Contact:

Post by Realtruth » Mon Mar 20, 2006 5:19 pm

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

Everstudient
Registered User
Posts: 155
Joined: Sat Feb 18, 2006 7:22 pm

Post by Everstudient » Mon Mar 20, 2006 6:12 pm

I found a way, but I've never tried. Now I will try, if it works you' ll got the answer.

Everstudient
Registered User
Posts: 155
Joined: Sat Feb 18, 2006 7:22 pm

Post by Everstudient » Mon Mar 20, 2006 7:20 pm

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.

User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Post by karlsemple » Mon Mar 20, 2006 7:21 pm

or you could just use the Admin Toolkit
Image

Everstudient
Registered User
Posts: 155
Joined: Sat Feb 18, 2006 7:22 pm

Post by Everstudient » Mon Mar 20, 2006 7:23 pm

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

Everstudient
Registered User
Posts: 155
Joined: Sat Feb 18, 2006 7:22 pm

Post by Everstudient » Mon Mar 20, 2006 7:47 pm

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

Everstudient
Registered User
Posts: 155
Joined: Sat Feb 18, 2006 7:22 pm

Post by Everstudient » Mon Mar 20, 2006 7:56 pm

Fantastic!

It worked!

AnthraX101
Security Consultant
Posts: 497
Joined: Sun Nov 14, 2004 8:05 pm
Contact:

Post by AnthraX101 » Mon Mar 20, 2006 8:09 pm

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

Everstudient
Registered User
Posts: 155
Joined: Sat Feb 18, 2006 7:22 pm

Post by Everstudient » Mon Mar 20, 2006 8:32 pm


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.
Last edited by Everstudient on Mon Mar 20, 2006 8:55 pm, edited 1 time in total.

~AJK~
Registered User
Posts: 1807
Joined: Fri Feb 03, 2006 7:19 pm
Location: Not sure anymore

Post by ~AJK~ » Mon Mar 20, 2006 8:44 pm

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?
If the solutions posted above worked can you add [SOLVED] to beginning the subject of your first post to help others? Click on the "EDIT" button next to your FIRST post in the thread.
Click the following: Help for Newbies | Support Request Template
No PM's Please

Locked

Return to “2.0.x Support Forum”