Has anyone managed their users by modifying the config file directly?
Mainly, how is the password encoded?
Manage users via the config file
-
- Posts: 3
- Joined: Mon Feb 12, 2018 6:42 pm
Re: Manage users via the config file
It took me a while but I finally managed to create the same hash in bash.
echo -ne "passwordUSERNAME" | openssl sha | awk '{print $2}' | xxd -r -p | base64
echo -ne "passwordUSERNAME" | openssl sha | awk '{print $2}' | xxd -r -p | base64
-
- Posts: 3
- Joined: Mon Feb 12, 2018 6:42 pm
Re: Manage users via the config file
I've been working on this a bit more and realized the password is hashed twice. I also slightly improved the command from my last post.
AuthNtLmSecureHash:
echo -ne "password" | iconv -f ascii -t utf16le | openssl md4 -binary | base64
AuthPassword:
echo -ne "passwordUSERNAME" | openssl sha -binary | base64
AuthNtLmSecureHash:
echo -ne "password" | iconv -f ascii -t utf16le | openssl md4 -binary | base64
AuthPassword:
echo -ne "passwordUSERNAME" | openssl sha -binary | base64
-
- Posts: 19
- Joined: Mon Mar 31, 2014 5:26 pm
Re: Manage users via the config file
sha(sha0) is not supported under my openssl now.
Have to use another way to encrypt it.
Have to use another way to encrypt it.