Page 1 of 2 12 LastLast
Results 1 to 60 of 103

Reliance Broadnet Permanent Login System Download

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    12

    Default Reliance Broadnet Permanent Login System Download

    Hey Guyz Its Time For The Solution To Permanent Login To Reliance Broadband/Broadnet

    I Have Designed A HTML Page That Will Make You To Stay Connected As Long As You Want Without Any Logout Problems!!!!!!!!!!!!!!!!

    You Can Download The Script Here

  2. #2
    Junior Member
    Join Date
    Jan 2008
    Posts
    43

    Default

    Quote Originally Posted by sanjaydutta View Post
    Hey Guyz Its Time For The Solution To Permanent Login To Reliance Broadband/Broadnet

    I Have Designed A HTML Page That Will Make You To Stay Connected As Long As You Want Without Any Logout Problems!!!!!!!!!!!!!!!!

    You Can Download The Script Here
    Thanks brother...... Thats great of you.. it works!!!!!!!!!!

  3. #3
    Junior Member
    Join Date
    Feb 2008
    Posts
    8

    Smile it says account disabled..

    can u please upload the file again ???

    i neeed it .

  4. #4
    Gold Member gardencityboy's Avatar
    Join Date
    Mar 2008
    Posts
    518

    Default

    i think that there is some problem with the file uploaded

    it says access denied

    Can you upload the file to a better place or attach it in the forum?

  5. #5
    Junior Member
    Join Date
    Jan 2008
    Posts
    12

    Default

    Sorry Folks! Here Is The File.

  6. #6
    Bronze Member
    Join Date
    Dec 2007
    Posts
    107

    Default

    Hey I have a quick question, how do I edit the script so that it refreshes only once every 24 hours?
    what parameter do I set?

  7. #7
    Junior Member
    Join Date
    Jan 2008
    Posts
    12

    Default

    Open the html file with notepad or other editing programs and search for the Line "<meta http-equiv="refresh" content="300">". The default refresh gap is 10 mins or 300 secs. You can change the thing accordingly. Change the "content=300" to "content="86400" for 24 hrs refresh gap.

  8. #8
    Bronze Member
    Join Date
    Dec 2007
    Posts
    107

    Default

    Thanks dude!

  9. #9
    Gold Member gardencityboy's Avatar
    Join Date
    Mar 2008
    Posts
    518

    Default

    Thanks for the script

  10. #10
    Gold Member gardencityboy's Avatar
    Join Date
    Mar 2008
    Posts
    518

    Default

    Sanjay

    i have a question to you about the script

    What does this script do?

    Is it just refreshing the login page on reliance every 300 sec(default) so that you dont log out, or does it do any other thing

  11. #11
    Bronze Member
    Join Date
    Apr 2008
    Posts
    235

    Default

    hey guys has anybody chked out the script....plz post thr results.....

  12. #12
    Junior Member
    Join Date
    Apr 2008
    Posts
    1

    Default Thank you.

    Here goes I'll try it for the first time today. Thank you for positng it on the forum, I'd been trying to do the same thing with VB and you solved it simply and more elegantly. I appreciate you posting it on the forum
    Thanks again
    Paras

  13. #13
    Junior Member
    Join Date
    May 2008
    Posts
    2

    Smile

    thanxxxx man! i was w8ing for this! my net always gets logged out after 6 hrs!
    hope this works!! good work tho!

  14. #14
    Junior Member
    Join Date
    Apr 2008
    Posts
    6

    Default

    the site i not opening anymore plese correct it

  15. #15
    Bronze Member
    Join Date
    Apr 2008
    Posts
    235

    Default

    guys the script is grt.....i hvnt logged out for approx a month......the person is a genius...
    .the best part i can sleep at night without worrying abt dissconnection...

  16. #16
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    EXCELLENT!!! Sanjay, you just made my day. Registered on this site just to say thanks

  17. #17
    Junior Member
    Join Date
    Jul 2008
    Posts
    2

    Default

    Quote Originally Posted by sanjaydutta View Post
    Sorry Folks! Here Is The File.
    how to download this file
    iam getting some error that
    venkatab, you do not have permission to access this page. This could be due to one of several reasons:

    1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
    2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

    please help me

  18. #18
    Platinum Member
    Join Date
    Jul 2008
    Posts
    5,197

    Default

    Hi venkatab

    Welcome to IBB
    You are facing this problem because your account is still not activated, i adviced you to please check your email and activate your account with IBB

    Wish you a nice stay on IBB

    ~smoothvibes~

  19. #19
    Junior Member
    Join Date
    Nov 2008
    Posts
    3

    Default releance broadband

    hi friends i want know wheater relaince broadband is good are not rate it pelase:50:

  20. #20
    Bronze Member
    Join Date
    Apr 2008
    Posts
    235

    Default dude..

    Quote Originally Posted by raja1243 View Post
    hi friends i want know wheater relaince broadband is good are not rate it pelase:50:

    dude it depends upon ur definition for the best.........if u define a service good on the terms of its customer satisfaction,,customer friendliness as well as customer easiness i wud rather give reliance bb out of 10 as only 3.....3 pts it scored only coz the others like sify n other services hv to be marked too.....so if bsnl bb is available go for tht.......think of reliance as the butcher n u as a lamb waiting for butcher to cut ur head....

  21. #21
    Junior Member
    Join Date
    Nov 2008
    Posts
    2

    Default

    thanx dude... it really works..

  22. #22
    Junior Member
    Join Date
    Jul 2008
    Posts
    2

    Smile can u post on somesite else

    can u plz post on someother site...plz i'm unable to download it bcoz its saying ....u dont have enough permissions..to download this file....
    plz send me an external link...plz ....i'm in need of that..plz....

  23. #23
    Junior Member
    Join Date
    Jan 2008
    Posts
    12

    Default

    Sorry for that...i have attached the zip file in 2nd page if this topic....anywayz here's the rapidshare link

    rapidshare.com/files/180928755/ISO-8859-1__RPL.zip.html

    For any other queries

    Email Address Deleted
    ~smoothvibes~
    Last edited by SmoothVibes; 9th January 2009 at 01:22 AM.

  24. #24
    Junior Member
    Join Date
    Jul 2008
    Posts
    2

    Thumbs up thank you

    thanks a lot man...u've made my day......thanks it's working......wat exactly does it do...?

  25. #25
    Silver Member
    Join Date
    Dec 2008
    Posts
    380

    Default

    Thanks.
    This was actually the very reason I registered here a couple of months back looking for the solution to this problem.
    Google search led me here.

  26. #26
    Junior Member
    Join Date
    Jan 2009
    Posts
    30

    Default

    well mate thanks yaar the scrpt works gr8 and now it has solved my problem permanently

  27. #27
    Junior Member
    Join Date
    Mar 2008
    Posts
    2

    Default

    gr8 job dude.
    but tell me do i hav to keep this page opened all the time???

  28. #28
    Silver Member
    Join Date
    Dec 2008
    Posts
    380

    Default

    Quote Originally Posted by only_m8 View Post
    gr8 job dude.
    but tell me do i hav to keep this page opened all the time???
    You need to log in to reliance once every 24 hours.After that, you're good for the rest of the day.
    If you are away from your PC for a long time & don't want to take a chance, you should keep the page open.
    You could adjust the refresh rate of the page by editing with notepad, it refreshes too fast.

  29. #29
    Bronze Member taurius1's Avatar
    Join Date
    Sep 2008
    Posts
    141

    Default

    I use the script in a secondary browser, and keep that browser permanently hidden in the background using this program called Trayit! Here's some steps to help you set it up like I have.

    1) Download Trayit! from here: RapidShare: Easy Filehosting (49kb)

    2) Extract all the contents of the zip archive to any convenient location.

    3) Run trayit.exe

    4) Click on the button "Configure"

    5) Select "Load Trayit! at Startup.

    6) Click on "Okay"

    7) Click on "Start Using Trayit!" or "Continue using Trayit!"

    8) Install a secondary browser. If you use opera, I recommend you install Firefox. If you use Firefox, I recommend you install opera. If you use both, I recommend you install Gogole Chrome.
    If you use internet explorer, I recommend you download either Opera or Firefox coz IE is the slowest browser I've ever seen.

    Opera: Opera Web Browser | Faster & safer | Download the new Internet browsers free
    Firefox: Firefox web browser | Faster, more secure, & customizable
    Google Chrome: Google Chrome - Download a new browser

    If you use all three of these browser, use any other html+javascript browser you want.

    9) Once you have a seconday browser installed and set up, set your homepage to point to the html login script you got from this thread.

    10) Once the browser is running, ctrl+click on it to minimize it to the sytem tray.

    11) Right click on the system tray icon and select "Edit Profile"

    12) In there, Put checkmarks on the following options:

    Minimise on startup
    Restore window from system tray when application is activated
    Show tray icon only in minimized state
    Do not create icon in tray area, hide application completely.

    13) Click on "okay".

    Now your browser is hidden completely. Next you have to make it startup with your system.

    14) Copy the shortcut to the browser from your desktop or your start menu, and paste it in the "start up" folder you see in the start menu.

    That's it. You're done. Let me know if you guys have any trouble setting it up.

    And yes, this will consume a bit of ram. Which is why I recommended using opera or firefox or chrome, as they dont have a large memory footprint.


    Try it out. ^_^

  30. #30
    Amor vincit omnia
    Join Date
    Dec 2007
    Posts
    3,141

    Default

    Quote Originally Posted by taurius1 View Post
    10) Once the browser is running, ctrl+click on it to minimize it to the system tray.
    I did not understand this statement. Click control + ( what ) ??

    The browser window? Or the Trayit software?

  31. #31
    Bronze Member taurius1's Avatar
    Join Date
    Sep 2008
    Posts
    141

    Default

    Quote Originally Posted by cool_techie_tvm View Post
    I did not understand this statement. Click control + ( what ) ??

    The browser window? Or the Trayit software?
    i'm sorry. I forgot to clarify. Ctrl click on the minimize button to send the app to system tray.

  32. #32
    Amor vincit omnia
    Join Date
    Dec 2007
    Posts
    3,141

    Default

    Quote Originally Posted by taurius1 View Post
    i'm sorry. I forgot to clarify. Ctrl click on the minimize button to send the app to system tray.
    That part had got me confused for sometime. I will be trying the method posted shortly and will keep this thread updated with my findings. Thanks for your efforts.

  33. #33
    Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Smile

    Thnx mate

  34. #34
    Junior Member
    Join Date
    Feb 2008
    Posts
    3

    Default

    Quote Originally Posted by powerdoc View Post
    You could adjust the refresh rate of the page by editing with notepad, it refreshes too fast.

    Yes it refresh too fast .Please explain what or which line to edit in the notepad file .Thanks

  35. #35
    Junior Member
    Join Date
    Feb 2009
    Posts
    1

    Default

    not able to download you do not have permission to access this page. This could be due to one of several reasons:

    Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
    If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

    //You have not activated your account. Please click on the link in the mail you received from the forum admin in your mailbox. Failure to do so will cause all your posts go into moderation. - moderator just4kix

  36. #36
    Bronze Member taurius1's Avatar
    Join Date
    Sep 2008
    Posts
    141

    Default

    Quote Originally Posted by Noorjahan View Post
    Yes it refresh too fast .Please explain what or which line to edit in the notepad file .Thanks
    Read the thread first. -_-"

  37. #37
    Junior Member
    Join Date
    Feb 2008
    Posts
    3

    Default

    Quote Originally Posted by taurius1 View Post
    Read the thread first. -_-"

    Never mind I got my answer.Thanks for replying.

  38. #38
    Junior Member
    Join Date
    Apr 2008
    Posts
    10

    Talking

    Thank u soo much man, this is way too cool, thanks again soo much!

    Quote Originally Posted by sanjaydutta View Post
    Open the html file with notepad or other editing programs and search for the Line "<meta http-equiv="refresh" content="300">". The default refresh gap is 10 mins or 300 secs. You can change the thing accordingly. Change the "content=300" to "content="86400" for 24 hrs refresh gap.


    wouldnt 300 sec be 5 mins?
    Last edited by vgvgvg; 15th July 2009 at 01:51 PM. Reason: Automerged Doublepost

  39. #39
    Junior Member
    Join Date
    Apr 2008
    Posts
    10

    Default

    well, m abel to login n abel to use internet using this script, i dont type username n password, but aftr 6 hrs it still asks for username n passord, might be some issue with refreshing the script page, btw, wen it refreshes the page dose ip remain the same or it chngs? n "status" timer also shud chng in reliancebrobadband.co.in isnt it?



    well its working now, i chngd to 600 sec refresh time, any1 knws wat is the max time limite tht we can set in html meta to refresh?
    Last edited by vgvgvg; 17th July 2009 at 02:16 PM.

  40. #40
    Junior Member
    Join Date
    Dec 2009
    Posts
    1

    Default

    Thanks dude,wonderful work

  41. #41
    Junior Member
    Join Date
    Apr 2008
    Posts
    10

    Default

    reliance changed their homepage layout, so the scripts not working anymore. can some1 please redo the script according the new homepage & upload again. wud b great help to every1. social work is good & vry appreciated,
    many thanks & regards!

  42. #42
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    They have!!!!

    Sneaky bastards. Hey sanjaydutta can you please update your script for the new homepage?

    Any one experienced with curl? I tried modifying the original curl script to the following

    Code:
    curl -d "userId=username&password=password" -# hxxp : // www . reliancebroadband. co . in / reliance  / startportal_isg.do
    It still doesn't work. Can someone please help?

  43. #43
    Junior Member
    Join Date
    Dec 2009
    Posts
    1

    Default

    The url should be

    hxxp://aaa.reliancebroadband.co.in/reliance/login.do?action=doLoginSubmit
    and not

    hxxp://aaa.reliancebroadband.co.in/reliance/startportal_isg.do
    Replace aaa with www

    Also they are now using a cookie based authentication and I haven't been able to figure that out as to how to make curl work with that

    Can someone more experienced help ??

  44. #44
    Junior Member
    Join Date
    Nov 2009
    Posts
    4

    Exclamation I found The solution!!!!!!!!!!!!

    Guys, Go and replace the line just above you type in the value of username and password.........
    The line is

    <form name="authenticateForm" target="iFrame1" method="POST" action=" http : // 10.239.89.15 / reliance/startportal_isg . do">



    Enjoy!!!!!!!!

    P.S. remove spaces

  45. #45
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    Quote Originally Posted by gusguitara View Post
    Guys, Go and replace the line just above you type in the value of username and password.........
    The line is

    <form name="authenticateForm" target="iFrame1" method="POST" action=" http : // 10.239.89.15 / reliance/startportal_isg . do">



    Enjoy!!!!!!!!

    P.S. remove spaces
    It doesn't work, man

    Here's my code from sanjaydutta's original page

    Code:
    <form name="authenticateForm" target="iFrame1" method="POST" action="http: // 10.239.89.15/ reliance/ startportal_isg .do">
    <input type="hidden" name="userId" value="myusername">
    <input type="hidden" name="password" value="mypassword">
    </form>
    It doesn't log me in

  46. #46
    Junior Member
    Join Date
    Nov 2009
    Posts
    4

    Default

    Dude!! It will not log u in............... It will make u logged in............

  47. #47
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    u mean keep me logged in?

    Have u tested that it works? In the earlier auto-login page, if I was logged out and I refreshed the page, it used to log me in. Thats how it worked. After 24 hours, when reliance automatically logged me out, this page was set to auto reload evey 30 mins or so, and it used to auto-login for me.

  48. #48
    Junior Member
    Join Date
    Nov 2009
    Posts
    4

    Default

    I think we guys should e-mail the script owner -Sahil...(as it is written on the script) He may help us!!!!!!!!!!

  49. #49
    Junior Member
    Join Date
    Dec 2009
    Posts
    4

    Default Reliance Broadband Autologin

    Hey Guyz Its Time For The Solution To AutoLogin To Reliance Broadband/Broadnet

    I Have Designed A VBS script That Will connect You to Reliance Broadband and log in automatically. If anyone intersted Please send their request.
    Last edited by Admin; 20th December 2009 at 01:19 PM.

  50. #50
    Junior Member
    Join Date
    Nov 2009
    Posts
    92

    Default

    Thats really good and good to see such scripts and i am sure it helps one and all.

  51. #51
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    @gmpeerzade

    Can u please paste your script here in the code box? or just upload it to rapidshare.com or something?

    We all would be really grateful to you.

  52. #52
    Junior Member
    Join Date
    Nov 2009
    Posts
    4

    Default

    Pls Pls PLs !!!!!!! Upload it buddy !!!!!!!!!!!!!!

  53. #53
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    I've sent Sahil an email. Also gave him a link to this thread. Lets see. Fingers crossed.

  54. #54
    Junior Member
    Join Date
    Jan 2008
    Posts
    12

    Smile

    Sorry guys for much delay...Actually i have switched over to tata broadband from reliance, so I have no idea of what type of login system they are using.....Someone please drop in a mail to sahil.1436@yahoomail.com with the login page source code. I will definitely try to develop a new 1 for you guys....


    Regards,
    Sahil.

  55. #55
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    Hi Sahil,

    I've sent you the requested source code. Thanks again for all your help

    Alright Guys,

    I think we have a breakthrough. Kunal Dua from this site has made a wonderful python script which actually works.

    I'm pasting the script here:

    Code:
    #!/usr/bin/env python
    # encoding: utf-8
    """
    Reliance Login Script v1.0
     
    Created by Kunal Dua on 2009-12-18.
    http://www.kunaldua.com/blog/?p=330
     
    This program is free software; you may redistribute it and/or
    modify it under the same terms as Python itself.
    """
     
    import urllib2, urllib, cookielib
     
    username = '1111111111111111' #replace the text within quotes with your username
    password = 'password'	#replace the text within quotes with your password
     
    jar = cookielib.FileCookieJar("cookies")
    opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(jar))
     
    response = opener.open("http://10.239.89.15/reliance/startportal_isg.do")
     
    login_data = urllib.urlencode({'userId' : username, 'password' : password, 'action' : 'doLoginSubmit'})
    resp = opener.open('http://10.239.89.15/reliance/login.do', login_data)

    Instructions for use:

    If you are on

    1. Linux based system
    * Save the script with a py extension eg: scriptName.py
    * Make the script executable by chmod +x scriptName.py
    * Use crontab to schedule the script to run at an interval of x minutes where x = minutes as you like

    2. Windows based system
    * Install python for Windows from here
    * Save the script with a py extension eg: scriptName.py
    * The script is executed by python.exe scriptName.py (For eg. If you have installed python in C:\Python26 and kept the script in the same folder, the command in the Run window or command-prompt will be "C:\Python26\python.exe" "C:\Python26\rel.py" .)
    * Use the windows scheduler to schedule the script to run at an interval of x minutes where x = minutes as you like. This can be done using a .bat file. Reply to this thread if you need help with that.


    I've requested Kunal Dua to provde a logout script too, which can be used to completely automate the process. Fingers crossed for that too
    Last edited by boogeyman; 22nd December 2009 at 11:02 AM. Reason: Automerged Doublepost

  56. #56
    Junior Member
    Join Date
    Jan 2008
    Posts
    10

    Cool Curl based method for those interested

    Thanks for the script and due credits to Kunal Dua for the python based script. However, I have fixed my curl based script for Linux which went dysfunctional after they changed the login method.

    You need to make the following changes to the curl method as shown below:
    1. Add cookie support
    2. Add referrer (not necessary, but makes it spoof any smart ass looking out for people bypassing browsers at Reliance end)

    Code:
    curl -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)" -e http : / / w w w . reliancebroadband . co . in/reliance/login.do -b relcookie -d "userId=YOUR_USER_ID_HERE&password=YOUR_PASSWORD_HERE" "http : / / w w w . reliancebroadband . co . in / reliance/login.do?action=doLoginSubmit" --connect-timeout 15 --max-time 20 --retry 2 --retry-delay 5
    I have tested this to be working fine with my linux headless server at home. Do let me know if this works for you guys.

    Oh BTW, remove the spaces in the URL's above...

  57. #57
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    Excellent!!! Thanks so much

    So now we have 2 working solutions and a potential 3rd one in development by Sahil. Brilliant

    Although, when I run the curl version, it scrolls the entire source code of the web page in the command prompt. Is that supposed to happen? But, it logs me in just fine

    And, once again, can you please post the curl script to log off?

    The reason I'm asking everyone is coz then it can be automated like i had it in the old curl script:

    script to logoff
    wait 15 secs
    script to logon

    It used to run every 6 hours. So no tension of ever getting logged off

  58. #58
    Junior Member
    Join Date
    Dec 2009
    Posts
    1

    Default

    Hi Boogeman,
    thanks for the info provided.can you pls let me know the details of the .bat files pls.
    I want an always on connection.
    I want to make it as simple as possible.

  59. #59
    Junior Member
    Join Date
    Sep 2008
    Posts
    31

    Default

    I'm just waiting for the log-off script. I'll post the fully automated solution which I use, once the logout script is made.

  60. #60
    Junior Member
    Join Date
    Jan 2008
    Posts
    10

    Smile AutoLogin and Logoff using curl

    Sorry for the delay in responding - I was a bit busy with other work.

    For logoff, essentially the url changes only as below:
    Code:
    curl -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)" -e http : / / www . reliancebroadband . co . in / reliance / login . do -b relcookie "http : / / www . reliancebroadband . co . in / reliance / logout.do" --connect-time 15 --max-time 20
    As earlier - remove the spaces for the URL to make it usable.

    I also have a script I use for my headless linux server which is executed from the crontab automatically which I am attaching here if it helps anyone. You just need to edit the USERID and PASSWORD to set as per your account detail.

    The script basically attempts to connect to yahoo first to see if the connection is active and if not, executes the login procedure using curl. If it still doesnt work after a few iterations, it will attempt a logoff and refresh the DHCP (my reliance WIMAX is connected on eth0 interface) and other services. This may be removed as per individual requirement.

    My script:

    Code:
    #!/usr/bin/ksh
    # Autologin/Logoff script for Reliance
    # Kumar K
    URL="www . reliancebroadband . co . in"
    URL="10.239.89.15"
    MY_PID=$$
    FAILED_COUNT=0
    LOOP_COUNT=0
    SUCCESS=0
    PIDS=`ps -ef | grep AutoLogin.sh |grep -v grep| tr -s ' ' | cut -d' ' -f2| tr '\n' ' '`
    USERID="1234567890"
    PASSWORD="password"
    
    
    #Cleanup first
    #for PID in `pgrep AutoLogin.sh | grep -v $MY_PID`; do
    
    # first lets see if we are already connected
    curl 'http : / / www . yahoo . com' --connect-timeout 15 --max-time 20 --retry 2 --retry-delay 5 2>/dev/null | grep 'Yahoo!' >/dev/null
    if [ $? -eq 0 ]; then
    	# we are good, let try login next time.
    #	echo "Internet seems ok..." | /usr/bin/wall
    	exit 0
    fi
    for PID in $PIDS; do
    	if [ $PID -eq $MY_PID ]; then
    		continue;
    	fi
    	#exit 1;
    	kill -9 $PID >/dev/null 2>&1
    done
    pkill -9 curl
    
    # Attempt force login twice. Sometimes successful return could be due to blank page returned!
    for COUNTER in 1 2 3 4 5 ; do
    	HTML=`curl -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)" -e http : / / www . reliancebroadband . co . in /reliance/login.do -b relcookie -d "userId=$USERID&password=$PASSWORD" "http : / / $URL /reliance/login.do?action=doLoginSubmit" --connect-timeout 15 --max-time 20 --retry 2 --retry-delay 5`
    	RET=$?
    	if [ $RET != 0 ] && [ $RET != 52 ] ; then
    		echo $HTML | egrep 'LOGOUT|doToolbarLogoutSubmit' >/dev/null
    		if [ $? -eq 0 ]; then
    			exit 0
    		fi
    		echo "`date`: Login failed. Returned:$RET" | /usr/bin/wall
    		LOOP_COUNT=`expr $LOOP_COUNT + 1`
    	else
    		echo $HTML | egrep 'LOGOUT|doToolbarLogoutSubmit' >/dev/null
    		if [ $? -eq 0 ]; then
    			exit 0
    		fi
    		SUCCESS=`expr $SUCCESS + 1`
    		if [ $SUCCESS -ge 2 ]; then
    			exit 0
    		fi
    	fi
    	sleep 10
    done
    
    FAILED_COUNT=$LOOP_COUNT
    
    # Check if failed more than once, then force logoff and then restart firewall before retrying.
    # Addresses bug in iptables firewall buffer clog
    if [ $FAILED_COUNT -ge 5 ] || [ $SUCCESS -eq 0 ] ; then
    	echo ""
    	echo "`date`:Failed Count=$FAILED_COUNT. Logging off, restarting Firewall and trying login again!"
    	echo "`date`:Failed Count=$FAILED_COUNT. Logging off, restarting Firewall and trying login again!" | /usr/bin/wall
    	echo ""
    	curl -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)" -e http : / / www . reliancebroadband . co . in /reliance/login.do -b relcookie "http : / / $URL /reliance/logout.do" --connect-time 15 --max-time 20
    	sleep 1
    	dhclient eth0
    	/etc/init.d/bind9 restart
    	/etc/init.d/squid restart
    	/etc/init.d/shorewall restart
    else 
    	exit 0
    fi
    
    LOOP_COUNT=0
    SUCCESS=0
    # Cleanup and reattempt again!
    pkill -9 curl
    for COUNTER in 1 2 3 4 5 ; do
    	HTML=`curl -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)" -e http : / / www . reliancebroadband . co . in /reliance/login.do -b relcookie -d "userId=$USERID&password=$PASSWORD" "http : / / $URL /reliance/login.do?action=doLoginSubmit" --connect-timeout 15 --max-time 20 --retry 2 --retry-delay 5`
    	RET=$?
    	if [ $RET != 0 ]; then
    		echo $HTML | egrep 'LOGOUT|doToolbarLogoutSubmit' >/dev/null
    		if [ $? -eq 0 ]; then
    			exit 0
    		fi
    		echo "`date`: Login failed. Returned:$RET" | /usr/bin/wall
    		LOOP_COUNT=`expr $LOOP_COUNT + 1`
    	else
    		echo $HTML | egrep 'LOGOUT|doToolbarLogoutSubmit' >/dev/null
    		if [ $? -eq 0 ]; then
    			exit 0
    		fi
    		SUCCESS=`expr $SUCCESS + 1`
    		if [ $SUCCESS -ge 2 ]; then
    			exit 0
    		fi
    	fi
    	sleep 10
    done
    
    FAILED_COUNT=`expr $FAILED_COUNT + $LOOP_COUNT`
    
    # Failed multiple times, definitely something is wrong at ISP!
    if [ $FAILED_COUNT -ge 10 ]; then
    	echo ""
    	echo "`date`:Check ISP. Login failed!" | /usr/bin/wall
    	echo "`date`:Check ISP. Login failed!" 
    	echo ""
    	exit 1
    else
    	echo ""
    	echo "`date`:Success after retry. Retry count:$FAILED_COUNT" 
    	echo "`date`:Success after retry. Retry count:$FAILED_COUNT"  | /usr/bin/wall
    	echo ""
    	exit 0
    fi
    exit 1
    As of earlier, please remove spaces for the URL's.

    Do let me know of any useful feedback.

Page 1 of 2 12 LastLast

Similar Threads

  1. Reliance Broadnet Review
    By premjit in forum Reliance Broadband
    Replies: 3
    Last Post: 9th October 2011, 06:56 PM
  2. Reliance Broadnet Dc HUB Mumbai
    By dombivlirocks in forum Reliance Broadband
    Replies: 2
    Last Post: 16th June 2011, 12:47 PM
  3. Reliance broadnet with Switch
    By INS-ANI in forum Reliance wimax
    Replies: 1
    Last Post: 15th October 2009, 09:28 PM
  4. Reliance AutoLogon and Permanent login solution reqd.
    By ratnajeet in forum Reliance Broadband
    Replies: 2
    Last Post: 2nd October 2008, 07:20 PM
  5. plz help me Reliance broadnet permanent login
    By ***k_reliance in forum Reliance Broadband
    Replies: 4
    Last Post: 7th April 2008, 01:35 PM