AutoLogin Script

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3  Next
Author Message
gandamaluko
DD-WRT Novice


Joined: 18 Oct 2013
Posts: 10

PostPosted: Wed Apr 02, 2014 23:00    Post subject: Reply with quote
Hi,

I can't find the folder hotplug as you can see in this image:



I need to create that folders, or I can put this code in another place?
Sponsor
arssant
DD-WRT User


Joined: 14 Aug 2013
Posts: 153

PostPosted: Fri Apr 04, 2014 14:02    Post subject: Reply with quote
gandamaluko wrote:
Hi,

I can't find the folder hotplug ....

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.
iMartins87
DD-WRT Novice


Joined: 29 Apr 2014
Posts: 2

PostPosted: Wed Apr 30, 2014 9:46    Post subject: Reply with quote
Hi,

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?

PS: Tb sou tuga :-p
arssant
DD-WRT User


Joined: 14 Aug 2013
Posts: 153

PostPosted: Wed Apr 30, 2014 11:43    Post subject: Reply with quote
iMartins87 wrote:
Hi,

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.
iMartins87
DD-WRT Novice


Joined: 29 Apr 2014
Posts: 2

PostPosted: Sat May 03, 2014 9:41    Post subject: Reply with quote
Thanks arssaant,

It's works fine with package wget_1.13.4-1_atheros.ipk (wget, zlib and libopenssl).

Best regards
arssant
DD-WRT User


Joined: 14 Aug 2013
Posts: 153

PostPosted: Mon May 05, 2014 23:55    Post subject: Reply with quote
iMartins87 wrote:
Thanks arssaant,

It's works fine with package wget_1.13.4-1_atheros.ipk (wget, zlib and libopenssl).

Best regards


Hi.

simple script to check internet connection:

/etc/hotplug.d/iface/99-net-link

amber of wireless led become on when no internet.
amber of power led become on when connected to fon_zon targed router and internet is up.


Code:

/usr/bin/gpioctl dirout 1 >/dev/null 2>/dev/null
/usr/bin/gpioctl dirout 7 >/dev/null 2>/dev/null

if ping 208.67.222.222 -c 1 > /dev/null
  then
  /usr/bin/gpioctl set 7 >/dev/null 2>/dev/null
  /usr/bin/gpioctl clear 1 >/dev/null 2>/dev/null
  else
  /usr/bin/gpioctl clear 7 >/dev/null 2>/dev/null
  /usr/bin/gpioctl set 1 >/dev/null 2>/dev/null
fi


and on luCI menu, system, at local startup

A small correction for power and system led.

Code:

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

/usr/bin/gpioctl dirout 4 >/dev/null 2>/dev/null
/usr/bin/gpioctl clear 7 >/dev/null 2>/dev/null
/usr/bin/gpioctl set 4 >/dev/null 2>/dev/null

exit 0
mpierrat25
DD-WRT Novice


Joined: 27 Jun 2013
Posts: 34
Location: Besancon France

PostPosted: Mon Jun 23, 2014 16:07    Post subject: wget vs curl Reply with quote
what about curl : any experience ?

looking for (re)connecting orange hotspot

any advice welcome
[edited 12/09/14] done

_________________
-WRT54GS
Firmware: DD-WRT v24-sp2 (10/10/09) mini
-WRT54GL v1.1
Firmware: DD-WRT v24-sp2 (01/16/10) std-nokaid
- WRT54G v3.1
Firmware: DD-WRT v24-sp2 (08/12/10) std-nokaid

HotSopt repeaters
art2003
DD-WRT Novice


Joined: 26 Dec 2014
Posts: 1

PostPosted: Fri Dec 26, 2014 0:58    Post subject: Reply with quote
I have a TL-WA850RE v1 with OpenWrt Barrier Breaker r39161 / LuCI Trunk (svn-r9945),

someone knows if possible to use the script with wget + ssl? and how to install wget?


Thanks
mpierrat25
DD-WRT Novice


Joined: 27 Jun 2013
Posts: 34
Location: Besancon France

PostPosted: Fri Dec 26, 2014 16:33    Post subject: wget ssl ? Reply with quote
I'm afraid NO WAY
that's the reason I'm using curl
look at my post realted to hotspot reconnexion.

_________________
-WRT54GS
Firmware: DD-WRT v24-sp2 (10/10/09) mini
-WRT54GL v1.1
Firmware: DD-WRT v24-sp2 (01/16/10) std-nokaid
- WRT54G v3.1
Firmware: DD-WRT v24-sp2 (08/12/10) std-nokaid

