SMB
Nmap discovered a Windows Directory server on the target port 139
and 445
┌──(kali㉿kali)-[~/archive/htb/labs/flight]
└─$ nmap --script smb-enum-shares -sV -p139,445 $IP
starting nmap 7.94 ( https://nmap.org ) at 2023-12-11 17:43 CET
Nmap scan report for g0 (10.10.11.187)
Host is up (0.21s 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 25.97 seconds
Attempting to map the SMB shares fails likely due privileges-related issues
Null Session
┌──(kali㉿kali)-[~/archive/htb/labs/flight]
└─$ smbclient -L //g0.flight.htb//
Password for [WORKGROUP\kali]:
Anonymous login successful
Sharename Type Comment
--------- ---- -------
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to g0.flight.htb failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Unable to connect with SMB1 -- no workgroup available
While the target SMB server allows anonymous access, lack of privileges prevents listing the shares I would need a valid domain credential to move forward