Skip to content

Conversation

@AlanFoster
Copy link

smbcmp is great tool for comparing packets between two hosts, but is harder to use when multiple hosts are involved.
This PR acts as an initial feature request/proposal to smbcmp, but isn't production ready 👍

Example

Showing the src/dst fields with human readable/aliased host names:

image


for line in out.split('\n'):
m = re.match(r'''\s*(\d+).+?SMB2?\s*\d+\s*(.+)''', line)
ips = re.match(r'''.* (\d+\.\d+\.\d+\.\d+) → (\d+\.\d+\.\d+\.\d+).*''', line)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just a proof of concept; I believe it might be better to use the xml output of tshark -T pdml -r ../smb.pcapng '!browser && (smb||smb2)' to gather the required fields ip.src_host / ip.dst_host - potentially with alias support in smbcmp itself for matching arbitrary src/dst ips/hostnames to user defined hostnames

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant