Manage users via the config file

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
zinefer
Posts: 3
Joined: Mon Feb 12, 2018 6:42 pm

Manage users via the config file

Post by zinefer » Mon Feb 12, 2018 6:45 pm

Has anyone managed their users by modifying the config file directly?

Mainly, how is the password encoded?

zinefer
Posts: 3
Joined: Mon Feb 12, 2018 6:42 pm

Re: Manage users via the config file

Post by zinefer » Tue Feb 13, 2018 2:54 am

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

zinefer
Posts: 3
Joined: Mon Feb 12, 2018 6:42 pm

Re: Manage users via the config file

Post by zinefer » Tue Feb 13, 2018 4:54 pm

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

Post Reply