Replies: 4 comments 1 reply
-
It turns out a valid hash can be made with httpd -m <plaintext>
|
Beta Was this translation helpful? Give feedback.
-
I can now successfully provision my box (also after a factory reset) with my preferred setting and having the "standard password" of the box itself as my login for both the Freetz-WebIf and the maiden SSH root password.
This $1$$zO6d3zi9DefdWLMB.OHaO. is hardcoded at several places in the Freetz sources. I liked the warning in the Freetz interface when the password hasn't changed. cat ./make/pkgs/mod/files/root/usr/mww/cgi-bin/status.d/00-password.sh
I saw somewher in "make menuconfig" that it's possible to change the default password upon compiling. It could be a reason to change this warning script (00-password.sh) to follow that. I prefer /bin/busybox cryptpw -m md5 -S "" "$1"; over /usr/sbin/httpd -m because it is also used by Freetz itself as initial password and because I can easily compare the hashes. I'm aware that this is all not that secure, but it's more secure than having "freetz" as password. Making it possible to login with a special user and a password that's written on the back can be useful if you want to talk a client through a procedure to get Internet again after factory reset. |
Beta Was this translation helpful? Give feedback.
-
You dont need to (should not!) force md5, it was the best when the hash was created - and you have to change it. CVE-2022-21800 CVE-2022-38023 CVE-2004-2761 etc |
Beta Was this translation helpful? Give feedback.
-
It's for writing a temporary password, just like the password "freetz" which is known by everyone using this project as its default password. |
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.
This is that variable when the password has never been changed.
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 anyone help me with that?
Beta Was this translation helpful? Give feedback.
All reactions