[Samba] how to know SMB protocol versions supported by a host

Thibault Roulet thibault.roulet at epfl.ch
Thu Apr 7 13:23:03 UTC 2022


you can probably get the script ;-)

https://nmap.org/nsedoc/scripts/smb-protocols.html

Cheers

Thibault

On 4/7/22 09:33, Piviul via samba wrote:
> On 06/04/22 14:33, Thibault Roulet via samba wrote:
>> Hi,
>>
>> Under linux you can run something like this:
>>
>> nmap -p139 --script smb-protocols <server-address>
>>
>> it will report something like:
>>
>> PORT    STATE SERVICE
>> 139/tcp open  netbios-ssn
>>
>> Host script results:
>> | smb-protocols:
>> |   dialects:
>> |     2.0.2
>> |     2.1
>> |     3.0
>> |     3.0.2
>> |_    3.1.1
>
> Great Thibault, but not here :(
>
>> $ nmap -p139 --script smb-protocols 192.168.64.2
>>
>> Starting Nmap 7.40 ( https://nmap.org ) at 2022-04-07 09:27 CEST
>> NSE: failed to initialize the script engine:
>> /usr/bin/../share/nmap/nse_main.lua:816: 'smb-protocols' did not 
>> match a category, filename, or directory
>> stack traceback:
>>     [C]: in function 'error'
>>     /usr/bin/../share/nmap/nse_main.lua:816: in local 
>> 'get_chosen_scripts'
>>     /usr/bin/../share/nmap/nse_main.lua:1271: in main chunk
>>     [C]: in ?
>>
>> QUITTING!
>
> it's an old server that should connect to  some cifs hosts in the best 
> way. Have you another suggestion?
>
> Piviul
>
>
-- 


More information about the samba mailing list