explaingit

fabaff/enum4linux-ng

Analysis updated 2026-08-10 · repo last pushed 2021-01-23

Audience · ops devopsComplexity · 2/5DormantSetup · moderate

TLDR

enum4linux-ng is a security tool that scans Windows or Samba file-sharing systems on a network and reports what they expose, users, groups, shared folders, password policies, and OS details, in a clean, color-coded summary.

Mindmap

mindmap
  root((repo))
    What it does
      Scans Windows and Samba hosts
      Reports users groups shares
      Password policy discovery
    How it works
      Automates Samba CLI tools
      Smart mode probes first
      Saves results on interrupt
    Outputs
      Color-coded terminal summary
      JSON export
      YAML export
    Tech stack
      Python
      Samba utilities
      Docker
    Use cases
      Network security audits
      CTF competitions
      Reporting pipelines
    Audience
      Security professionals
      CTF participants

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Audit a Windows or Samba host you own to inventory exposed users, groups, and shared folders.

USE CASE 2

Use it in a capture-the-flag competition to quickly map a target's exposed surface.

USE CASE 3

Export scan results as JSON or YAML to feed into automated reporting or analysis pipelines.

What is it built with?

PythonSamba utilitiesDocker

How does it compare?

fabaff/enum4linux-ng000madz000/rfid-attendance00kaku/gallery-slider-block
LanguageTypeScriptJavaScript
Last pushed2021-01-232024-07-222021-05-19
MaintenanceDormantDormantDormant
Setup difficultymoderateeasyeasy
Complexity2/52/52/5
Audienceops devopsdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Samba command-line utilities to be installed, or you can use the Docker image to avoid dependency issues.

The README does not specify a license, so it is unclear what permissions you have for use, modification, or distribution.

In plain English

enum4linux-ng is a security tool that helps you figure out what a Windows or Samba file-sharing system is exposing on a network. Think of it as a friendly interrogator: you point it at a target computer, and it asks a long list of questions to map out what's visible, users, groups, shared folders, password policies, printers, and basic operating system details. It's aimed at security professionals and people who do capture-the-flag hacking competitions, where understanding a target's exposed surface is the first step. At a high level, the tool works by automating a collection of existing Samba command-line utilities, programs like nmblookup, net, rpcclient, and smbclient that can talk to Windows and Samba systems. Instead of running each one by hand and reading through raw output, you run a single command and get a tidy, color-coded summary. It also has a "smart" mode: before running all its checks, it probes whether things like LDAP or SMB are even available, then skips any tests that would just fail. If you hit Ctrl+C partway through, it saves whatever it found so far. One notable upgrade over the original tool is that results can be exported as structured data, JSON or YAML files, so other programs can import and analyze them automatically. That makes it easier to chain into larger workflows or reporting pipelines. It also includes IPv6 support (experimental), timeout handling, and a Docker-based install option for people who want to avoid dependency headaches. You'd use this if you're auditing a network you own or are authorized to test, and need a quick inventory of what a Windows or Samba host is advertising. The README is clear that illegal use is prohibited. A typical run might look like: point the tool at an IP address, optionally pass a username and password, and let it report back which shares exist, what users are listed, and what the password policy looks like.

Copy-paste prompts

Prompt 1
Write a Python script that parses JSON output from enum4linux-ng and flags any host that exposes a writable shared folder with no password required.
Prompt 2
Set up a Docker command to run enum4linux-ng against a target IP and save the output to a YAML file for later analysis.
Prompt 3
Create an Ansible playbook that runs enum4linux-ng across a list of internal Windows hosts and collects all JSON results into one directory.
Prompt 4
Help me build a bash wrapper that runs enum4linux-ng with a provided username and password, then formats the color-coded output into a clean markdown report.

Frequently asked questions

What is enum4linux-ng?

enum4linux-ng is a security tool that scans Windows or Samba file-sharing systems on a network and reports what they expose, users, groups, shared folders, password policies, and OS details, in a clean, color-coded summary.

Is enum4linux-ng actively maintained?

Dormant — no commits in 2+ years (last push 2021-01-23).

What license does enum4linux-ng use?

The README does not specify a license, so it is unclear what permissions you have for use, modification, or distribution.

How hard is enum4linux-ng to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is enum4linux-ng for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.