Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wlan.ini not properly protected #1390

Closed
caco3 opened this issue Nov 21, 2022 · 1 comment
Closed

wlan.ini not properly protected #1390

caco3 opened this issue Nov 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@caco3
Copy link
Collaborator

caco3 commented Nov 21, 2022

from #1389

Hi guys,

So I had the issue that I needed to change the SSID remotely with no access to the SD-card but as mentioned several times in the forum this seems to be not possible.

Inventive how I am I made it happen. Not sure if this is considered a bug but at least you cannot read the existing file with the password.
I did this now 2 times already so it definitely works.

You cannot see or read the wlan.ini through the fileserver UI, also you cannot overwrite it with the fileserver UI, it will tell you a file with the same name already exist when you try to upload such a file.

So the trick is that you first need to delete the existing wlan.ini file and then upload a new file through the fileserver UI with the new WiFi settings.

  1. Prepare your new wlan.ini file, open Filseserver UI in root and select the File to upload (do not press upload yet)
  2. Run the following POST request, e.g. with CURL, powershell, etc. from your PC:
    curl "http://<watermeterIP>/delete//wlan.ini" -X "POST" -H "Content-Length: 0" -H "Content-Type: application/x-www-form-urlencoded"
    You should get the return "File successfully deleted"
  3. Upload your new wlan.ini file through Fileserver UI that you prepared, it will succeed this time
  4. Reboot through UI and pray that you entered the right SSID and credentials in the file

Originally posted by @Terr4 in #1389

@caco3 caco3 added the bug Something isn't working label Nov 22, 2022
@caco3
Copy link
Collaborator Author

caco3 commented Dec 6, 2022

#1492 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant