# Basics

{% tabs %}
{% tab title="Server Message Block" %}
A client-server protocol that regulates access to files and entire directories and other network resources such as printers, routers, or interfaces released for the network

* Ports 139/445
  {% endtab %}

{% tab title="Samba" %}
It is a dialect of SMB, it is used on Unix systems but can still interact with windows machines&#x20;

* Samba implements the Common Internet File System (`CIFS`) network protocol.
* Its primarily aligned with SMB v1
* Operates on port 445 exclusively&#x20;
  {% endtab %}
  {% endtabs %}

| **SMB Version** | **Supported**                       | **Features**                                                           |
| --------------- | ----------------------------------- | ---------------------------------------------------------------------- |
| CIFS            | Windows NT 4.0                      | Communication via NetBIOS interface                                    |
| SMB 1.0         | Windows 2000                        | Direct connection via TCP                                              |
| SMB 2.0         | Windows Vista, Windows Server 2008  | Performance upgrades, improved message signing, caching feature        |
| SMB 2.1         | Windows 7, Windows Server 2008 R2   | Locking mechanisms                                                     |
| SMB 3.0         | Windows 8, Windows Server 2012      | Multichannel connections, end-to-end encryption, remote storage access |
| SMB 3.0.2       | Windows 8.1, Windows Server 2012 R2 |                                                                        |
| SMB 3.1.1       | Windows 10, Windows Server 2016     | Integrity checking, AES-128 encryption                                 |
