# Administrative SMB Share Exposure

> Identifies exposed Windows administrative shares (C$, ADMIN$, IPC$) via SMB, covering enumeration techniques, access risks, and misconfiguration assessment.

- **URL:** https://hackindex.io/index.php/services/smb/vulnerability-discovery/administrative-smb-share-exposure
- **Path:** SMB > Vulnerability Discovery
- **Up:** [Vulnerability Discovery](https://hackindex.io/index.php/services/smb/vulnerability-discovery.md)
- **Published:** 2026-03-06
- **Updated:** 2026-08-11

Administrative shares are normal on Windows. Every host exposes C$, ADMIN$, and IPC$ by default. The finding is when credentials that lack administrative intent can reach them. That usually means the account crosses a privilege boundary it should not cross. Access to admin shares often enables remote management and follow-on execution paths. Service accounts, developer accounts, and backup accounts commonly carry these rights unintentionally. Start with authenticated share discovery.

## Detecting SMB Admin Shares Exposure

```bash
nxc smb $TARGET_IP -u "$USER" -p "$PASSWORD" --shares
smbmap -H $TARGET_IP -u "$USER" -p "$PASSWORD"
smbclient -L //$TARGET_IP -U "$USER%$PASSWORD"
```

The shares that matter most are `C$`, `ADMIN$`, and `IPC$`. nxc marks READ and WRITE access separately in its output. smbmap shows a permission column per share. A READ result on `C$` or `ADMIN$` is already significant. WRITE access means you can place files, which opens staging and persistence paths. Test whether access is real by connecting and listing directory contents.

```bash
smbclient //$TARGET_IP/C$ -U "$USER%$PASSWORD" -c "dir"
smbclient //$TARGET_IP/ADMIN$ -U "$USER%$PASSWORD" -c "dir"
```

If only `IPC$` is reachable, that is usually less important than filesystem access. `IPC$` enables named pipe communication and RPC calls. It matters for other checks but does not give file access. If `C$` or `ADMIN$` works for a user that should be low-privileged, raise it immediately. Access to those shares exposes the full filesystem and Windows directories. Look for credential files, configuration files with embedded passwords, scheduled task scripts, and deployment artifacts.

High-value locations to check on admin shares:

- `C:\Users` profiles for saved credentials and SSH keys
- `C:\Windows\Temp` for dropped tools and artifacts
- `C:\inetpub` for web.config files with connection strings
- `C:\Windows\NTDS` on DCs for directory database backups

User profiles under `C:\Users` and `C:\Windows\Temp` are common locations. Confirmed admin share access leads to [Pass-the-Hash over SMB](https://hackindex.io/services/smb/exploitation/pass-the-hash) and [AD Remote Execution](https://hackindex.io/platforms/active-directory/lateral-movement/ad-remote-execution).

UAC remote restrictions can block access even when the account is in the local Administrators group. This applies to non-RID-500 local accounts on the target. Domain accounts and the built-in local Administrator (RID 500) bypass UAC remote filtering by default. If access fails for a local account that should have rights, UAC filtering is the likely cause.

If the same credential reaches administrative shares on multiple hosts, this is broader than a one-host issue. It points to a recurring privilege boundary failure, not a local exception. Document every host where the credential lands. Treat it as a credential reuse finding alongside the share exposure.

## References

- [smbclient man page](https://www.samba.org/samba/samba/docs/man/manpages/smbclient.1.html) - Authenticated access to administrative SMB shares
- [SMBMap](https://github.com/ShawnDEvans/smbmap) - Share permission review
- [NetExec](https://github.com/Pennyw0rth/NetExec) - Authenticated SMB share enumeration
