summary refs log tree commit diff
path: root/pkgs/tools/security/credslayer
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-01 01:45:31 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-01 01:45:31 +0200
commit2abffbc84f3c21de8730aac4e58d39ea4c0de605 (patch)
tree05029eaebaa620f3e8faf9896e5d277c65db3fc0 /pkgs/tools/security/credslayer
parent34bc549bfc31ff64a922af52e8c552aad9c655a4 (diff)
downloadnixpkgs-2abffbc84f3c21de8730aac4e58d39ea4c0de605.tar
nixpkgs-2abffbc84f3c21de8730aac4e58d39ea4c0de605.tar.gz
nixpkgs-2abffbc84f3c21de8730aac4e58d39ea4c0de605.tar.bz2
nixpkgs-2abffbc84f3c21de8730aac4e58d39ea4c0de605.tar.lz
nixpkgs-2abffbc84f3c21de8730aac4e58d39ea4c0de605.tar.xz
nixpkgs-2abffbc84f3c21de8730aac4e58d39ea4c0de605.tar.zst
nixpkgs-2abffbc84f3c21de8730aac4e58d39ea4c0de605.zip
credslayer: init at 0.1.2
Diffstat (limited to 'pkgs/tools/security/credslayer')
-rw-r--r--pkgs/tools/security/credslayer/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/security/credslayer/default.nix b/pkgs/tools/security/credslayer/default.nix
new file mode 100644
index 00000000000..0de8d37c0db
--- /dev/null
+++ b/pkgs/tools/security/credslayer/default.nix
@@ -0,0 +1,42 @@
+{ lib
+, fetchFromGitHub
+, python3
+, wireshark-cli
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "credslayer";
+  version = "0.1.2";
+
+  src = fetchFromGitHub {
+    owner = "ShellCode33";
+    repo = "CredSLayer";
+    rev = "v${version}";
+    sha256 = "1rbfy0h9c2gra1r2b39kngj3m7g177nmzzs5xy9np8lxixrh17pc";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [
+    pyshark
+  ];
+
+  checkInputs = with python3.pkgs; [
+    wireshark-cli
+    pytestCheckHook
+  ];
+
+  pytestFlagsArray = [ "tests/tests.py" ];
+
+  disabledTests = [
+    # Requires a telnet setup
+    "test_telnet"
+  ];
+
+  pythonImportsCheck = [ "credslayer" ];
+
+  meta = with lib; {
+    description = "Extract credentials and other useful info from network captures";
+    homepage = "https://github.com/ShellCode33/CredSLayer";
+    license = with licenses; [ gpl3Only ];
+    maintainers = with maintainers; [ fab ];
+  };
+}