summaryrefslogtreecommitdiff
path: root/git-maintenance/internet-access/san-francisco-ca-el-capitan-hotel-wifi.sh
blob: 2f337aee53f2006803ff0a597223d1022f001c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
echo
echo "== Trying to connect to wifi, El Capitan Hotel, San Francisco, CA =="
echo 
echo "== Front desk clerk usually opens door for buzzer. =="
echo

parseasciinums() {
	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=84798

url="http://www.facebook.com"
curl -s "${url}${formaction}?tok=${tokvalue}&redir=${redirvalue}&voucher=${vouchervalue}"