Skip to content

Instantly share code, notes, and snippets.

@yocontra
Last active November 21, 2021 21:13
Show Gist options
  • Save yocontra/67b9d4d0822e867428ef to your computer and use it in GitHub Desktop.
Save yocontra/67b9d4d0822e867428ef to your computer and use it in GitHub Desktop.

Stealing WiFi

/etc/hosts

This will let you access any google owned site. This includes: youtube, google cache, google translate, google search, gmail, google news, etc.

  • Install the HTTPS Everywhere extension
  • Add these rules to your /etc/hosts file
# gogo in flight
127.0.0.1 c.youtube.com
173.194.46.71 google.com
173.194.46.71 *.google.com
173.194.46.71 www.google.com
173.194.46.71 groups.google.com
173.194.46.71 appengine.google.com
173.194.46.71 developers.google.com
173.194.46.71 code.google.com
173.194.46.71 accounts.google.com
173.194.46.71 plus.google.com
173.194.46.71 apis.google.com
173.194.46.71 googlecode.com
173.194.46.71 youtube.com
173.194.46.71 *.youtube.com
173.194.46.71 googlevideo.com
173.194.46.71 *.googlevideo.com
74.125.9.166 r15---sn-vgqsen7d.googlevideo.com
74.125.9.166 r14---sn-vgqsen7d.googlevideo.com
74.125.9.166 r13---sn-vgqsen7d.googlevideo.com
74.125.9.166 r12---sn-vgqsen7d.googlevideo.com
74.125.9.166 r11---sn-vgqsen7d.googlevideo.com
74.125.9.166 r10---sn-vgqsen7d.googlevideo.com
74.125.9.166 r9---sn-vgqsen7d.googlevideo.com
74.125.9.166 r8---sn-vgqsen7d.googlevideo.com
74.125.9.166 r7---sn-vgqsen7d.googlevideo.com
74.125.9.166 r6---sn-vgqsen7d.googlevideo.com
74.125.9.166 r5---sn-vgqsen7d.googlevideo.com
74.125.9.166 r4---sn-vgqsen7d.googlevideo.com
74.125.9.166 r3---sn-vgqsen7d.googlevideo.com
74.125.9.166 r2---sn-vgqsen7d.googlevideo.com
74.125.9.166 r1---sn-vgqsen7d.googlevideo.com
173.194.46.71 googleusercontent.com
173.194.46.71 *.googleusercontent.com
173.194.46.71 gstatic.com
173.194.46.71 *.gstatic.com
173.194.46.71 ssl.gstatic.com
173.194.46.71 t1.gstatic.com
173.194.46.71 t0.gstatic.com
173.194.46.71 csi.gstatic.com
173.194.46.71 www.gstatic.com
173.194.46.71 ggpht.com
173.194.46.71 *.ggpht.com
173.194.46.71 yt3.ggpht.com
173.194.46.71 ytimg.com
173.194.46.71 *.ytimg.com
173.194.46.71 i1.ytimg.com

Other sites

Okay so you need to access stuff other than google owned sites...

  1. Buy gogoinflight on your phone (it is 1/4th the price)
  2. Spoof your desktop browser to be a mobile phone via a user-agent switcher
  3. Log into your gogoinflight
  4. Unspoof

You can use this technique to cut down the cost of wifi drastically, and also to share wifi with any of your seatmates/friends around you.

Info

There are some APIs you can call to get the current status of your flight, destination, etc.

Flight Tracking

http://airborne.gogoinflight.com/abp/ws/absServices/statusTray

{
Response: {
flightInfo: {
abpVersion: "3.1.0",
airlineCode: "AWE",
airlineCodeIata: "HP",
airlineName: "America West Airlines",
altitude: 10068.459,
departureAirportCode: "KPHX",
departureAirportCodeIata: "PHX",
destination: "JFK",
destinationAirportCode: "KJFK",
destinationAirportCodeIata: "JFK",
expectedArrival: "2014-07-15T21:42:24Z",
flightNumberAlpha: "AWE",
flightNumberInfo: "AWE425",
flightNumberNumeric: 425,
HSpeed: 263.8229,
latitude: 39.9188,
localTime: "2014-11-29T20:21:11.868Z0:0",
longitude: -86.5949,
origin: "PHX",
tailNumber: "N550UW",
utcTime: "2014-11-29T20:21:11.868Z",
VSpeed: 0.17272,
videoService: true
},
gogoFacts: "There are an average of 60,000 people en route, by air, at any one time in the United States.",
serviceInfo: {
remaining: 0,
service: "Inactive"
},
status: 200
}
}

Weather

http://utils.gogoinflight.com/weather/full/KJFK/en_US

myCallback(
{
weatherConditionSimple: {
error: null,
sky: "Heavy T-Storm",
skyIcon: 4
},
weatherForecastSimple: {
airport: "KJFK",
error: null,
forecast: [
{
dateString: "Tue,Jul 15",
day: {
sky: "T-Storms",
skyIcon: 4,
windspeed: 13
},
maxTemp: -9999,
minTemp: 71
},
{
dateString: "Wed,Jul 16",
day: {
sky: "Scattered T-Storms",
skyIcon: 38,
windspeed: 18
},
maxTemp: 82,
minTemp: 71
},
{
dateString: "Thu,Jul 17",
day: {
sky: "AM T-Storms",
skyIcon: 38,
windspeed: 11
},
maxTemp: 80,
minTemp: 67
},
{
dateString: "Fri,Jul 18",
day: {
sky: "Partly Cloudy",
skyIcon: 30,
windspeed: 9
},
maxTemp: 79,
minTemp: 66
},
{
dateString: "Sat,Jul 19",
day: {
sky: "Partly Cloudy",
skyIcon: 30,
windspeed: 9
},
maxTemp: 80,
minTemp: 69
}
],
locale: "en_US",
scale: "F",
verbosity: "L"
}
}
)
@mathiasbynens
Copy link

Unfortunately, /etc/hosts doesn’t support wildcards like *.google.com. You’d have to list each subdomain explicitly. :(

Update: see the instructions in the updated Gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment