Free Hotel Wifi with Python and Selenium
gkbrk.com
gkbrk.com
Some hotspots only blocks new TCP connections when that time expires. So I used this workaround a few times in the past:
You open an SSH connection with -D 1337 so it creates a local SOCKS proxy. You need to keep that connection opened.
Then you go to gnome/kde/chrome/whatever and define a global SOCKS proxy to localhost:1337. By doing this, all your new TCP/UDP requests will go through that connection, and the router won't see them as new TCP/UDP connection.
It used to work for some airports and those 20-minutes-free wifi hotspots. But honestly I don't remember last time I had to use it. Nowadays I use mainly 3G on Brazilians airports and, when traveling abroad, I don't remember last time the airport didn't provide a unlimited free wifi.
Some hotels have weird setups like free WiFi in the lobby but you have to pay in the room. That trick probably works there, at least for some of the rooms.
I think you’re finally right.
The NYC airports finally rolled it out.... 2 months ago
How usable is the speed on this?
Over my 4g connection to the 'server' box I get this:
[ 3] 0.0-12.4 sec 1.00 MBytes 676 Kbits/sec
Via an iodine tunnel: [ 3] 0.0-10.1 sec 178 KBytes 144 Kbits/sec
I did try and hit up fast.com from a ssh -D proxy over the tunnel, but it didn't seem to like that very much.My guess is most hotel wifi access pages lack anti-automation (I've seen CAPTCHA on airplane wifi, but never hotel wifi) and there are enough Smiths/Lopezes/Kims/Lis out there that if you try each of those against every room number (100-1000) you could reasonably get free wifi in minutes. An optimization could include changing MAC address between each attempt to defeat rate limiting on the part of the access point.
Stolen wifi, since someone will end up getting charged for it.
Honestly though I stopped going to hotels that don't offer complimentary wifi and breakfast. That means no Hilton or Marriott. All Holiday inn hotels I've dealt with have been scores nicer than the "high end" crap Hilton pretends to be.
Courtyard was a bit better but I got a similar experience as the Hilton. 5 dollar water bottles in the room, nickel and diming all over the place.
My understanding is that it's not just that you can afford it, it's that these places cater heavily towards corporate stays, so the guest is usually not the one paying.
Holiday inn breakfasts are a bit worse quality but I've always been treated with utmost respect as a guest there, so they get my business. Room size is something I don't usually care about as long as there's a desk.
I was pretty impressed with Home2 suites, usually just a bit more than Hampton. No omelette bar but otherwise nice breakfasts with microwaveable sandwiches, and the snacks are pretty cheap instead of $5/water.
My last trip I had a box of those soylent shakes sent ahead of me and just used those for breakfast - reasonably healthy and tasty enough. Better then the free breakfast for my use case anyways.
I'll second Hilton on good customer service though, definitely one of my preferred chains. That and the business oriented Holiday Inn Express or whatever they're calling it now.
Used to go with Marriott, but they don’t have much inventory outside of major city centers.
Edit: Hell, just call it "liberated" wifi ;-)
A curious observation. Thanks. I'm not really informed about expensive hotels, almost everything I know is about the middle segment.
> At cheap hotels they use it to attract customers
At the hotel market of the region I know guests wouldn't even consider booking a hotel that doesn't list free WiFi (unless it's really fantastic in other aspects and/or unbelievably cheap) and they would put submit a negative review if they came and there was no free WiFi (even if it wasn't advertised and they've just didn't notice), it's like if there was no free water in the WC.
> but the hotel gets some extra income.
And the guest gets some extra headache with authentication and billing instead of just turning WiFi on and using it.
This is common with a lot of chains these days. Free WiFi is a carrot to get you to book through their site so they save agent fees.
An observation on the side: My travel policy covers a number of "paid movies" depending on the nights travelling. With proper internet that business of hotels finishes and travellers get their pr0n — oh I mean action movies — for free without it appearing on the hotel bill.
I would paste the code snippet, but it doesn't format nicely on HN.
function remac {
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
sudo networksetup -detectnewhardware
echo $(ifconfig en0 | grep ether)
}
EDIT: Two spaces is enough. function remac {
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
sudo networksetup -detectnewhardware
echo $(ifconfig en0 | grep ether)
}
EDIT: Yep! Two is enough. Thanks!sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
At CERN in Geneva I had a different problem: MAC addresses are registered to staff. My dad retired, and his Thunderbolt Ethernet adaptor was still registered. When I plugged it into my laptop, I not only got his MAC address, but also his device name! My shell started calling my computer a different name!
If you're afraid to use Terminal, you can also install the MacSpoofer preference pane:
And even if you don't think that's reasonable, how confident are you that a prosecutor couldn't convince a judge and/or jury it is?
add post-connection-hook to `curl` with post data; use $RANDOM for mail address, even use root.$RANDOM@localhost.localdomain probably it will authenticate you.
I find reverse-tethering quite useful when the WiFi provider limits access to one device at a time. With iOS devices I also have the option to use my Mac‘s connection over USB.
Airplane WiFi isn't expensive just because. The more people are on it and the more people exploit it, the shittier it becomes for everyone. It gets drastically worse when flying over water, because ATG (air to ground) transmission isn't possible, and they have to rely on satellite connection exclusively.
The only real solution for in-plane WiFi would be to allocate more frequency space for the purpose. Until that happens, we're doomed to the current situation.
Probably double when you’re on an airline owned by a country that has the death penalty for homosexuality [0] and doesn’t have due process for non-citizens.
[0] https://en.wikipedia.org/wiki/Capital_punishment_in_the_Unit...
You could just call a process from within python that sets it that way
Which says that systemd-networkd can be set to spoof MAC but "needs a reboot", does it really need a reboot or is restarting (or ifdown, reload, ifup) enough?
For T-mobile, they deprioritize your data at 55GB. I’ve never seen it in practice. My older son who doesn’t live with us uses his phone as his only internet connection and easily uses 80GB+ a month. We were at an extended stay for 6 months while we were waiting for our house to be built, and we were going through 70GB each between my younger son using tethering for his PS4 and us using our phones as hotspots for an AppleTV.
We have since changed plans and I have been leery of the u-word ever since.
There is no other identifiable information a router can get out of a device without authentication
See p.1702 and use of carrier frequency offset (CFO) for fingerprinting, this paper discusses other methods and auth of AP/devices too; https://www.cs.ucr.edu/~zhiyunq/pub/infocom18_wireless_finge... .
I can't say I've stayed in a lot of hotels, but of the ones I have stayed in, it's only ever been an issue in the West.
Perhaps that's a part of the reason I enjoy holidays in East Asia. I get the feeling wifi there is a just a thing, you get access to it, it works. And nearly all the hotels I've stayed in also offer a free phone that you can take with you if you need data outside of the hotel.
Yet, in the west, you're lucky if you get some paltry free allowance. For a business who's aim is "make your stay enjoyable" they're doing a pretty shit job of it.
Luckily, in the EU at least, you can roam with your own 4G connection everywhere and having a 120 KB/s connection is a thing of the past.
My theory is, often companies have a limit for room prices for their employees, but WiFi fees count additional other expenses so they won't matter for the selection of the hotel.
So as a business traveler you don't care to be charged 20$/day for WiFi, your employer will pay for it. Hotels make nice extra money. Only "normal" guests who care, will be annoyed.
In medium tier Hotels and especially Hostels all around the world I never experienced any WiFi restrictions.
I've had the opposite experience. My wife and I usually stay at Hampton Inn or Hilton properties on vacation, two star "business traveler oriented" locations with free breakfast and free low-speed WiFi. It's fast enough for everything except streaming video in HD, and we always bring a Raspberry Pi with a thumb drive full of TV shows and/or movies we want to see while on vacation. Most of the places we've stayed even had free HBO/Showtime for when we want to watch something random.
Conversely, for our fifth anniversary we stayed at a luxury suite for the weekend, and we had to pay for any WiFi whatsoever, and for breakfast (admittedly a much nicer breakfast experience than other hotels).
It boils down to: Mid-price hotels often have free wifi. Expensive hotels charge much more often. Cheap hotels are a tossup.
The hotels in East Asia got wifi later, where it was easier to set up and therefore more likely to be offered for free.
Which millennium are we talking about?
I wouldn't be surprised if the contracts hotels have are pay per use, so they barely pay much to have the services. Why change that model and give everyone free Wi-Fi. It's the cheaper motels that usually offer free Wi-Fi.
>Introduced September 1998; 20 years ago
And internet is cheap, really cheap, in East Asia. I'm in Vietnam at the moment and my gf got a SIM card for unlimited 4G/LTE data for 15 days (the length of a visa-free visit here) for $8. That's the expensive foreigner price. I didn't even bother getting a SIM - she hotspots me on the rare times we're somewhere that there isn't free WIFI.
I was in Cambodia earlier in the year, and was paying US$1/week for effectively-unlimited data (250Gb each week). Thailand is a bit more pricey for farang, but still not bad. Australia was AU$1/day for 30Gb over 30 days. It's not a huge expense, but the difference is noticeable.
I think it's the nature of the market. There's no way that SE Asians would pay Western prices for internet, so the price comes down.
In those countries you mentioned yes. Cambodia isn't representative for SEA, it's a very poor and poorly managed country. Go to Malaysia and Singapore and physical infrastructure is common.
> That's the expensive foreigner price. > Thailand is a bit more pricey for farang
Not sure why you are paying "foreigner price" for sim-card/data in Thailand or Cambodia. You can just go to any shop and you will be charged the same price as anyone else.
> There's no way that SE Asians would pay Western prices for internet, so the price comes down.
A few other things to note:
* There is no net neutrality in these countries, data packages includes 'unlimited' or big data allowances restricted to Facebook/Youtube.
* Data connection is great in cities like Phnom Penh but as soon as you get out on the countryside you are back to a slow 3G connection (improving though). So: it's a lot cheaper to build infrastructure for a limited area.
* Cambodia is a very flat country making it a lot easier to build mobile networks compared to some European countries or in the US.
Also, people don't seem to have any objections to mobile towers being built near them. In the UK & Australia there's a lot of NIMBYism and fear about mobile towers being built near schools (especially). It can get really expensive to build a tower in a rich suburb.
Nope. I had wifi in most guesthouses, hotels and cafes when backpacking SEA in 2007. Back in Europe a year later or NYC in 2010 it was still difficult to find wifi in hotels and cafes. Hotels would have a LAN-connection though.
My guess would be the time they installed it. Those that were early had to pay more for the hardware and agreements and saw it as an optional extra charged at a premium.
Now that it's a commodity, the cost of hardware has reduced and simply giving a wifi password is simple for new installations. But those who did it earlier may not justify replacing it for something that's free, because what they have 'works' for them.
I'm probably wrong, but wouldn't be surprised.