Send login parameter into hotspot login page from terminal

hi there,
i just curious are there any tricks to login into mikrotik hotspot from :

  1. linux terminal ?
  2. web browser address bar injection (maybe) ??
  3. any javascript to click “Log In” button (when username & password automatically filled in) ??

reason to doing this :
first of all i don’t want to hack mikrotik hotspot login page (i have a valid username & password to login into hotspot).

  1. i want to remote my computer (at my office) from my home (using logmein ==> web based) but in order to connect to the internet, my office computer must be log in into mikrotik login page.
  2. sometime our mikrotik router was down (poor electricity) that make me have to re-login into mikrotik login page to have internet access (once our router up)
  3. it’s impossible to doing no. 2 when i was not in my office
  4. it’s too much things to do (just say it’s impossible) for ask the network admin to set my computer so it can bypass mikrotik login page

any clue would be appreciated :smiley:

Just submit a POST to “http://router.name.or.ip/login?username=your-username&password=your-password” and you’ll be logged in. You can do that via curl or wget if you want to.

That would require http-pap be enabled as a log in method. If you need the password to be encrypted enable SSL and still use http-pap, which will be wrapped inside the SSL session.