Created
June 11, 2023 05:56
-
-
Save dminnich/34ec43450c67ad5e4defc92e2492b9fa to your computer and use it in GitHub Desktop.
T-Mobile Sagemcom Fast 5688W disable wifi via curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
quick raw command ports of https://pastebin.com/FYjGZeKf and from https://youtu.be/7NJ7TJ_1VZk | |
1) login | |
vim creds | |
{ | |
"username": "admin", | |
"password": "your.password" | |
} | |
use creds to get token | |
curl -X POST -H "Content-Type: application/json" -d @creds http://192.168.12.1/TMI/v1/auth/login | |
copy/paste the token part into a variable | |
{"auth":{"token":"ey.....0","expiration":1686461165,"refreshCountMax":4,"refreshCountLeft":4}} | |
TOKEN=ey.....0 | |
2) get config | |
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" http://192.168.12.1/TMI/v1/network/configuration?get=ap > ap.json | |
3) update config | |
vim ap.json | |
from {"2.4ghz":{"isRadioEnabled":true to {"2.4ghz":{"isRadioEnabled":false | |
from "5.0ghz":{"isRadioEnabled":ture to "5.0ghz":{"isRadioEnabled":false | |
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -m 2 -d @ap.json http://192.168.12.1/TMI/v1/network/configuration?set=ap | |
4) reboot | |
turn off and on with the button |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment