DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th January 2013
phyro phyro is offline
Port Guard
 
Join Date: Sep 2010
Posts: 27
Default Public WiFi and accept screens

my networking all works fine, but when I get my ip from a public wifi service there is a pop up webpage agreement that requires you to select "Yes" before you actually get an Ip.

does anyone know how to accept this either manually or automatically via command line.

TIA

all of my ifconfig stuff appears to be fine, it just wont server my ip until I click yes.
Reply With Quote
  #2   (View Single Post)  
Old 10th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

You could script HTTP receipt and response with nc(1), or probably more easily with net/curl. As each hotspot's implementation will be different, you may have to have multiple scripts for multiple sites.
Reply With Quote
  #3   (View Single Post)  
Old 10th January 2013
phyro phyro is offline
Port Guard
 
Join Date: Sep 2010
Posts: 27
Default

ok thanks, Ill work on something, not real sure what the best way to go about it tho, heh

thanks

Last edited by phyro; 10th January 2013 at 06:59 PM.
Reply With Quote
  #4   (View Single Post)  
Old 10th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

nc(1) has no dependencies, net/curl depends on devel/gettext, devel/libidn, and to the best of my recollection their dependency chains do not include java. For scripting curl, there are perl, python, and Tcl interfaces.

If you need java, devel/jdk 1.7 is available as a jdk or jre package.

Last edited by jggimi; 10th January 2013 at 07:01 PM. Reason: clarity
Reply With Quote
  #5   (View Single Post)  
Old 10th January 2013
phyro phyro is offline
Port Guard
 
Join Date: Sep 2010
Posts: 27
Default

tried

Code:
printf "GET / HTTP/1.0\r\n\r\n" | nc host.example.com 80
(changing for my hostname)

I get the html headers and such but im not sure how to "click accept" lol
Reply With Quote
  #6   (View Single Post)  
Old 10th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I'm going to recommend you use Google, Bing or whatever your favorite Internet search engine is and search with two keywords: "curl" and "hotspot". The top hit on Google recommend a specific curl script that you could copy/paste for command line based web-browser-push-button scripting.

Personally, I don't do any of this when I use public access WiFi. I just use a browser.
Reply With Quote
  #7   (View Single Post)  
Old 10th January 2013
phyro phyro is offline
Port Guard
 
Join Date: Sep 2010
Posts: 27
Default

Quote:
Personally, I don't do any of this when I use public access WiFi. I just use a browser.
yeah, same.

sigh the only reason this is such a pita is b/c its a fresh install with nothing on it in a foreign network. Thanks tho.. Ill check it out.
Reply With Quote
  #8   (View Single Post)  
Old 10th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

If you need it, there is a built-in (text only) browser: lynx(1). It can "push" buttons as well, if necessary.
Reply With Quote
  #9   (View Single Post)  
Old 10th January 2013
phyro phyro is offline
Port Guard
 
Join Date: Sep 2010
Posts: 27
Default

I did actually try lynx (and I can navigate to the disclaimer) but when the actual popup box appears it says "java script not enabled" and from what I can tell it doesn't support it.

thanks tho
Reply With Quote
Old 10th January 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by phyro View Post
...but im not sure how to "click accept" lol
What you need to do is look at the structure of the URL sent back to the server in response to clicking "Accept" as that is how the server is notified that you accept whatever conditions/limitations they enforce.
Reply With Quote
Old 10th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by phyro View Post
I did actually try lynx (and I can navigate to the disclaimer) but when the actual popup box appears it says "java script not enabled" and from what I can tell it doesn't support it.

thanks tho
Java and JavaScript are not the same technologies at all. They only share 4 letters.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg Screens & pkgsrc Help SL6-A2000 NetBSD General 1 18th March 2012 08:11 PM
Switching wsconsole screens with Alt-Fn in NetBSD and OpenBSD IdOp Guides 2 1st September 2011 02:36 PM
How to get 'make' to accept all defaults for dependent packages Xeon FreeBSD Ports and Packages 1 12th February 2009 01:54 AM
secure ssh with public key milo974 OpenBSD Security 11 9th July 2008 04:52 PM
OS to run in a public computer? Sunnz Off-Topic 31 23rd May 2008 05:47 PM


All times are GMT. The time now is 10:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick