# netexec

# Enumeration

## SMB

```powershell
netexec smb targets.txt  -u user_name -H 'NTLM_HASH'

```

```powershell
netexec smb TARGET_IP  -u user_name -H 'NTLM_HASH' --groups --local-groups --loggedon-users --rid-brute --users --shares --pass-pol

```

## winrm

```powershell
netexec winrm targets.txt  -u user_name -H 'NTLM_HASH'

```