summary refs log tree commit diff
path: root/pkgs/tools/security/enum4linux-ng/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-01-18 09:50:26 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-01-18 09:50:26 +0100
commit9df436f7a0da1e00d3c3986206632473f7180b85 (patch)
treeb9cc9b23e3ad28edc4b6794f674681fb816e34db /pkgs/tools/security/enum4linux-ng/default.nix
parent82425ca793a5c9e78afaf6ae7eeda9b0f7f77018 (diff)
downloadnixpkgs-9df436f7a0da1e00d3c3986206632473f7180b85.tar
nixpkgs-9df436f7a0da1e00d3c3986206632473f7180b85.tar.gz
nixpkgs-9df436f7a0da1e00d3c3986206632473f7180b85.tar.bz2
nixpkgs-9df436f7a0da1e00d3c3986206632473f7180b85.tar.lz
nixpkgs-9df436f7a0da1e00d3c3986206632473f7180b85.tar.xz
nixpkgs-9df436f7a0da1e00d3c3986206632473f7180b85.tar.zst
nixpkgs-9df436f7a0da1e00d3c3986206632473f7180b85.zip
enum4linux-ng: init at 1.0.0
Diffstat (limited to 'pkgs/tools/security/enum4linux-ng/default.nix')
-rw-r--r--pkgs/tools/security/enum4linux-ng/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/security/enum4linux-ng/default.nix b/pkgs/tools/security/enum4linux-ng/default.nix
new file mode 100644
index 00000000000..33694ad79ae
--- /dev/null
+++ b/pkgs/tools/security/enum4linux-ng/default.nix
@@ -0,0 +1,41 @@
+{ lib
+, buildPythonApplication
+, fetchFromGitHub
+, impacket
+, ldap3
+, pyyaml
+, samba
+}:
+
+buildPythonApplication rec {
+  pname = "enum4linux-ng";
+  version = "1.0.0";
+
+  src = fetchFromGitHub {
+    owner = "cddmp";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0dhg8cwbdn0vlnchhscx31ay4mgj5p6rf73wzgs8nvqg0shsawmy";
+  };
+
+  propagatedBuildInputs = [
+    impacket
+    ldap3
+    pyyaml
+    samba
+  ];
+
+  # It's only a script and not a Python module. Project has no tests
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Windows/Samba enumeration tool";
+    longDescription = ''
+      enum4linux-ng.py is a rewrite of Mark Lowe's enum4linux.pl, a tool for
+      enumerating information from Windows and Samba systems.
+    '';
+    homepage = "https://github.com/cddmp/enum4linux-ng";
+    license = with licenses; [ gpl3Plus ];
+    maintainers = with maintainers; [ fab ];
+  };
+}