I need to prepare a samba server and an SMB traffic captured between the samba server and smbclient
. Then I want to replay the traffic to communicate with the server so I need to pass the auth stage.
First, I started the samba with the following config to disable authentication.
[global]
Map to guest = Bad User
ntlm auth = disabled
[sharedir]
path = /mount/
browsable = yes
read only = no
guest ok = yes
write list = all
Then, I used smbclient
to connect the server via smbclient //172.17.0.1/sharedir -N
and captured the traffic. However, the auth stage was not passed as shown in the captured traffic. What is the reason and how can I achieve the goal?