Auto Login for Reliance Broadband Unlimited users

  • Thread starter Thread starter linuxbug
  • Start date Start date
  • Replies Replies 27
  • Views Views 131,406
Status
Not open for further replies.
It seems that Reliance has changed the Login Page as well as the URL.Can anyone specify what the url is to be used with cURL now?The one that i got "http://www.reliancebroadband.co.in/reliance/login.do?action=doLoginSubmit"doesn't seem to work.
 
doesnt seem to work old curl method...any help??
 
And here's a shell script that works. I'm using wget instead of curl though, as that's what I'm more familiar with.
HTML:
#!/bin/shOUTFILE="/tmp/reliance_login.out"QUIET="-q"USER_AGENT="--user-agent='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'"COOKIE_FILE="/tmp/reliance_cookie.txt"COOKIE_OPTS="--load-cookies=${COOKIE_FILE} --save-cookies=${COOKIE_FILE} --keep-session-cookies"WGET_OPTS="-O ${OUTFILE} ${QUIET} ${USER_AGENT} ${COOKIE_OPTS}"USER_ID="nnnnnnnnnnnn" # replace with your User ID.PASSWD="xxxxxxxx" # replace with your password.POST_DATA="userId=${USER_ID}&password=${PASSWD}"BASE_URL="http://10.239.89.15/reliance"URL1="${BASE_URL}/startportal_isg.do"URL2="${BASE_URL}/login.do?action=doLoginSubmit"wget ${WGET_OPTS} "${URL1}"wget ${WGET_OPTS} --post-data "${POST_DATA}" --referer="${URL1}" "${URL2}"if [ $? -eq 0 ]; then        lc=`grep -c "td class=\"error\""  ${OUTFILE}`        if [ $lc -ne 0 ]; then                echo "Login FAIL!!"        fielse        echo "wget FAIL!!"fi
 
how to use these? can you pls help the noob?
 


Save either of these scripts to a file on your disk (I have my script as /usr/local/sbin/reliance_login.sh), then set up cron to run the script periodically.I run it every 15 minutes, so my crontab entry looks like:
HTML:
0,15,30,45 * * * *  /usr/local/sbin/reliance_login.sh > /tmp/reliance.log
do 'man crontab' or use google to get a better understanding of cron and crontab.
 
Save either of these scripts to a file on your disk (I have my script as /usr/local/sbin/reliance_login.sh), then set up cron to run the script periodically.
I run it every 15 minutes, so my crontab entry looks like:

HTML:
0,15,30,45 * * * *  /usr/local/sbin/reliance_login.sh > /tmp/reliance.log

do 'man crontab' or use google to get a better understanding of cron and crontab.

In windows?
 
If you're on Windows, the best bet is to run Kunal's Python script after installing Python for Windows and a windows cron service. Links below.
Alternately, you can re-implement the functionality in vbscript which should be supported natively. I'm not a vbscript programmer but here is a page with some relevant vbscript programming tips: VBScript HTTP Example Source Code

Cron for Windows: CRONw - CRON for Windows
Python for Windows: http://www.python.org/download/windows/

If you really want to run the shell script, you'll need the following:

Bash for Windows: http://win-bash.sourceforge.net/
Wget for Windows: http://gnuwin32.sourceforge.net/packages/wget.htm
Grep for Windows: http://gnuwin32.sourceforge.net/packages/grep.htm

Or you can install Cygwin and get a more comprehensive Linux / UNIX environment on your windows machine.
 
Good work guys, but we need a robust way of doing this. I'm not in India anymore but my folks are and they're using Reliance BB and its troubling them a *lot*. Those Reliance engineers are a piece of ****. Cant they keep us logged in for unlimited plans? Anyway, ranting out of the way, I'm planning on developing a robust solution for this foolish problem.The way I see it, reliance guys will keep changing their web based dialing sh1t to deter us. Since I'm not around, I dont have the liberty to screw around and adapt to those changes. So, what I propose is, lets make a script which uses the current login method, in addition it also has a fall back mechanism. Have you guys heard of mechanize module for Python / Perl? Basically you can fill out forms automatically via a script. That would ensure that our script adapts to any web-based login method unless they start using purely AJAX based method and deliver the page via pure JS ( something like Hulu did to defeat MythTV ).I plan on doing both, a windows version and linux version. Now I cant ask my folks to reverse engineer and give me the specs of the login method and that is why I'm here. Anybody up for the task? Let me know in this thread 🙂Oh and if someone has a relative in Reliance Communications, please tell them to kick some arse of the engineers who have come up with this PoS login system.
 
Hey can you please tell me where and how to enter username, password and site, cause it aint workin for me
 
:yahoo: Working Solution for the Auto login problem, I have been using this for a year now. :dance:

Good work here, I have something to share here which has been working for me for over an year now.
The scripting and all would involve lots of brains and skills. To simplify the task of Logging in regularly I just used combination of two seamless apps and it works great.
I tried the above said Scripts, But not really working on Win7x64.

Well, here is the deal:

Use Free Roboform app to create login programs. It's like Install roboform and while you login to Reliance BB Website it will ask you "Do you want to save this Login" ? Once you save the login, it will create a .rfp file, You can double click the file it will Open Reliance BB Website and login for you. You can Schedule this file to run every hour or so.

Now the problem is, for the users like me, who uses the Bandwidth only for downloading & Keep the PC ON 24x7, Keeping the schedule running will give you 24 Login web browsers open on your Desktop. Not a pain really but still it should not be like that.

So I used Workspace Macro Pro. (Cracked), I created a Sequence in it, (Not recorded macro), The task it does is, 1) Waits for 1 Minute once ran. 2) Runs the .rfp file and log me in and waits for another min so that the task completes. 3) Closes the Login Browser and launches my Bittorent program.

Now this is done Seamless and without disturbing our work.

Guys this is one stop solution and really very very flexible.

I liked this, Cause Scripting is not my way, I am not so Educated
:imwink:

Questions: ddexter26@yahoo.com
 
Status
Not open for further replies.

Top