SMB


Nmap discovered a Windows Directory server on the ports 139 and 445 of the CyberLens(10.10.53.112) host.

┌──(kali㉿kali)-[~/archive/thm/cyberlens]
└─$ nmap --script smb-vuln* -sV -p139,445 $IP      
Starting Nmap 7.95 ( https://nmap.org ) at 2025-07-05 13:05 CEST
Nmap scan report for 10.10.53.112
Host is up (0.041s 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
 
Host script results:
|_smb-vuln-ms10-054: false
|_smb-vuln-ms10-061: Could not negotiate a connection:SMB: Failed to receive bytes: ERROR
 
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 27.19 seconds
 
 
┌──(kali㉿kali)-[~/archive/thm/cyberlens]
└─$ nmap --script smb-enum-shares -sV -p139,445 $IP
Starting Nmap 7.95 ( https://nmap.org ) at 2025-07-05 13:06 CEST
Nmap scan report for 10.10.53.112
Host is up (0.038s 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 17.59 seconds

Share mapping failed.

Null Session


┌──(kali㉿kali)-[~/archive/thm/cyberlens]
└─$ nxc smb $IP -u 'blah' -p 'blah' --shares --interfaces 
SMB         10.10.53.112    445    CYBERLENS        [*] Windows 10 / Server 2019 Build 17763 x64 (name:CYBERLENS) (domain:CyberLens) (signing:False) (SMBv1:False)
SMB         10.10.53.112    445    CYBERLENS        [-] CyberLens\blah:blah STATUS_LOGON_FAILURE
 
┌──(kali㉿kali)-[~/archive/thm/cyberlens]
└─$ nxc smb $IP -u '' -p '' --shares --interfaces     
SMB         10.10.53.112    445    CYBERLENS        [*] Windows 10 / Server 2019 Build 17763 x64 (name:CYBERLENS) (domain:CyberLens) (signing:False) (SMBv1:False)
SMB         10.10.53.112    445    CYBERLENS        [-] CyberLens\: STATUS_ACCESS_DENIED
SMB         10.10.53.112    445    CYBERLENS        [-] Error enumerating shares: Error occurs while reading from remote(104)

The target SMB server does not allow both guest and anonymous accesses.