SMB


Nmap discovered a Windows Directory service on the target ports 139 and 445

┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/slort]
└─$ nmap --script smb-enum-shares -sV -p139,445 $IP
Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-02-07 22:19 CET
Nmap scan report for 192.168.134.53
Host is up (0.020s 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.98 seconds

Share mapping fails

┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/slort]
└─$ nxc smb $IP -u '' -p '' --shares --interfaces
SMB         192.168.134.53  445    SLORT            [*] Windows 10 / Server 2019 Build 19041 x64 (name:SLORT) (domain:slort) (signing:False) (SMBv1:False)
SMB         192.168.134.53  445    SLORT            [-] slort\: STATUS_ACCESS_DENIED 
SMB         192.168.134.53  445    SLORT            [-] IndexError: list index out of range
SMB         192.168.134.53  445    SLORT            [-] Error enumerating shares: Error occurs while reading from remote(104)

No acacess

┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/slort]
└─$ enum4linux -a -r -o -n -A -U $IP 
Starting enum4linux v0.9.1 ( http://labs.portcullis.co.uk/application/enum4linux/ ) on Fri Feb  7 22:20:09 2025
 
 =========================================( Target Information )=========================================
 
Target ........... 192.168.134.53
RID Range ........ 500-550,1000-1050
Username ......... ''
Password ......... ''
Known Usernames .. administrator, guest, krbtgt, domain admins, root, bin, none
 
 
 ===========================( Enumerating Workgroup/Domain on 192.168.134.53 )===========================
 
 
[E] Can't find workgroup/domain
 
 
 
 ===============================( Nbtstat Information for 192.168.134.53 )===============================
 
Looking up status of 192.168.134.53
No reply from 192.168.134.53
 
 ==================================( Session Check on 192.168.134.53 )==================================
 
 
[E] Server doesn't allow session using username '', password ''.  Aborting remainder of tests.

N/A