How to hijack, proxy and smuggle sockets with Rack/Ruby - Dávid Halász | Ruby Wine
Channel: Ruby Meditation
Date: 2019-05-02

Speech of Dávid Halász, Software Engineer at Red Hat, at Ruby Wine in Chisinau, 13.04.2019
http://www.rubywine.org

Rack is a super simple, yet a very versatile tool to implement web servers in Ruby. It beats under the hood of Rails, but it can do much more. The socket hijacking has been implemented into Rack to support WebSockets by bypassing the middleware and so not blocking the worker threads. Together with the HTTP Upgrade requests, this can be used to send regular TCP traffic through an open HTTP connection. This talk is about leveraging socket hijacking to smuggle an SSH connection through an HTTP session using Rack. All this by using Ruby, a language that’s not ideal for doing concurrency and IO.

Announcements and conference materials https://www.fb.me/RubyMeditation
News https://twitter.com/RubyMeditation
Photos https://www.instagram.com/RubyMeditation
The stream of Ruby conferences (not just ours) https://t.me/RubyMeditation