Closed cdelafuente-r7 closed 2 years ago
I was able to reproduce and fix the issue affecting smbclient 4.3.11 but not the issue affecting 4.7.6. I tried both the commit you specified https://github.com/rapid7/ruby_smb/commit/ebaf52a7ca4a18b25c790e3cf2d2ff0274bbd0c3 and the latest on master. Here in the output you can see the latest commit from master where it even shows listing the directory.
Wait nevermind, it looks like you must specify an empty domain to reproduce the issue, e.g. \\smcintyre
not MSFLAB\\smcintyre
.
And I was able to reproduce that same issue when targeting a legitimate Samba server as well as a Windows 10 SMB server, so I'm chalking it up as a bug in smbclient and not the RubySMB server. I'll submit the patch the other one though. Thanks for reporting these!
Samba's
smbclient
versions 4.3.11 and 4.7.6 break when connecting to the SMB Server using SMBv1. I was able to reproduce these errors on master (commit ebaf52a7ca4a18b25c790e3cf2d2ff0274bbd0c3) and while testing this PR.Step to reproduce
Server
smbclient Version 4.3.11 (Ubuntu 16.04)
Error when the
NTLMSSP_CHALLENGE
Session Setup AndX (0x73) packet is received by the client:smbclient Version 4.7.6 (Ubuntu 18.04)
Error when the Negotiate Protocol (0x72) packet is received by the client: