3. Null Session SMB Enumeration
Now we are trying to enumerate SMB shares using a null session β which means trying to access the SMB service without any username or password. This is useful when the server is misconfigured and allows anonymous access.
β
Method 1: Using smbclient
smbclientsmbclient -NL //192.168.10.4Explanation:
-Nβ No password prompt (null session)-Lβ List available SMB shares on the target//IPβ Target IP in UNC format
π Look for:
IPC$β Named pipes (usually always there)NETLOGON,SYSVOL,Usersβ Might contain useful data in domain environments
I tried method 1 but it didn't work :

So let's head to method 2.
β
Method 2: Using netexec (formerly crackmapexec)
netexec (formerly crackmapexec)Explanation:
-u ''β Empty username-p ''β Empty password--sharesβ Tells the tool to enumerate shared folders

β Now you successfully connected to the SMB service using a null session (no username/password).
[*] Windows 10 / Server 2019 Build 17763 x64This confirms the target is likely a Windows Server 2019, in themegachange.nyxdomain.
β But... Access Denied
[-] Error enumerating shares: STATUS_ACCESS_DENIED
This means anonymous access is not allowed to list SMB shares. The server requires authentication to view them.
π If Access Denied?
We have to try valid credentials later:

It doesn't matter to login now, all we need is the FQDN : megachange.nyx
Last updated