Merge pull request #78483 from fishi0x01/fishi0x01/creddump

creddump: init at 0.3
This commit is contained in:
Silvan Mosberger 2020-08-23 22:10:38 +02:00 committed by GitHub
commit ba1088c4cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -212,6 +212,8 @@ in
onesixtyone = callPackage ../tools/security/onesixtyone {};
creddump = callPackage ../tools/security/creddump {};
device-tree_rpi = callPackage ../os-specific/linux/device-tree/raspberrypi.nix {};
diffPlugins = (callPackage ../build-support/plugins.nix {}).diffPlugins;