summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/security/creddump
diff options
context:
space:
mode:
authorKarl Fischer <fishi0x01@gmail.com>2020-01-23 16:13:42 +0100
committerKarl Fischer <fishi0x01@gmail.com>2020-06-19 14:06:50 +0200
commitd33c39cd872862eb8a1f47bd52c95d66ef77bab0 (patch)
treedc003e59c9fe5025658042f8de5e4790f38d318f /pkgs/tools/security/creddump
parent6580c59352f8c2cffcd64c5a78f5f3d0d920648f (diff)
creddump: init at 0.3
Diffstat (limited to 'pkgs/tools/security/creddump')
-rw-r--r--pkgs/tools/security/creddump/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/security/creddump/default.nix b/pkgs/tools/security/creddump/default.nix
new file mode 100644
index 000000000000..d37c58a51591
--- /dev/null
+++ b/pkgs/tools/security/creddump/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchFromGitLab, python2, python2Packages }:
+
+python2Packages.buildPythonApplication rec {
+ pname = "creddump";
+ version = "0.3";
+
+ src = fetchFromGitLab {
+ owner = "kalilinux";
+ repo = "packages/creddump";
+ # url-encoding workaround: https://github.com/NixOS/nixpkgs/issues/65796#issuecomment-517829019
+ rev = "debian%2F${version}-1kali2"; # %2F = urlquote("/")
+ sha256 = "0r3rs2hggsvv619l3fh3c0jli6d3ryyj30ni3hz0nz670z5smzcf";
+ };
+
+ # No setup.py is available
+ dontBuild = true;
+ doCheck = false;
+ propagatedBuildInputs = [ python2Packages.pycrypto ];
+
+ installPhase = ''
+ mkdir -p ${placeholder "out"}/bin
+ cp -r framework ${placeholder "out"}/bin/framework
+ cp pwdump.py ${placeholder "out"}/bin/pwdump
+ cp cachedump.py ${placeholder "out"}/bin/cachedump
+ cp lsadump.py ${placeholder "out"}/bin/lsadump
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Python tool to extract various credentials and secrets from Windows registry hives";
+ homepage = "https://gitlab.com/kalilinux/packages/creddump";
+ license = licenses.gpl3;
+ platforms = platforms.unix;
+ maintainers = [ maintainers.fishi0x01 ];
+ };
+}
+