Replies: 6 comments
-
Try this to reproduce the password stored in
Replace If you'll use this on the router itself (only there you'll find the I'll close this here ... feel free to re-open, if your problem wasn't solved or your question wasn't answered. And by the way ... the IPPF is (imho) a much better place for further discussions (and I'd bet, you've got an account there already) - at least for this question, which is not closely regarded to one of my own projects. |
Beta Was this translation helpful? Give feedback.
-
Ah ... one more hint: The This could eliminate the needs for an (additional) |
Beta Was this translation helpful? Give feedback.
-
PeterPawn to the rescue once again. Here's a snippet from my provision script which is working thanks to you (The same for the terminal login and a special user for the AVM-interface I created automatically with your set.lua script)
By changing the SSH-login password I did create a new problem. I'm not getting warned anymore that I'm still using the "default" password. Most of the time I will login with a public/private key so I may forget it is still using the password on the back of the thing. It's not as bad as a password "freetz", but still.... |
Beta Was this translation helpful? Give feedback.
-
That's a wrong assumption - the length is varying. Afaik the
Why don't you modify this "default password check", too? It's in https://github.com/Freetz-NG/freetz-ng/blob/master/make/pkgs/mod/files/root/usr/mww/cgi-bin/status.d/00-password.sh - but due to the automatic salt while using If you use the
you may omit the salt (it shouldn't matter here) and generate a "fixed" hash for your That's the reason I didn't mention this applet earlier (as I looked through the list of BusyBox applets to circumvent the needs for an OpenSSL binary) - the Here's what I would use instead of your snippet from above:
It's still far from being perfect - but possible problem(s) with your code are:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the several tips and showing a different style with bash. |
Beta Was this translation helpful? Give feedback.
-
Modifying 00-password.sh was successful and it now warns me a default password is set. cat ./make/pkgs/mod/files/root/usr/mww/cgi-bin/status.d/00-password.sh
If you see some room for improvement, you're welcome. BTW... it doesn't work if I type that same password and let the Freetz webif change it. That's because it will put a different hash in the file. I think that one uses a hash. It's not important, really. I just want a warning that I'm being sloppy. There's no need to harden it in that way. |
Beta Was this translation helpful? Give feedback.
-
The variable MOD_HTTPD_PASSWD is a hashed password for the Freetz interface which resides in /var/mod/etc/conf/mod.cfg
This password is hashed and I have no idea how.
I would like to create a new password into that file instead of "freetz"
I don't want to keep that password for a production box.
I will change it manually later on.
But I also don't want it left at "freetz" in case I forgot to change it.
In case the password is never configured before I want to write the password to it that's on the back of the fritzbox.
I can find that password here:
But before I can replace the password I need it hashed.
Can you help me with that?
Beta Was this translation helpful? Give feedback.
All reactions