Community discussions

MikroTik App
 
swanto
just joined
Topic Author
Posts: 23
Joined: Wed Jul 21, 2004 9:22 pm

Automatic client login to hotspot

Wed Jul 21, 2004 9:38 pm

Dear all,

I'm connected to my ISP via Mikrotik wireless hotspot.

Everytime I connected to internet, I must open my web browser and login thru the login page. Then I can use email client and so on.

Is there any way to bypass this login page?

Any script or program I can add to Windows startup so I don't need to login manually? Without any changes to the server side.

Fyi, my ISP is using default Mikrotik/ROS login page.

Thanks.

Suwanto
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Thu Jul 22, 2004 1:13 pm

Yep, telnet to port 80 on your router and send HTTP request:
/login?user=username&password=password.
 
swanto
just joined
Topic Author
Posts: 23
Joined: Wed Jul 21, 2004 9:22 pm

Thu Jul 22, 2004 9:28 pm

Thx for your reply. :)

Do you mean that I just telnet to port 80 to the ISP router (10.50.x.x)?

And then type:
/login?user=<username>&password=<password>.
directly at the telnet console?

Sorry, I dont know telnet well.

Btw, does mikrotik provide this small login program? for sale or free?

Thanks.

Suwanto
 
User avatar
lastguru
Member
Member
Posts: 432
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Thu Jul 22, 2004 10:14 pm

1. I do not know what do you mean by a "small login program".

2. To get logged in, it is not the telnet protocol you should know - it is just plain simple, but rather the HTTP protocol. You can use the given link in you HTTP browser, or just telnet to the relevant adress and port (might be 80) and form the request by yourself by typing it in a valid HTTP language like this:
GET /login?user=<username>&password=<password> HTTP/1.0

Notes:
1. capital letters are essential
2. you might have to press [Enter] one more time after you type the command
3. in order this trick to work you must enable unencrypted passwords in the hotspot server's configuration unless you are able to encrypt the password with MD5 (using a challenge string the server will give you) in your head and post it back :)
4. you will eventually find out whether you have successfully logged in by taking a look on the hotspot servers answer (that is why I recommend not to close the telnet prompt after you have disconnected)
 
swanto
just joined
Topic Author
Posts: 23
Joined: Wed Jul 21, 2004 9:22 pm

Fri Jul 23, 2004 6:39 am

What I mean by 'small login program' is a program user can run on the
client side to login into the hotspot system.

So user don't need to see the login page and manually type in the username and password.

Something like 'mikrotiklogin.exe' that we can run on Windows startup.
eg. 'mikrotiklogin.exe' get its setting from 'mikrotiklogin.ini'.
So user don't need to type anything.
Just run the program and login automatically.

This kind of login is much more simple than manually login via web.

Anyone do this before?

Thanks a lot.

Suwanto
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Fri Jul 23, 2004 4:33 pm

Why just don't use PPPoE instead of HotSpot in this case (or use MAC authentication)?
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Fri Jul 23, 2004 4:41 pm

I suppose the main reason is that the original poster wrote
I'm connected to my ISP via Mikrotik wireless hotspot.
So he isn't in charge of the router, but is "just" a user...
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Fri Jul 23, 2004 4:49 pm

Ups, haven't noticed that...

Telnet or some kind of automatical form filler (Mozilla Firefox or Opera have something like this)
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Fri Jul 23, 2004 5:00 pm

If nothing else helps, someone could probably convince me to write a small Windows app that sits in the system tray and lets you login/logout of a MikroTik hotspot with opening your browser...
 
swanto
just joined
Topic Author
Posts: 23
Joined: Wed Jul 21, 2004 9:22 pm

Fri Jul 23, 2004 10:04 pm

Cmit, it is very kind of you if you would like to spend your time and share your knowledge writing this small automatic login program.

I'm sure this small program will be very usefull to many hotspot user.

Why do we need this automatic login program:
1. Sometime, actually there is no need to open web browser, we just want to send email or use mirc. This mikrotic login procedure force us to open web browser just to do the login.
2. Sometime, we use wireless hotspot connection for our internal internet sharing (wingate/winroute). This internet sharing server should run automatically without user intervension. But this login procedure force the user to open web browser, do the login manually. Every morning, someone has to turn on the server, wait the windows start, open browser, do the login. This can take 10 minutes.
3. Sometime, we don' want to see the ISP login page.
4. Almost all of us prefer doing things automatically than manually typing. Double clicks (or even no click) compared to type manually?
5. Anybody help me to convince Cmit? :)

Lastguru, I have tried to telnet to port 80 of the ISP router, and then /GET /login.htm, it return the page, but I cannot find the 'challenge string'.

But when I'm doing the login via web browser, when the browser displaying login screen, and I view the source page. I can see the challenge string. Is there any difference? Why?

Thanks a lot.

Suwanto
 
jroy
newbie
Posts: 33
Joined: Fri May 28, 2004 9:41 pm
Location: Orange/LA county California
Contact:

WOW!

Tue Aug 17, 2004 9:45 pm

This would be a great program. Let me know when it is available. I have a great need for something like this.

Jerry Roy
jroy_at_goremote.com
 
swanto
just joined
Topic Author
Posts: 23
Joined: Wed Jul 21, 2004 9:22 pm

Wed Aug 18, 2004 5:25 am

Yeah, I think Mikrotik should provide this program. Because they know all the internal process dan encryption for the login process.

Or a good script programmer can do this too... :P

Thanks.

Suwanto
 
tully
MikroTik Support
MikroTik Support
Posts: 502
Joined: Fri May 28, 2004 11:07 am

Wed Aug 18, 2004 12:30 pm

We have made something for this, but it would give my computer the 'blue screen' and for others it would work fine. So, we need to go back and debug it.

John
 
chris
just joined
Posts: 3
Joined: Wed Sep 29, 2004 3:56 am

Wed Sep 29, 2004 4:06 am

I think you should call up your supposed ISP and tell them to quit being a bunch of amateurs. Hotspot is fine for occasional use, but it was never intended to be used as a permanent, daily solution. See if this ISP will let you use PPPoE instead. An auto-login program that sits in the tray just seems like a band-aid to me. Good luck, swanto.
 
tully
MikroTik Support
MikroTik Support
Posts: 502
Joined: Fri May 28, 2004 11:07 am

Wed Sep 29, 2004 10:08 am

The Latvian telephone company uses a Cisco hotspot solution that requires login every time unless you put a router that has the ability to constantly ping (our RouterOS using netwatch). So, it seems that the hotspot solution is a bit common.

John
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Utility for automated HotSpot login ready for testing...

Fri Oct 01, 2004 5:58 pm

I have finally managed to put together to utility I promised to code.
See the forum post at http://www.mikrotik.com/forum/viewtopic.php?p=3722...