Skip to content

Instantly share code, notes, and snippets.

@thomasballinger
Created November 20, 2013 17:16
Show Gist options
  • Select an option

  • Save thomasballinger/7567101 to your computer and use it in GitHub Desktop.

Select an option

Save thomasballinger/7567101 to your computer and use it in GitHub Desktop.
google_homepage = lambda: [
globals().__setitem__('s', __import__('socket').socket()),
globals()['s'].connect(('www.google.com', 80)),
globals()['s'].send('GET /\r\n\r\n'),
''.join(globals()['s'].recv(1000000) for _ in range(100))
][-1]
print google_homepage()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment