You are not logged in.

#1 2011-10-31 16:53:19

farben.rausch
Member
Registered: 2011-10-25
Posts: 16

script to autoreconnect on Freewave (free internet provider)

Hi,
I have the great pleasure to be in range of a free hotspot in my room and I use it since I live here (never payed internet so far big_smile). It works great, with the only thing bugging me is that I have to reconnect via browser every 2 hours. I do not loose my IP in that reconnect process. Now that I want to stream some music to the internet and listen to it even when I am not at home, I experience problems because after 2 hours my pc gets disconnected from the net hmm

I do not know the communication of my laptop an the Freewave server in the reconnect process, I thought of writing some mouse/keyboard macro that opens the browser and presses the connect button every some minutes but that is not a solution. Even if it was working I would have to wait for some minutes for my laptop to reconnect to continue streaming music.

here is what I could capture during the connect process (if i spoof my mac, the freewave server thinks I am someone else, so I can reproduce the connect process anytime)
http://pastebin.com/YwHhEgHG

Interesting lines:

Cache-Control: no-cache, must-revalidate
 
P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
 
Location: https://welcome.freewave.at/?res=notyet&uamip=10.0.1.1&uamport=3990&challenge=646293798edb6fcb6a647023e676d9e4&mac=00-1E-11-22-33-44&ip=10.0.1.231&called=00-23-69-2E-F0-87&nasid=23200205&userurl=http%3a%2f%2fwww.heise.de%2f&md=A893D69B017069EDEF5CEB61B524FAD4
 
 
 
<HTML><BODY><H2>Browser error!</H2>Browser does not support redirects!</BODY>
 
<!--
 
<?xml version="1.0" encoding="UTF-8"?>
 
<WISPAccessGatewayParam
 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
  xsi:noNamespaceSchemaLocation="http://www.acmewisp.com/WISPAccessGatewayParam.xsd">
 
<Redirect>
 
<AccessProcedure>1.0</AccessProcedure>
 
<LocationName>Freewave,VHS_Brigittenau_1200_Wien</LocationName>
 
<LoginURL>https://welcome.freewave.at/?res=smartclient&uamip=10.0.1.1&uamport=3990&challenge=646293798edb6fcb6a647023e676d9e4&mac=00-1E-11-22-33-44&ip=10.0.1.231&called=00-23-69-2E-F0-87&nasid=23200205&md=8655DADCAC4AB17E982C002C4DC866D7</LoginURL>
 
<LoginURL>https://welcome.freewave.at/?res=smartclient&amp;uamip=10.0.1.1&amp;uamport=3990&amp;challenge=646293798edb6fcb6a647023e676d9e4</LoginURL>
 
<AbortLoginURL>http://10.0.1.1:3990/abort</AbortLoginURL>
 
<MessageType>100</MessageType>
 
<ResponseCode>0</ResponseCode>
 
</Redirect>
 
</WISPAccessGatewayParam>
 
-->
 
 
 
</HTML>

and

Cache-Control: no-cache, must-revalidate
 
P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
 
Location: https://welcome.freewave.at/?res=success&uamip=10.0.1.1&uamport=3990&uid=anonymous&timeleft=7200&mac=00-1E-11-22-33-44&ip=10.0.1.231&called=00-23-69-2E-F0-87&nasid=23200205&lang=en&redirurl=&userurl=http%3a%2f%2fwww.heise.de%2f&md=01D11E86FCFE378E4CF8DB86EA303925
 
 
 
<HTML><BODY><H2>Browser error!</H2>Browser does not support redirects!</BODY>
 
<!--
 
<?xml version="1.0" encoding="UTF-8"?>
 
<WISPAccessGatewayParam
 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
  xsi:noNamespaceSchemaLocation="http://www.acmewisp.com/WISPAccessGatewayParam.xsd">
 
<AuthenticationPollReply>
 
<MessageType>140</MessageType>
 
<ResponseCode>50</ResponseCode>
 
<LogoffURL>http://10.0.1.1:3990/logoff</LogoffURL>
 
<RedirectionURL></RedirectionURL>
 
</AuthenticationPollReply>
 
</WISPAccessGatewayParam>
 
-->
 
 
 
</HTML>

there is also some cryptic stuff, I do not know what character encoding I need to see that.

Question now is, how can I organize a script that automates this connect process for me, any clues?

Some additional lines that might have a clue:

\000Ä10 UZA10UWestern Cape10U      Cape Town10U
Thawte Consulting cc1(0&UCertification Services Division10UThawte Server CA1&0$        *†H†÷
       server-certs@thawte.com0
100510000000Z
150608235959Z0¸10U
welcome.freewave.at1;09U2Go to https://www.thawte.com/repository/index.html1"0 UThawte SSL123 certificate10UDomain Validated10Uwelcome.freewave.at0Ÿ0
       *†H†÷
\00\000‰\00¢9>ö³×Ÿþf?!÷„RR{1oƒIü5"ž]}ëÒϖ½ÝF.öÌßnüÃ`Yˆ›ë¤«ÍÔ6gxJ½xÖeû%%»Ï*Svc|wHåio.î=š£\00ÝU«ôpõŒ6õ#,ÈË
˜Ùä4S}ù֚mG”O…Dªûç
\00ë\00£Ÿ0œ0Uÿ0\0009U2000. , *†(http://crl.thawte.com/ThawteServerCA.crl0U%0++02+&0$0"+0†http://ocsp.thawte.com0

Last edited by farben.rausch (2011-11-01 11:00:24)

Offline

Board footer

Powered by FluxBB