SMB
Nmap discovered a Windows Directory server on the target ports 139
and 445
┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/access]
└─$ nmap --script smb-enum-shares -sV -p139,445 $IP
Starting Nmap 7.95 ( https://nmap.org ) at 2025-04-21 14:05 CEST
Nmap scan report for server.access.offsec (192.168.224.187)
Host is up (0.026s latency).
PORT STATE SERVICE VERSION
139/tcp open netbios-ssn Microsoft Windows netbios-ssn
445/tcp open microsoft-ds?
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 11.10 seconds
Share mapping failed
┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/access]
└─$ nxc smb $IP -u '' -p '' --shares --interfaces
SMB 192.168.224.187 445 SERVER [*] Windows 10 / Server 2019 Build 17763 x64 (name:SERVER) (domain:access.offsec) (signing:True) (SMBv1:False)
SMB 192.168.224.187 445 SERVER [-] access.offsec\: STATUS_ACCESS_DENIED
SMB 192.168.224.187 445 SERVER [-] IndexError: list index out of range
SMB 192.168.224.187 445 SERVER [-] Error enumerating shares: Error occurs while reading from remote(104)
Guess access denied
┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/access]
└─$ smbclient -L //$IP/
Password for [WORKGROUP\kali]:
session setup failed: NT_STATUS_ACCESS_DENIED
The target SMB server does not allow anonymous access