Can't remember login/password in Admin

Post Reply
wkheathjr
Ssr. Bludit
Posts: 27
Joined: Thu Apr 14, 2016 2:27 pm

My MacBook died 2 days before my motorcycle trip and I have been on the road for 7 weeks now. I'm using iPad now and of course my userid/password wasn't stored on iPad so I need to find a way to access these info on cpanel at my webhost? If I can find my admin userid then I am pretty sure I can login with the password I usually use.

FYI, I tried using mailer to email me the login info but it did not work so that is why I am on here seeking assistance. I have no other way because iPad function is really limited compared to MacBook. Feel free to PM me on here if security issue could be a concern discussing it further on the public forum.
anaggh
Ssr. Bludit
Posts: 15
Joined: Sat Aug 27, 2016 9:05 am

You can find your details by opening /bl-content/databases/users.php in a text editor.

Your username will most likely be admin
wkheathjr
Ssr. Bludit
Posts: 27
Joined: Thu Apr 14, 2016 2:27 pm

Anaggh,

Many thanks! admin was the userid and I had access so all good.

Speaking of mailer, any way to make it work?
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Just in case the password is lost (and "Email access code" does not work):
  1. Open the file /bl-content/databases/users.php.
  2. Choose a random word for the "salt" and convert it to the SH1 hash (for example with the generator at [deleted]).
  3. Enter the string of the SH1 hash in the field "salt" of the file users.php.
  4. Choose a password, and add the "salt" at the end (with the above mentioned SH1 Generator Online enter the password in the form, enable "Add a salt", choose the option "after this string", and generate the SH1 hash).
  5. Enter the SH1 hash in the field "password" of the file users.php.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

wkheathjr wrote:Speaking of mailer, any way to make it work?
Have you already checked your spam?

You can test, if the PHP mail function works as described here:

https://gabriolagraphics.com/sending-ma ... -function/
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
wkheathjr
Ssr. Bludit
Posts: 27
Joined: Thu Apr 14, 2016 2:27 pm

Password was not lost. Email was never sent because I got the error message, unable to send email when I tried to retrieve userid/password.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Have you tested the PHP mail function as described in the link above?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
aintgottimetobleed
Jr. Bludit
Posts: 1
Joined: Fri Jun 19, 2020 8:47 pm

Edi wrote: Tue Aug 30, 2016 7:59 pm Just in case the password is lost (and "Email access code" does not work):
  1. Choose a random word for the "salt" and convert it to the SH1 hash (for example with the generator at http://online-code-generator.com/sha1-h ... l-salt.php).
You should probably fix this link as it now points to some sketchy site that displays porn
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Thank you for the hint. Seems that the website is hacked or no longer used.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Another generator can be found at

https://randommer.io/Hash/SHA1
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply