summaryrefslogtreecommitdiff
path: root/git-maintenance/internet-access
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-11 08:12:45 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-11 08:12:45 -0800
commit03c7c34948e150298eb4aad7ef2add2d2183cca1 (patch)
tree2783f9ca5e1f7721576e6b162369b05f359c4cc6 /git-maintenance/internet-access
parent54f9d30003ac043066261d8c89d3ffb27e27c0c2 (diff)
downloadstandingwithresilience-03c7c34948e150298eb4aad7ef2add2d2183cca1.tar.gz
standingwithresilience-03c7c34948e150298eb4aad7ef2add2d2183cca1.zip
fixed wifi login
Diffstat (limited to 'git-maintenance/internet-access')
-rwxr-xr-xgit-maintenance/internet-access/san-francisco-ca-el-capitan-hotel-wifi.sh14
1 files changed, 5 insertions, 9 deletions
diff --git a/git-maintenance/internet-access/san-francisco-ca-el-capitan-hotel-wifi.sh b/git-maintenance/internet-access/san-francisco-ca-el-capitan-hotel-wifi.sh
index 2320d1d..2f337ae 100755
--- a/git-maintenance/internet-access/san-francisco-ca-el-capitan-hotel-wifi.sh
+++ b/git-maintenance/internet-access/san-francisco-ca-el-capitan-hotel-wifi.sh
@@ -1,21 +1,17 @@
echo
-echo "== Trying to log in to wifi, California, San Francisco, El Capitan Hotel. =="
+echo "== Trying to connect to wifi, El Capitan Hotel, San Francisco, CA =="
echo
echo "== Front desk clerk usually opens door for buzzer. =="
echo
-echo "== Script is work in progress =="
parseasciinums() {
- node -e "asciinums=[$1]; for (let c of asciinums) console.log(String.fromCharCode(c));"
+ node -e "asciinums=[$1]; for (let c of asciinums) process.stdout.write(String.fromCharCode(c));"
}
formaction="$(parseasciinums 47)"
tokvalue="$(parseasciinums 49,97,101,54,102,101,55,53)"
redirvalue="$(parseasciinums 104,116,116,112,58,47,47,103,111,111,103,108,101,46,99,111,109,47)"
-vouchervalue=8479
+vouchervalue=84798
-# need url for login. unchecked work below.
-url="$(curl -iI google.com | grep Location: | { read key val; echo "$val"; })"
-url="${url%/*}"
+url="http://www.facebook.com"
+curl -s "${url}${formaction}?tok=${tokvalue}&redir=${redirvalue}&voucher=${vouchervalue}"
-# this is hoped to help log in. try and repair.
-curl -v "${url}/${formaction}?tok=${tokvalue}&redir=${redirvalue}&voucher=${vouchervalue}"