SMB


Nmap discovered a Windows Directory service on the port 139 and 445

┌──(kali㉿kali)-[~/archive/htb/labs/rebound]
└─$ nmap --script smb-enum-shares -sV -p139,445 $IP                                       
starting nmap 7.94 ( https://nmap.org ) at 2023-09-11 02:20 CEST
Nmap scan report for rebound.htb (10.10.11.231)
Host is up (0.024s 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 10.84 seconds

Attempting to map the target’s SMB shares failed due to lack of privileges

Null Session


┌──(kali㉿kali)-[~/archive/htb/labs/rebound]
└─$ smbclient -L //dc01.rebound.htb/    
Password for [WORKGROUP\kali]:
 
	Sharename       Type      Comment
	---------       ----      -------
	ADMIN$          Disk      Remote Admin
	C$              Disk      Default share
	IPC$            IPC       Remote IPC
	NETLOGON        Disk      Logon server share 
	Shared          Disk      
	SYSVOL          Disk      Logon server share 
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to dc01.rebound.htb failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Unable to connect with SMB1 -- no workgroup available

The //dc01.rebound.htb/Shared share is a none default SMB share

//dc01.rebound.htb/Shared


┌──(kali㉿kali)-[~/archive/htb/labs/rebound]
└─$ smbclient //dc01.rebound.htb/Shared   
password for [workgroup\kali]:
Try "help" to get a list of possible commands.
smb: \> ls
  .                                   d        0  fri aug 25 23:46:36 2023
  ..                                  d        0  fri aug 25 23:46:36 2023
 
		4607743 blocks of size 4096. 843207 blocks available
smb: \> put hi 
NT_STATUS_ACCESS_DENIED opening remote file \hi

The share itself is empty and I am unable to write to it