depot/third_party/nixpkgs/pkgs/tools/security/creddump/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

35 lines
1 KiB
Nix

{ lib, stdenv, fetchFromGitLab, python2, python2Packages }:
python2Packages.buildPythonApplication rec {
pname = "creddump";
version = "0.3";
src = fetchFromGitLab {
owner = "kalilinux";
repo = "packages/creddump";
rev = "debian/${version}-1kali2";
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 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 ];
};
}