Alliance broadband auto login script for Linux, Mac, Android

Finally I’ve started using Alliance broadband through Wi-Fi and ditched super slow, very costly Airtel 2G internet, though 2.83 Km straight line distance from the AP and the “line of sight” is blocked with thousands of trees.

P.S- Alliance broadband is a local ISP/WISP, popular in eastern parts of India, specially West Bengal.

There is a little obstacle with Alliance broadband, you already know that if you are an existing user, everyone have to login to a web based login portal to actually use the internet.

Some time it’s not possible to open a browser at all, like login from a router, and I don’t want to always open a browser just for login purpose,  so decided to do it with the command line.


The script for Alliance broadband auto login

I’m using the wget command for maximum portability, as wget is preinstalled in almost every UNIX like systems, even embedded inside busybox, anyway other HTTP clients like cURL could be used too.

In my case the login URL is , posibbly it’s same for everyone.

UPDATE: Login URL now changed to , both HTTP and HTTPS login works. Change the login URL to from in the script, if needed.

wget -q --no-check-certificate -A "Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0" 
    --post-data="login=1&user=USR_NAME&pass=PASS" "" -O - > /dev/null

Don’t forget to replece the USR_NAME and PASS with your username and password respectively.

I’hv saved this script as alliance_login, save it as whatever name you want and make it executable.

chmod +x alliance_login 

And execute it to login the broadband account.


The scripts should work in any UNIX like system, including Android phones and routers running OpenWrt or dd-wrt. Tested with my OpenWrt router, which is running 24×7 to download torrents.

Login process works with the both HTTPS and HTTP, but I prefer to use the https one. Changing the user agent is not mandatory, but sometime it takes longer with the default user agent.


Add the auto login script to crontab

Yo may want to add this script to crontab to run automatically after every 10 minuite to keep yourself logged in.

Use crontab -e to edit the cron job entries and add the line bellw there.

 */10 * * * * /usr/bin/alliance_login > /dev/null 2>&1 

I’hv moved the script to /usr/bin folder, it seems more convinient, you could save it whwrwever you want, just change the path according to yours.

There are many Cron job apps for Android, use any of them in case you are plannng to use it with Android.


So how did I find this mehod ?

Alliance bradband login page, provides an auto login application for windows, IPConnectInstaller.exe.

Little bit of reverse engineering this exe file revealed exactly what I was looking for.

Here  how I did this,

 file IPConnectInstaller.exe 
 IPConnectInstaller.exe: PE32 executable (GUI) Intel 80386, for MS Windows, RAR self-extracting archive 

So it’s a RAR archive, lets de-compress it.

 mkdit -p ~/ip_connector

unrar e IPConnectInstaller.exe  ~/ip_connector/

cd ~/ip_connector/

file Connector.exe

 Connector.exe: PE32 executable (GUI) Intel 80386, for MS Windows, UPX compressed 

So the binary is compressed with upx, lets de-compress it again,

 upx -d Connector.exe 

Now extarct the exe file with 7z,

 7z e Connector.exe 

There is a file CODE, which contains information related to the login process, let’s extarct the strings from this file.

 strings CODE 

The output is very long, so I’m not copy pasting it here, but here you could find some hint about what the Connector.exe does, and this information was enough to write the alliance broadband auto login script.



Hope now you can login to the account without opening a browser and enjoyed this guide as well. Don’t forget to share your thoughts, and let me know if something is not working.

8 Responses

  1. Anupam says:

    Good work Arnab, I was following your blog from past few months when I switched to Linux after a long break. I found this very interesting as I was looking for same kinda stuff for a long time. But I gave up long back and that time there was 24OnineClient instead of IP Connector.

    I was wondering how the connection remains alive without any keep alive or UDP data packets, which I think IP Connector is doing. But you may have seen that part as well. Could you tell me a bit about that in short.

    BTW I’m going to reverse the IP Connector tonight and will get in touch with you if I find something missing.

    • Arnab says:

      Hi Anupam, nice to meet you 🙂

      I’ve never found any keep alive TCP/UDP connection with the netstat command, even connected directly to alliance’s gigabit switch via a Ethernet cable, can’t say anything about UDP data packet.

      Another thing I’ve noticed, login from any device, disconnect the first device and access the internet from another device, no repeated login required, so I’m not sure how it’s keeping the connection intact.

      It’ll be great to get some feedback from you after reversing the IP connector, best of luck.

  2. Anupam says:

    True, even now a days I always login from my Phone’s browser and close that page instantly after login. But the internet remains on for a particular time limit (though I never checked that timeout value) even when I start using other devices like desktop or laptop.

  3. Surojit says:

    Arnab I always open your site. it is very good to solve my problem…

  4. Akash says:

    Arnob don’t change your Website….

Leave a Reply

Your email address will not be published. Required fields are marked *