SMB
Nmap discovered a Windows Directory service on the target ports 139
and 445
┌──(kali㉿kali)-[~/archive/htb/labs/axlle]
└─$ nmap --script smb-enum-shares -sV -p139,445 $IP
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-06-26 17:43 CEST
Nmap scan report for mainframe.axlle.htb (10.10.11.21)
Host is up (0.049s 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.22 seconds
Attempting to map the SMB shares failed, likely due to lack of privileges
Null Session
┌──(kali㉿kali)-[~/archive/htb/labs/axlle]
└─$ crackmapexec smb mainframe.axlle.htb -u ' ' -p ' ' --shares
SMB mainframe.axlle.htb 445 MAINFRAME [*] Windows Server 2022 Build 20348 x64 (name:MAINFRAME) (domain:axlle.htb) (signing:True) (SMBv1:False)
SMB mainframe.axlle.htb 445 MAINFRAME [-] axlle.htb\ : STATUS_LOGON_FAILURE
┌──(kali㉿kali)-[~/archive/htb/labs/axlle]
└─$ smbclient -L //mainframe.axlle.htb/
Password for [WORKGROUP\kali]:
Anonymous login successful
Sharename Type Comment
--------- ---- -------
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to mainframe.axlle.htb failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Unable to connect with SMB1 -- no workgroup available
The target SMB server does not allow anonymous access I would need a valid domain credential to enumerate the SMB server. Furthermore, the RID Cycling attack won’t be possible.