Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write SMB parser, test SMB parser, and integrate with tcpflow source code #207

Open
chenchampion opened this issue Jul 18, 2019 · 5 comments
Assignees

Comments

@chenchampion
Copy link

Dear Sir,

I try to resassembly networking traffic data with TCPFLOW, the tool is prefect for HTTP/FTP/SMTP/POP3 etc. but when there are some SMB protocol data transferred, the tool always dump all data in one file. For example, I copy 10 files from shared folder, but I only get one file transferred from 445 port. then I analyze that file, I can get all 10 files data in it, but the file data is confusing with many smb data. could you give some advices how to fix this problems? thank you in advance.

@simsong
Copy link
Owner

simsong commented Jul 18, 2019 via email

@chenchampion
Copy link
Author

thank you for your quick response. after search the source code, I just find http parser. where can I get the all parser? such as ftp/SMTP/POP3. could you give me some guide how to write a SMB parser.

@simsong
Copy link
Owner

simsong commented Jul 18, 2019

Hi. Well, as you know, you don't need an FTP parser because FTP sends data over its own connection. We don't have SMTP or POP3 parsers, but there is a MIME parser, which finds MIME-encoded objects. For SMB, you'll need to write a protocol decoder and then tie it in to the be13_api plug-in API. You can find an overview of the protocol here: https://docs.microsoft.com/en-us/windows/win32/fileio/microsoft-smb-protocol-and-cifs-protocol-overview . However, you will probably want to review the SAMBA source-code.

@simsong simsong assigned simsong and chenchampion and unassigned simsong Jul 18, 2019
@simsong simsong changed the title resassembly SMB data failed Write SMB parser, test SMB parser, and integrate with tcpflow source code Jul 18, 2019
@chenchampion
Copy link
Author

thank you, I will try to implement it. but I cannot promise when I can finish it.

@simsong
Copy link
Owner

simsong commented Jul 18, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants