I have done it a few minutes ago, I have moved to the folder in question, I perform the “get”, then you read from your attacking machine the flag.txt
Sorry for my english
smbclient \10.129.202.5\sambashare
Enter WORKGROUP\htb-ac616718’s password:
Try “help” to get a list of possible commands.
smb: > cd contents
smb: \contents> ls
. D 0 Mon Nov 8 13:43:45 2021
… D 0 Mon Nov 8 13:43:14 2021
flag.txt N 38 Mon Nov 8 13:43:45 2021
4062912 blocks of size 1024. 414260 blocks available
smb: \contents>
smb: \contents> get flag.txt
Error opening local file flag.txt
smb: \contents>
no. coz “-L” its just “list” folders and “-U” its “user” in that case means anonynous
i just get into the main folder “sambashare”
smbclient -U -L \10.129.202.5\sambashare
Enter WORKGROUP-L’s password: :
Try “help” to get a list of possible commands.
smb: >
smb: > ls
. D 0 Mon Nov 8 13:43:14 2021
… D 0 Mon Nov 8 15:53:19 2021
.profile H 807 Tue Feb 25 12:03:22 2020
contents D 0 Mon Nov 8 13:43:45 2021
.bash_logout H 220 Tue Feb 25 12:03:22 2020
.bashrc H 3771 Tue Feb 25 12:03:22 2020
4062912 blocks of size 1024. 414296 blocks available
Eventually, i found out that is a bug of virtual workstation. First, i tried browser version just right on the page and it didnt work. The command “get” didnt work
Then i tried the pop-up console of this workstation and finally got this flag