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`.
@@ -53,7 +48,7 @@ enum4linux-ng.py -As <target> -oY out
53
48
```
54
49
55
50
### Demo
56
-
####Windows Server 2012 R2
51
+
### Windows Server 2012 R2
57
52
This demonstrates a run against Windows Server 2012 R2 standard installation. The following command is being used:
58
53
59
54
```console
@@ -64,7 +59,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:
69
64
70
65
```console
@@ -129,23 +124,20 @@ options:
129
124
## Installation
130
125
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.
131
126
132
-
### Automatic Installation
133
-
I'm aware of the following Linux distributions which package the tool:
134
-
135
-
#### Archstrike
127
+
### Archstrike
136
128
137
129
```console
138
130
pacman -S enum4linux-ng
139
131
```
140
132
141
-
####NixOS
133
+
### NixOS
142
134
(tested on NixOS 20.9)
143
135
144
136
```console
145
137
nix-env -iA nixos.enum4linux-ng
146
138
```
147
139
### Manual Installation
148
-
####Dependencies
140
+
### Dependencies
149
141
The tool uses the samba clients tools, namely:
150
142
- nmblookup
151
143
- net
@@ -164,29 +156,29 @@ For a faster processing of YAML (optional!) also install (should come as a depen
164
156
165
157
Some examples for specific Linux distributions installations are listed below. Alternatively, distribution-agnostic ways (python pip, python virtual env and Docker) are possible.
166
158
167
-
####Linux distribution specific
159
+
### Linux distribution specific
168
160
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)
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).
0 commit comments