TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How Samba was written

37 pointsby woobyover 16 years ago

1 comment

Hexstreamover 16 years ago
The article explains a few network protocol reverse-engineering techniques that were used over the course of 12 years to write Samba.<p>The techniques are:<p><pre><code> 1. Use of publicly available documents on the CIFS/SMB protocol (not reverse-engineering but the documents are incomplete); 2. Use a network sniffer to listen in on conversations between Microsoft clients and servers; 3. Use of a protocol scanner: a program that tries all possible "words" in some section of a protocol and uses the response to automatically deduce new information about the protocol. 4. Use the "differential" technique: You write your own implementation of the protocol with what you know, then send pairs of identical messages to both the real implementation and your implementation and verify that the responses are the same.</code></pre>
评论 #488392 未加载