> For the complete documentation index, see [llms.txt](https://kyou00.gitbook.io/xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kyou00.gitbook.io/xyz/commands/view/linux/smb/enum4linux-ng.md).

# Enum4Linux-ng

```
git clone https://github.com/cddmp/enum4linux-ng.git
cd enum4linux-ng
pip3 install -r requirements.txt
```

```
./enum4linux-ng.py 10.129.14.128 -A
```

```
./enum4linux-ng.py 10.10.11.45 -A -C
```

<pre><code><strong># This will return password policy
</strong>enum4linux -P 172.16.5.5

or 

./enum4linux-ng.py -P 172.16.5.5
</code></pre>

<pre data-overflow="wrap"><code><strong># It will diplay the username only
</strong>enum4linux -U 172.16.5.5  | grep "user:" | cut -f2 -d"[" | cut -f1 -d"]"

enum4linux -U 172.16.5.5  | grep "user:" | cut -f2 -d"[" | cut -f1 -d"]" > valid_users.txt
</code></pre>
