Building a binary protocol client in Ruby: A magical journey!
summary
Rapid7 Metasploit developers build a pure-Ruby SMB library that parses and emits SMB v1/v2/3 packets, uses Wireshark to map wire captures to the spec (Wireshark has 800+ protocol dissectors), and relies on the bin_data DSL and pack/unpack for tight binary structs so code treats packets as Ruby objects. The client is socket-agnostic with injected dispatchers for pivoting, is BSD open source, and remains feature-in-progress toward 1.0.
AI-written summary · about
chapters (10)
- 0:00Start
- 1:24What Is a Protocol
- 2:26Basic Kinds of Protocols
- 4:44Wireshark
- 7:49Apple Push Notification
- 10:15Make Binary Strings in Ruby
- 14:24Recap
- 22:59Metasploit
- 25:27Pci Network
- 26:01Why Do You Care Specifically as Ruby Developers








