Posted: Sun Feb 09, 2014 2:23 Post subject: Scripts for FON in Portugal (ZON)
GeeVee, thanks for the wget commands. Based upon them I was able to create scripts to auto login in FON in Portugal. They were tested in OpenWRT using the wget package with SSL. wget-nossl or the small wget in BusyBox lack some required options.
The scripts are crafted for hotplug in order to be run when the wireless interface is set up or updated.
For FON_ZON_FREE_INTERNET:
Code:
etc/hotplug.d/iface/99-login-zon
Code:
#!/bin/sh
if [ "$INTERFACE" = "wwan" ] && ([ "$ACTION" = "ifup" ] || [ "$ACTION" = "update" ]); then
wget -qO- --output-document=portal.html --no-check-certificate --save-cookies=cookie --keep-session-cookies http://search.yacy.net
POST_URL=$(cat portal.html | grep 'action="https://zon' | cut -d \" -f 4)
if [ -n "$POST_URL" ]; then
wget -qO- --output-document=/dev/null --no-check-certificate --load-cookies=cookie --keep-session-cookies --post-data="USERNAME=<your_email>&PASSWORD=<your_pswd>&remember=on" $POST_URL
fi
rm cookie portal.html
fi
For FON_FREE_INTERNET (from original FON routers):
Posted: Tue Mar 18, 2014 0:49 Post subject: Re: Scripts for FON in Portugal (ZON)
dllud wrote:
GeeVee, thanks for the wget commands. Based upon them I was able to create scripts to auto login in FON in Portugal. They were tested in OpenWRT using the wget package with SSL. wget-nossl or the small wget in BusyBox lack some required options.
The scripts are crafted for hotplug in order to be run when the wireless interface is set up or updated.
For FON_ZON_FREE_INTERNET:
Hi.
Im trying to get this script running a fonera 2201 with dd-wrt. But got some issue with wget, a lot of error like this one
" wget: unrecognized option `--no-check-certificate'"
I downloaded some vers for FON atheros based, over open-wrt ipk package repo, but no success at all, what was the version of openwrt did you tested that script ?
Boas, tambem sou tuga, e ando por aqui a ver se consigo por isso a funcionar. qq ajuda agradecia
Posted: Wed Mar 26, 2014 15:29 Post subject: Re: What if I dont have GNU wget
dllud wrote:
arssant wrote:
But got some issue with wget, a lot of error like this one
" wget: unrecognized option `--no-check-certificate'"
shaan7 wrote:
the busybox wget doesnt support the cookie options
Thus you have to install the full wget using ipkg (DD-WRT) or opkg (OpenWrt).
Hi.
Success, with fon ZON ( Portugal )
I used a fon2201. Ironical, it was originally provided from FON for ZON ISP customers.
But worked with openwrt backfire 10.03.1.
With dd-wrt got issue, as Buss error when running wget. I tried all packages from openwrt ( kamikase, backfire, even adjustment )
One thing I need to fix, only got firsts 11 channels available, can't get 12,13,14 channel working, even not scanning on client mode. Country regulatory regdomain blocked to USA channel 1-11.
Posted: Fri Mar 28, 2014 20:16 Post subject: Re: What if I dont have GNU wget
arssant wrote:
dllud wrote:
arssant wrote:
But got some issue with wget, a lot of error like this one
" wget: unrecognized option `--no-check-certificate'"
shaan7 wrote:
the busybox wget doesnt support the cookie options
Thus you have to install the full wget using ipkg (DD-WRT) or opkg (OpenWrt).
Hi.
Success, with fon ZON ( Portugal )
I used a fon2201. Ironical, it was originally provided from FON for ZON ISP customers.
But worked with openwrt backfire 10.03.1.
With dd-wrt got issue, as Buss error when running wget. I tried all packages from openwrt ( kamikase, backfire, even adjustment )
One thing I need to fix, only got firsts 11 channels available, can't get 12,13,14 channel working, even not scanning on client mode. Country regulatory regdomain blocked to USA channel 1-11.
Tanks all of you for this script.
Hi! Can you please give me some help concerning my previous posts?
I need to create that folders, or I can put this code in another place?
Hi.
See at my post and dllud too:
arssant wrote:
But worked with openwrt backfire 10.03.1.
With dd-wrt got issue, as Buss error when running wget. I tried all packages from openwrt ( kamikase, backfire, even adjustment )
dllud wrote:
Based upon them I was able to create scripts to auto login in FON in Portugal. They were tested in OpenWRT using the wget package with SSL. wget-nossl or the small wget in BusyBox lack some required options.
So only tested and confirmed by myself with openwrt, not dd-wrt.
I tryed with dd-wrt with no success.
If i understand, you are used a fonera+(Fon2201) with OpenWRT backfire 10.03.1, package "wget-nossl" installed and cliente mode configured to connect a fon_zon_free_internet (interface wireless name "wwan"), me too.
For auto login I edit the Zon script, that the dllud insert in topic, with my user and password (for example ..post-data="USERNAME=XYZ@gmail.com&PASSWORD=passXYZ&remember=on" $POST_URL..), saved with name "99-login-zon" and copy for etc/hotplug.d/iface/
However the auto login dont work!
I need install the package "wget" or other? I only install "wget-nossl".
May be related to the network signal strength I get?
If i understand, you are used a fonera+(Fon2201) with OpenWRT backfire 10.03.1, package "wget-nossl"
I need install the package "wget" or other? I only install "wget-nossl".
May be related to the network signal strength I get?
PS: Tb sou tuga :-p
Hi.
Right. Do NOT use wget-nossl ( remove it ) or better, do factory default and reinstall all 3 ipk ( wget zlib libopenssl ) from scratch, but with correct wget ( wget_1.13.4-1_atheros.ipk , this is for atheros based processor ( aka fonera ))
About signal, from 15-20% quality, it start working nicely.