plz Help hotspot auto login

Hi every one I have a problem :frowning: with my net connection at home, I’m connected to a mikrotik server,
whenever the electricity goes down or I restart my computer my session on the server ends & I have to re-open my browser(firefox or IE) again
& enter the user name & password otherwise I won’t have an internet access.
so when I’m at home this doesn’t seem like a problem, but I’m used to access my PC at home from work through a site (http://www.logmein.com)
if the connection at home is lost bcz of session ended or any other reason,in this case it’s impossible to have an active connection
how to solve this, is there a batch file or a script that enables my PC at home to log on automatically. on regular intervals or to be more accurate
when the session is ended.

Write a script in the operating system that tests whether the connection is up (by default an unauthenticated Hotspot user cannot ping past the Hotspot). Use cURL or wget or anything else that lets you submit an HTTP request like http://hotspot.example.com/login?username=username&password=password when the script detects failure.

Details depend on that Hotspot (HTTPS? HTTP-PAP? HTTP-CHAP? what is the domain name?) and the client operating system.

Basically, open Wireshark and capture yourself logging in, and use a tool that can speak HTTP to replicate the login action from a script when the connection is down.

Or be pragmatic and contact the Hotspot owner and ask if you can pretty please be bypassed from logging in and explain the circumstances. Might save you a bunch of work.

Done this way:

echo "POST /login HTTP/1.1
User-Agent: Wget/1.16.1 (linux-gnu)
Accept: */*
Accept-Encoding: identity
Host: 10.22.0.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 35


[BODY data: username=user&password=pass]"| nc 10.22.0.1 80

Hello,

Insteed of writing a script or something else, just use Mac cookie :slight_smile: