Skip to content

Commit 01974f4

Browse files
authored
Update README.md
1 parent 3a174c2 commit 01974f4

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

README.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,28 +123,26 @@ options:
123123
## Installation
124124
There are multiple ways to install the tool. Either the tool comes as a package with your Linux distribution or you need to do a manual install.
125125

126-
### Automatic Installation
127-
I'm aware of the following Linux distributions which package the tool:
128-
129-
#### Kali Linux
126+
### Kali Linux
130127
```console
131128
# apt install enum4linux-ng
132129
```
133130

134-
#### Archstrike
135-
131+
### Archstrike
136132
```console
137133
# pacman -S enum4linux-ng
138134
```
139135

140-
#### NixOS
136+
### NixOS
141137
(tested on NixOS 20.9)
142-
143138
```console
144139
$ nix-env -iA nixos.enum4linux-ng
145140
```
146-
### Manual Installation
147-
#### Dependencies
141+
142+
## Manual Installation
143+
If your Linux distribution does not offer a package, the following manual installation methods can be used instead.
144+
145+
### Dependencies
148146
The tool uses the samba clients tools, namely:
149147
- nmblookup
150148
- net
@@ -163,29 +161,29 @@ For a faster processing of YAML (optional!) also install (should come as a depen
163161

164162
Some examples for specific Linux distributions installations are listed below. Alternatively, distribution-agnostic ways (python pip, python virtual env and Docker) are possible.
165163

166-
#### Linux distribution specific
164+
### Linux distribution specific
167165
For all distribution examples below, LibYAML is already a dependency of the corresponding PyYaml package and will be therefore installed automatically.
168-
##### ArchLinux
166+
#### ArchLinux
169167

170168
```console
171169
# pacman -S smbclient python-ldap3 python-yaml impacket
172170
```
173-
##### Fedora/CentOS/RHEL
171+
#### Fedora/CentOS/RHEL
174172
(tested on Fedora Workstation 31)
175173

176174
```console
177175
# dnf install samba-common-tools samba-client python3-ldap3 python3-pyyaml python3-impacket
178176
```
179177

180-
##### Debian/Ubuntu/Linux Mint
178+
#### Debian/Ubuntu/Linux Mint
181179
(For Ubuntu 18.04 or below use the Docker or Python virtual environment variant)
182180

183181
```console
184182
# apt install smbclient python3-ldap3 python3-yaml python3-impacket
185183
```
186184

187-
#### Linux distribution-agnostic
188-
##### Python pip
185+
### Linux distribution-agnostic
186+
#### Python pip
189187
Depending on the Linux distribution either `pip3` or `pip` is needed:
190188

191189
```console
@@ -200,7 +198,7 @@ $ pip install -r requirements.txt
200198

201199
Remember you need to still install the samba tools as mentioned above.
202200

203-
##### Python virtual environment
201+
#### Python virtual environment
204202
```console
205203
$ git clone https://github.com/cddmp/enum4linux-ng
206204
$ cd enum4linux-ng
@@ -215,7 +213,7 @@ Then run via:
215213

216214
Remember you need to still install the samba tools as mentioned above. In addition, make sure you run ```source venv/bin/activate``` everytime you spawn a new shell. Otherwise the wrong Python interpreter with the wrong libraries will be used (your system one rather than the virtual environment one).
217215

218-
##### Docker
216+
#### Docker
219217
```console
220218
$ git clone https://github.com/cddmp/enum4linux-ng
221219
$ cd enum4linux-ng

0 commit comments

Comments
 (0)