User Tools

Site Tools


auto-oz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
auto-oz [2011/03/03 11:14]
gabe
auto-oz [2013/09/28 16:06] (current)
Line 2: Line 2:
  
 ===== Updates ===== ===== Updates =====
 +==== May 11 2011 ====
 +My service expired last night. My renew script still isn't working, but I didn't try very hard. All I did was run:<​code>​
 +curl -K curlcfg2 http://​google.com -v
 +curl -K curlcfg2 http://​phc.prontonetworks.com/​cgi-bin/​authlogin -v
 +curl -K curlcfg2 "​https://​register.prontonetworks.com/​registration/​Main.jsp?​wispId=5338&​nasId=00:​1b:​24:​78:​ab:​82&​tempName=selAuth&​orgUrl=&​userMacId=00:​23:​69:​b3:​ce:​65"​ -v -c /​tmp/​cookiejar
 +curl -K curlcfg2 -d '​username=$$$$$$$$&​password=$$$$$$$$&​changePassword='​ "​https://​register.prontonetworks.com/​registration/​customization/​default/​CheckValidUserToLogin.jsp"​ -v -b /​tmp/​cookiejar -c /​tmp/​cookiejar
 +curl -K curlcfg2 https://​register.prontonetworks.com/​registration/​chooseAuth.do -d '​loginUserId=$$$$$$$$&​loginPassword=$$$$$$$$&​authType=Pronto'​ -e "​https://​register.prontonetworks.com/​registration/​customization/​default/​CheckValidUserToLogin.jsp"​ -v -b /​tmp/​cookiejar -c /​tmp/​cookiejar ​
 +curl -K curlcfg2 https://​register.prontonetworks.com/​registration/​buyAPlan.do -d '​planId=#############&​rPM=Yes&​selectPG=Verisign&​agree=agree'​ -v -b /​tmp/​cookiejar -c /​tmp/​cookiejar ​
 +curl -K curlcfg2 https://​register.prontonetworks.com/​registration/​buyAPlanConfirm.do -d '​planId=#############&​planType=PREPAID&​requestComingFrom=BuyAPlan&​paymentMethodId=CC&​customerId=#############&​creditCardNumber=################&​creditCardId=#############'​ -v -c /​tmp/​cookiejar -b /​tmp/​cookiejar ​
 +curl -K curlcfg2 https://​register.prontonetworks.com/​registration/​process.jsp -v -b /​tmp/​cookiejar -c /​tmp/​cookiejar ​
 +curl -K curlcfg2 https://​phc.prontonetworks.com/​cgi-bin/​authlogin -d '​serviceName=ProntoAuthentication&​userId=$$$$$$$$&​password=$$$$$$$$'​ -v -b /​tmp/​cookiejar -c /​tmp/​cookiejar
 +curl -K curlcfg2 "​http://​www.onezone.ca/​wifi/​wifi_success.html?​wispId=5338&​nasId=00:​1b:​24:​78:​ab:​82&​newReg=Y&​sessionId=#############&​freePlan=N"​ -v -b /​tmp/​cookiejar -c /​tmp/​cookiejar
 +curl -K curlcfg2 "​http://​www.onezone.ca/​wifi/​wifi_checkaccount.html?​wispId=5338&​sessionId=#############&​nasId=00:​1b:​24:​78:​ab:​82&​newReg=Y"​ -v -b /​tmp/​cookiejar -c /​tmp/​cookiejar
 +curl -K curlcfg2 "​https://​register.prontonetworks.com/​registration/​Main.jsp?​wispId=5338&​nasId=00:​1b:​24:​78:​ab:​82&​sessionId=#############"​ -v -b /​tmp/​cookiejar -c /​tmp/​cookiejar
 +</​code>​
 +You need the file /​sbin/​curlcfg2,​ which contains:<​code>​
 +-A "​Mozilla/​5.0 (iPhone; U; CPU iPhone OS 2_2_1 like Mac OS X; en-us) AppleWebKit/​525.18.1 (KHTML, like Gecko) Version/​3.1.1 Mobile/5H11 Safari/​525.20"​
 +-k
 +</​code>​
 +
 +Note that you'll need to replace "​$$$$$$$$"​ with your username or password as appropriate,​ and "#############"​ with whatever the appropriate number is, matching whatever was received in the results of the last command. If you run these commands twice, it'll bill your account twice, but give you two months of service. You can confirm this by checking your oz account info (for which you don't need cookies):
 +  - Go to http://​www.onezone.ca/​wifi/​myaccount.html?​wispId=5338&​nasId=00:​1b:​24:​78:​ab:​82 (from anywhere)
 +  - Click My Account
 +  - Log in with username and password
 +  - Click Home
 +
 +
 +==== April 13 2011 ====
 +I was expecting the service at SLM to die on Sunday (10th), but it was still running until 2am last night. When I got in today, there were 53 instances of '​onezone-check.pl'​ running on the auto-oz router, each one also having an instance of udhcpc. I ran:
 +<​code>​killall onezone-check.pl</​code>​
 +And then:
 +<​code>/​sbin/​onezone-check.pl</​code>​
 +And we were online. So maybe Onezone didn't log us out; maybe the router was just choking. Just to see what would happen, I ran:
 +<​code>​cd /sbin
 +./​onezone-logout.sh
 +./​onezone-check.pl</​code>​
 +And it came up fine. 
 +
 +So, last time I was here I ran the renew script a second time to see if it would credit me another month. At the time I remember thinking that it hadn'​t. But looking now, it's not set to expire until May 10th. 
 +
 +Unfortunately,​ I can't get the renew script to run anymore. When it tries to run the shell onezone-Mainjsp.sh script, it hangs. Launching curl from a shell script from a perl script was working before, but appears not to now. I rebooted the router; same problem. I tried setting a timeout in curl by setting '-m 10' in curlcfg, but that didn't do anything.
 +
 ==== March 3 2011 ==== ==== March 3 2011 ====
 <​code>​ <​code>​
Line 73: Line 115:
   - run this:<​code>​   - run this:<​code>​
 ipkg update ipkg update
-ipkg install microperl+ipkg install microperl ​curl
 cd /sbin cd /sbin
 wget http://​wirelesstoronto.ca/​dist/​om-checkin.pl wget http://​wirelesstoronto.ca/​dist/​om-checkin.pl
auto-oz.1299172455.txt.gz ยท Last modified: 2013/09/28 16:06 (external edit)