Skip to content

Commit 20cfa65

Browse files
authored
Merge pull request #72 from noraj/e4l-ng
add enum4linux-ng
2 parents d4e88d0 + 450d6b1 commit 20cfa65

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# enum4linux-ng
2+
3+
## Intro
4+
5+
> A next generation version of enum4linux (a Windows/Samba enumeration tool) with additional features like JSON/YAML export.
6+
7+
Running `enum4linux-ng` without any enumeration option is equivalent to running it with `-A` (un mostly all common modules), which is similar to enum4linux `-a` option.
8+
9+
It's possible to save all the results as a JSON file so you can use them with other tools.
10+
11+
```
12+
$ enum4linux-ng -A 10.0.0.1 -u 'svc_user' -p 'azerty1234' -oJ enum4linux-ng_output
13+
```
14+
15+
## Results extraction
16+
17+
A quick Ruby script would allow you to extract all users or all groups from the AD in a parsable way:
18+
19+
```ruby
20+
require 'json'
21+
22+
data = JSON.load_file('enum4linux-ng_output.json')
23+
24+
case ARGV[0]
25+
when 'users'
26+
puts data['users'].map { |_k,v| v['username'] }
27+
when 'users_id'
28+
puts data['users'].map {|k,v| "#{k},#{v['username']}" }
29+
when 'groups'
30+
puts data['groups'].map { |_k,v| v['groupname'] }
31+
when 'groups_id'
32+
puts data['groups'].map {|k,v| "#{k},#{v['groupname']}" }
33+
else
34+
puts '[+] Usage: <users|users_id|groups|groups_id>'
35+
end
36+
```
37+
38+
Ref.:
39+
40+
- [THTT - enum4linux-ng](https://trove.raw.pm/tools/enum4linux-ng/)

0 commit comments

Comments
 (0)