Created
June 12, 2023 17:05
-
-
Save verityj/c9ec30e0824e85f6235ba11177a3bee9 to your computer and use it in GitHub Desktop.
T-Mobile home internet Arcadyan gateway hidden WiFi settings view
This file contains 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
#!/bin/zsh | |
# curl -s hides the progress bar (verbose is -v) | |
# curl --progress-bar shows a simplier progress meter | |
# curl -S with silence activated still shows errors (or --show-error) | |
# Admin password between quotes: | |
admin="admin-password-here" | |
# First command: | |
# curl -X POST http://192.168.12.1/TMI/v1/auth/login -d '{"username": "admin", "password": "admin-password-here"}' | |
# Second command: | |
# curl http://192.168.12.1/TMI/v1/network/configuration\?get=ap -H "Authorization:Bearer your-token-here" | |
# (Script from https://github.com/christopherjnelson/Arcadyan-5G-Web-Admin/issues/4) | |
curl -sSX POST http://192.168.12.1/TMI/v1/auth/login -d '{"username": "admin", "password": "'$admin'"}' > temp.txt | |
token="${$(sed '6!d' temp.txt):14:284}" | |
rm temp.txt | |
curl -sS http://192.168.12.1/TMI/v1/network/configuration\?get=ap -H "Authorization:Bearer $token" | |
echo -e # move to next line to complete output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment