![]() |
How can I login without opening my browser?
I have to login to the network through my browser before I can start accessing the web, and it's gotten quite annoying. Is there some alternative way to login (sans browser) by using one of Apple's net utilities or an Applescript?
|
It would really depend on how you are being asked to login.
Are you being asked to login into the proxy sever. by a drop-down sheet. Comes out of the title bar If so there should be a 'remember' this password checkbox. If you have to login using a form on a web page. Then check this thread out |
Yes, I believe it's a proxy server. At any rate, Safari does remember the password and user name, so I just have to press one or two buttons, and I'm in. The thing is, I'm trying to avoid opening browsers altogether. I would rather have my system login in the background.
Thanks for the hint! |
Maybe it would help if I mention that the URL for the login page is:
http://10.0.0.254/cgi-bin/authen_01.pl |
Quote:
Code:
tell application "Safari"Not perfectly silent, but unobtrusive. |
That's interesting. Thanks for the info, it's a step in the right direction. I wonder if anything like this could be done through Terminal.
|
Quote:
Further help is therefore hard to give without lots more detail. Do the scripts posted above work? |
Quote:
usually, web authentication scripts are processed server-side, which means the only access point is through a web browser. it's possible that the administrators have implemented an ssh login mechanism (you should send them an email and ask); that would make the task tremendously easier, since you could write a cron entry that would periodically connect and log you in invisibly. more likely, though, it's expecting an http connection and setting a cookie in your browser. that means you'd need to write a unix script that fakes being a browser (sending and receiving http POST and GET, storing browser cookies...). gives me a headache just thinking about it. |
Hmm, I'll look for any cookies that seem like they fit the description.
Trying to talk to the network people here is a real exercise in futility. Take my word for it, I'd rather not explain. :) |
Quote:
AFAIK curl can use POST and GET if needed (don't ask me how to though) |
I remember that post, but it was over my head back then, and still over my head today. I really appreciate the effort though. I'm going to go back and read it over again to make sure that I don't understand it, or vice-versa.
|
I've deleted all cookies and logged into the network, and it doesn't seem that there are any cookies being set by the server. The first cookie set is coming from the first page I visit, such as Google or these forums.
|
Quote:
|
2 Attachment(s)
I just want to post these screen shots to give you guys, perhaps, a better idea of what the login looks like. Complete with broken English (I don't think we are in Kansas anymore Toto)!
Here's the URL for the link to the lower right-hand side of the first screen. http://www.nvk.co.th/ Are you beginning to understand why I avoid communication with the ISP and/or network admin.? |
1 Attachment(s)
Here's a diagram of the setup that I think I have at my apt.:
|
I typed this in to Terminal:
ssh login@http://10.0.0.254 and got this back: ssh: http://10.0.0.254: No address associated with nodename Many different permutations of the above result in the same message. If I'm going to give Terminal a login, shouldn't there be a password as well? |
Ah, this is different:
computername:~ useraccount$ ssh login@10.0.0.246 ssh: connect to host 10.0.0.246 port 22: Connection refused computername:~ useraccount $ ssh login@10.0.0.254 The authenticity of host '10.0.0.254 (10.0.0.254)' can't be established. RSA key fingerprint is (very long string of characters here). Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': yes Warning: Permanently added '10.0.0.254' (RSA) to the list of known hosts. login@10.0.0.254's password: Permission denied, please try again. login@10.0.0.254's password: Permission denied, please try again. I tried the login password that works through my browser, but it didn't work in the last 4 lines of Terminal. Which password do you think works here? |
nah, sorry, if it was going to work it would have been easy. it's a secure login, so there's no sense guessing at the entry point. you're going to have to talk to the admins if you want to pursue this solution, or dig around in their webpage until you find something useful (I'd help, but I'm afraid my thai is a little rusty - lol), but my guess is it's going tobe a dead end.
|
I see. Thanks anyway!
How would I go about removing 10.0.0.254 from the list of known hosts? (Warning: Permanently added '10.0.0.254' (RSA) to the list of known hosts.) |
Quote:
|
1 Attachment(s)
Ok, you sure can.
|
Quote:
|
I see, but the first time I entered that command, the server generated an RSA key and it showed up in the Terminal. Now, when I enter the same command, I just get a password prompt. I guess I really want to know how to generate another RSA key if needed in the future.
|
If I try the password three times unsuccessfully, I get this returned to me in the Terminal:
Permission denied (publickey,gssapi-with-mic,password). |
| All times are GMT -5. The time now is 01:59 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.