Skip to main content

SMB Client Configuration

Tweaking the Configuration File

You can find the client configuration file at: /etc/samba/smb.conf . If you take a look at the configuration file, you'll notice that this is the default Debian SMB client, forked for Kali.


[global]

#### Kali configuration (use kali-tweaks to change it) ####

# By default a Kali system should be configured for wide compatibility,
# to easily interact with servers using old vulnerable protocols.
   client min protocol = CORE

# By default a Kali system should be configured for wide compatibility,
# to easily interact with servers using old vulnerable protocols.

 

For this reason, I've set my client configuration to client min protocol = CORE . You can also override the configuration file using a command line parameter: --option="client min protocol=PROTO" .

 

You can find more about the client protocols from the man page.

man smb.conf
           The value of the parameter (a string) is the highest protocol level that will be
           supported by the client.

           Possible values are :

                  •   CORE: Earliest version. No concept of user names.

                  •   COREPLUS: Slight improvements on CORE for efficiency.

                  •   LANMAN1: First modern version of the protocol. Long filename support.

                  •   LANMAN2: Updates to Lanman1 protocol.

                  •   NT1: Current up to date version of the protocol. Used by Windows NT. Known as
                      CIFS.

                  •   SMB2: Re-implementation of the SMB protocol. Used by Windows Vista and later
                      versions of Windows. SMB2 has sub protocols available.

                             •   SMB2_02: The earliest SMB2 version.

                             •   SMB2_10: Windows 7 SMB2 version.

                      By default SMB2 selects the SMB2_10 variant.

                  •   SMB3: The same as SMB2. Used by Windows 8. SMB3 has sub protocols available.

                             •   SMB3_00: Windows 8 SMB3 version.

                             •   SMB3_02: Windows 8.1 SMB3 version.

                             •   SMB3_11: Windows 10 SMB3 version.

                      By default SMB3 selects the SMB3_11 variant.