summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-10 08:34:37 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-10 08:34:37 -0800
commitae81f24eb744833929a02c3345810d341f7d0710 (patch)
tree0cb0ea51c24d4adb77557110abd5f963dd80c7e3
parent8313b9de5310371ed9f36389b7e08ed8e3a87faf (diff)
downloadstandingwithresilience-ae81f24eb744833929a02c3345810d341f7d0710.tar.gz
standingwithresilience-ae81f24eb744833929a02c3345810d341f7d0710.zip
working on quick script to get on internet
-rw-r--r--git-maintenance/internet-access/san-francisco-ca-el-capitan-hotel-wifi.sh21
1 files changed, 21 insertions, 0 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
new file mode 100644
index 0000000..fa1d9af
--- /dev/null
+++ b/git-maintenance/internet-access/san-francisco-ca-el-capitan-hotel-wifi.sh
@@ -0,0 +1,21 @@
+echo
+echo "== Trying to log in to wifi, California, San Francisco, El Capitan Hotel. =="
+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);"
+}
+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
+
+# need url for login. unchecked work below.
+url="$(curl -iI google.com | grep Location: | { read key val; echo "$val"; })"
+url="${url%/*}"
+
+# this is hoped to help log in. try and repair.
+curl -v "${url}/${formaction}?tok=${tokvalue}&redir=${redirvalue}&voucher=${vouchervalue}"