An HTTP Request Is Just 3 Tcp Packets on Stacked in a Trench Coat
summary
Demonstrates building real network tools with the built‑ins: a TCP client/server using Node.js net module to reimplement netcat and serve raw HTTP, a WebSocket upgrade that computes the Sec-WebSocket-Accept GUID handshake and masks frames, an SSH‑like shell by spawning a shell and piping the socket (no crypto), and an enro‑style tunnel that keeps an outbound TCP tunnel to a public server to proxy HTTP. Also shows UDP DNS queries composed in buffers sent to 8.8.8.8:53 and parsing the final 4 bytes as the A record.
AI-written summary · about
chapters (16)
- 0:00Talk introduction
- 1:57TCP basics with Netcat
- 3:43Node.js TCP client demo
- 5:05Node.js TCP server demo
- 7:11HTTP over raw TCP
- 8:56TCP abstraction in Node.js
- 10:20What is a socket?
- 10:41WebSockets implementation
- 14:55SSH without security
- 17:01Node.js SSH-like server
- 19:31Local tunnel with TCP
- 21:37Live tunnel demo
- 22:20Tunnel code walkthrough
- 24:27UDP and DNS protocol
- 25:11DNS query in Node.js
- 27:40Talk summary and closing
