samba guest access
I have a server with open tcp port 445. I used nmap with script smb-enum-shares and found this:
Starting Nmap 7.40 ( https://nmap.org ) at 2020-02-28 22:36 MSK
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000052s latency).
PORT STATE SERVICE VERSION
445/tcp open netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
Service Info: Host: PROFILE
Host script results:
| smb-enum-shares:
| account_used: guest
| IPC$:
| Type: STYPE_IPC_HIDDEN
| Comment: IPC Service (Samba 4.5.16-Debian)
| Users: 1
| Max Users: <unlimited>
| Path: C:\tmp
| Anonymous access: READ/WRITE
| Current user access: READ/WRITE
| USERS:
| Type: STYPE_DISKTREE
| Comment:
| Users: 0
| Max Users: <unlimited>
| Path: C:\SHARE
| Anonymous access: <none>
| Current user access: <none>
| print$:
| Type: STYPE_DISKTREE
| Comment: Printer Drivers
| Users: 0
| Max Users: <unlimited>
| Path: C:\var\lib\samba\printers
| Anonymous access: <none>
|_ Current user access: <none>
It looks obvious, that i can access 127.0.0.1:445/IPC$ Anonymously I used:
root@kali:~# mount -t cifs //127.0.0.1/IPC$ /mnt/share/ --verbose -o "username=Anonymous,port=445"
Password for Anonymous@//127.0.0.1/IPC$:
mount.cifs kernel mount options: ip=127.0.0.1,unc=\\127.0.0.1\IPC$,port=445,user=Anonymous,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
I have also tried to log in via Nautilus, but still failed:
smb://127.0.0.1:445/IPC$
What am i doing wrong?