View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006182||Kali Linux||[All Projects] General Bug||public||2020-03-10 16:29||2020-03-11 22:23|
|Target Version||Fixed in Version|
|Summary||0006182: smbclient version 4.11.5-Debian throw connection negotiation error|
|Description||My Kali version: Linux kali 5.4.0-kali4-amd64 0000001 SMP Debian 5.4.19-1kali1 (2020-02-17) x86_64 GNU/Linux|
In the version of smbclient shipped in Kali, doing a simple call like "smbclient -L 10.10.10.3" will result in the following error message:
"protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED"
I installed smbclient onto a regular Ubuntu VM. The version installed was older (4.10.7-Ubuntu) and that worked perfectly bringing back all open shares.
I tried uninstalling and reinstalling smbclient in Kali but the issue persists.
So it seems that the newer version of smbclient has a bug.
|Steps To Reproduce||Connect to Hack the Box|
Issue "smbclient -L 10.10.10.3" to enumerate open shares against the "Lame" box
Get the error message
Adding to this. I was able to solve this issue by adding the following to /etc/samba/smb.conf under the [global] section:
client min protocol = NT1
or by appending this, --option='client min protocol=NT1', to any Samba client that needs SMBv1 support:
e.g.: smbclient //10.10.10.3/tmp --option='client min protocol=NT1'
I found the following issue in the Fedora bug tracker which mentioned the smb.conf switch solution:
Digging further it looks like Samba removed support for SMBv1 late last year: https://www.samba.org/samba/history/samba-4.11.0.html
See the section titled: "SMB1 is disabled by default"