~/talk

"How to hijack, proxy and smuggle sockets with Rack/Ruby"

Talkat RubyC 2019 · 2019-09-14..09-15· [ruby-on-rails, security]
slides:none on file

Shows a concrete Rack-based proxy that uses socket hijacking and HTTP Upgrade to carry raw TCP (VNC/SSH) over an HTTP connection, implemented in Ruby with a custom epoll one-shot C extension and a select fallback. Demonstrates a working demo tunneling VNC and SSH into containers, describes a 10k connections target (reported workable on Linux), explains CPU-saving “bounce select” and why GVL/fibers limit pure Ruby concurrency, and notes need for a browser plugin + native client.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 4:29Proxy architecture explained
  3. 13:05Non-blocking I/O challenges
  4. 15:57Bouncing select solution
  5. 17:46Epoll for high performance
  6. 20:00WebSocket basics
  7. 22:36Socket hijacking technique
  8. 23:40HTTP smuggling concept
  9. 25:31Full architecture overview
  10. 28:41Live demo setup
  11. 30:11VNC connection demo
  12. 31:23SSH connection demo
  13. 32:04Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.