You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enum4linux-ng.py is a rewrite of Mark Lowe's (former Portcullis Labs now Cisco CX Security Labs) enum4linux.pl, a tool for enumerating information from Windows and Samba systems, aimed for security professionals and CTF players. The tool is mainly a wrapper around the Samba tools `nmblookup`, `net`, `rpcclient` and `smbclient`.
@@ -48,7 +49,7 @@ enum4linux-ng.py -As <target> -oY out
48
49
```
49
50
50
51
### Demo
51
-
### Windows Server 2012 R2
52
+
####Windows Server 2012 R2
52
53
This demonstrates a run against Windows Server 2012 R2 standard installation. The following command is being used:
53
54
54
55
```console
@@ -59,7 +60,7 @@ A user 'Tester' with password 'Start123!' was created. Firewall access was allow
The second demo shows a run against Metasploitable 2. The following command is being used:
64
65
65
66
```console
@@ -124,19 +125,25 @@ options:
124
125
## Installation
125
126
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.
126
127
127
-
### Archstrike
128
+
### Kali Linux
129
+
```console
130
+
apt install enum4linux-ng
131
+
```
128
132
133
+
### Archstrike
129
134
```console
130
135
pacman -S enum4linux-ng
131
136
```
132
137
133
138
### NixOS
134
139
(tested on NixOS 20.9)
135
-
136
140
```console
137
141
nix-env -iA nixos.enum4linux-ng
138
142
```
139
-
### Manual Installation
143
+
144
+
## Manual Installation
145
+
If your Linux distribution does not offer a package, the following manual installation methods can be used instead.
146
+
140
147
### Dependencies
141
148
The tool uses the samba clients tools, namely:
142
149
- nmblookup
@@ -158,27 +165,27 @@ Some examples for specific Linux distributions installations are listed below. A
158
165
159
166
### Linux distribution specific
160
167
For all distribution examples below, LibYAML is already a dependency of the corresponding PyYaml package and will be therefore installed automatically.
(tested on Kali Linux 2020.1, recent Debian (e.g. Buster) or Ubuntu versions should work, for Ubuntu 18.04 or below use the Docker or Python virtual environment variant)
180
+
#### Debian/Ubuntu/Linux Mint
181
+
(For Ubuntu 18.04 or below use the Docker or Python virtual environment variant)
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).
212
219
213
-
### Docker
220
+
####Docker
214
221
```console
215
222
git clone https://github.com/cddmp/enum4linux-ng
216
223
cd enum4linux-ng
217
-
docker build enum4linux-ng --tag enum4linux-ng
224
+
docker build . --tag enum4linux-ng
218
225
```
219
226
Once finished an example run could look like this:
0 commit comments