LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 09-09-2013, 01:39 AM   #1
plackons
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Rep: Reputation: Disabled
Connect to Public Unsecured Wireless Networks using command line and scripts


Hello
I would like to find an automated way to connect to networks such as Starbucks using command line shell scripts or perl scripts.
I already run the wpa_supplicant and can get assigned the IP address.
The network however has landing pages that use forms and checkboxes for "Terms And Conditions".
It is not my intent to bypass the legal agreements and the security. I simply want to accept the conditions and temporarily connect to the internet in the background without user intervention.
This should be possible using a combination of perl and shell scripts. Can someone advise?

Thanks!
 
Old 09-10-2013, 04:50 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
IME you have to fine-tune each of those for the access point in question. They are very different. Some clearly want you to accept terms and conditions, others require a login.
 
Old 09-10-2013, 10:15 AM   #3
plackons
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,
Thanks for the reply. I found that at least as far as teh Starbucks for example, they are very standard between their different stores. They have the same script running in each.
The issue I am across now is I have a perl script to mechanize the form submission to the AP, but I dont know what URL I should pass to the script.

Thanks!
 
Old 09-10-2013, 10:24 AM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,141

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
i imagine it would be the router that passes that webpage: usually 192.168.0.1 or 192.168.1.1 or 192.168.2.1 or 10.0.0.1 ...

i think you can use wget with post to get and respond to the landing page in the terminal... also maybe elinks will help ?
 
Old 09-11-2013, 04:22 AM   #5
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,568

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Quote:
Originally Posted by plackons View Post
Hi,
Thanks for the reply. I found that at least as far as teh Starbucks for example, they are very standard between their different stores. They have the same script running in each.
The issue I am across now is I have a perl script to mechanize the form submission to the AP, but I dont know what URL I should pass to the script.

Thanks!
IME, some use a very standard one as has been mentioned; others run the dhcp server on weird machines (10.0.0.43) as it is a load that can be moved. Others again have layers of access on the same network, which confuses things mightily.
 
Old 09-11-2013, 08:31 AM   #6
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,141

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
the last time i was at a hotel the wifi user/pass was a weird combination of room number and last name. i had to call the front desk 3 times because someone at my job booked the room (good luck automating that).

i just remembered... my job uses cisco-vpn but it doesnt work well with public wifi. so they put together some vpn-helper batch script that opens an ms-explorer frame that temporarilly disables the web proxy and allows the user to enter in the wifi credentials and then hands off the rest of the automated process to the cisco-vpn.

i think lack of standardization of public wifi hotspots makes it close to impossible to fully automate without human intervention.

Last edited by schneidz; 09-11-2013 at 11:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure and connect to wireless connection through command line? rayyu Linux - Networking 9 09-14-2012 12:45 PM
Network manager unable to connect to unsecured wireless - WPA networks fine :S phyre-x Ubuntu 8 05-16-2011 11:11 AM
Auto-Connect to Unsecured Wireless Bradj47 Linux - Wireless Networking 2 03-30-2011 09:02 AM
Unable to connect to WEP or Unsecured Wireless (WPA is fine) Poetics Linux - Wireless Networking 7 07-06-2010 05:15 AM
cannot connect to unsecured wireless network on edgy ubuntu ywemily Linux - Wireless Networking 0 03-27-2007 11:04 AM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration