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

smbserver: folders with >550 files kill clients #1433

Open
9001 opened this issue Nov 2, 2022 · 0 comments
Open

smbserver: folders with >550 files kill clients #1433

9001 opened this issue Nov 2, 2022 · 0 comments

Comments

@9001
Copy link

9001 commented Nov 2, 2022

Configuration

impacket version: 0.10.0
Python version: 3.10.7
Target OS: windows 10, smb2

Debug Output With Command String

./smbserver.py -username ed -password k -ts -debug -ip 192.168.123.1 -port 3945 -smb2support a /home/ed/dl
(no relevant debug output)

Additional context

ran into an issue with examples/smbserver.py trying to list large directories,

returning more than 550 files causes samba to hit an assert and crash (libsmb/cli_smb2_fnum.c(1497): response->length > state->offset), and win10 will freeze for a sec before it shows a generic <unc> is not accessible error

depending on filename-lengths etc, had to clamp the number of files to return from findFirst2 down to like 300 or so

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

No branches or pull requests

1 participant