HotSopt repeaters
gandamaluko
DD-WRT Novice


Joined: 18 Oct 2013
Posts: 10

PostPosted: Sun Apr 05, 2015 11:26    Post subject: Reply with quote
Hi,

I have a TP-Link TL-WR841ND with OpenWrt Barrier Breaker 14.07.

Please give me more details how to install this plugin... step by step as my knowledge about linux based systems is not so much...

I found wget + zlib + libopenssl for OpenWrt Barrier Breaker 14.07 here:
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/packages/wget_1.16-1_ar71xx.ipk
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/kmod-lib-zlib_3.10.49-1_ar71xx.ipk
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base/libopenssl_1.0.2a-0_ar71xx.ipk

It's necessary to enter and login in the router by SSH (examle: putty)
+ install these packages using opkg?
+ save script as "99-login-zon" in etc/hotplug.d/iface/ folder? (How to create this file?)

Please give me some help about all putty commands that I need to use. Best Regards,
P.A
gandamaluko
DD-WRT Novice


Joined: 18 Oct 2013
Posts: 10

PostPosted: Fri May 01, 2015 13:59    Post subject: Reply with quote
Hi all,

Someone used this script without problems in OpenWRT 14.07?

I think it's necessary to change it because hotplug2 and hotplug2.rules files are missing on this version...

more info: http://wiki.openwrt.org/doc/techref/procd

Any comments?

Note: now I'm using TP-Link Archer C7 v2 because in the WR841ND I haven't enough space to install all packages...

Best Regards,
Pedro

PORTUGUESE NOTE:
Nota: DASS.. nem os tugas me ajudam? Very Happy
ciscodlink
DD-WRT User


Joined: 13 May 2014
Posts: 273

PostPosted: Sun Jun 07, 2015 16:49    Post subject: Tampermonkey or Greasemonkey Reply with quote
Hi brother, try this.
http://pastebin.com/qt8B3QWd
crashnburn_in
DD-WRT Novice


Joined: 21 Jan 2012
Posts: 31

PostPosted: Sat Jun 13, 2015 10:35    Post subject: Still work? for Reliance and/or Indian ISPs requiring login? Reply with quote
Still work? for Reliance and/or Indian ISPs requiring login?

I might have to do the same.
michaelfsantos
DD-WRT Novice


Joined: 08 Jun 2013
Posts: 5

PostPosted: Wed Jul 08, 2015 8:40    Post subject: Reply with quote
gandamaluko wrote:
Hi all,

Someone used this script without problems in OpenWRT 14.07?

I think it's necessary to change it because hotplug2 and hotplug2.rules files are missing on this version...

more info: http://wiki.openwrt.org/doc/techref/procd

Any comments?

Note: now I'm using TP-Link Archer C7 v2 because in the WR841ND I haven't enough space to install all packages...

Best Regards,
Pedro

PORTUGUESE NOTE:
Nota: DASS.. nem os tugas me ajudam? Very Happy


Hi gandamaluko,

did you got it to work with the new NOS FON on the last OpenWRT (without the hotplug.d)?

I'm trying to setup this solution with a TP-Link WR710N and there is only an OpenWRT version without hotplug.d for it. Sad
I would like to build a firmware with all the packages and scripts already included... could it be possible?

Thanks a lot for your help! Very Happy

Regards,
Michael

P.S.: Cumprimentos tugas da Alemanha... Wink
dllud
DD-WRT Novice


Joined: 09 Feb 2014
Posts: 4

PostPosted: Fri May 06, 2016 0:26    Post subject: Script for NOS_WIFI Reply with quote
Updated scripts for the new NOS + FON login page.

SSIDs: NOS_WIFI, NOS_wi-fi_Fon, FON_ZON_FREE_INTERNET (in deprecation)

Code:
etc/hotplug.d/iface/98-login-nos

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://duckduckgo.com
   POST_URL=$(cat portal.html | grep 'name="loginNos"' | cut -d \" -f 6 | sed s/amp\;//g)
   if [ -n "$POST_URL" ]; then
      wget -qO- --output-document=/dev/null --no-check-certificate --load-cookies=cookie --keep-session-cookies --post-data="UserName=NOS/<your_email>&Password=<your_password>&rememberMe=true" $POST_URL
   fi
   rm cookie portal.html
fi
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum