From 36f6ee3debea72336ea65a29a8084fc7b878457e Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Sat, 19 Jun 2021 15:00:34 -0400 Subject: [PATCH] hash-identifier: init at 1.2 --- .../security/hash-identifier/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/security/hash-identifier/default.nix diff --git a/pkgs/tools/security/hash-identifier/default.nix b/pkgs/tools/security/hash-identifier/default.nix new file mode 100644 index 0000000000000..5e9b49dd73db6 --- /dev/null +++ b/pkgs/tools/security/hash-identifier/default.nix @@ -0,0 +1,27 @@ +{ lib, fetchFromGitLab, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "hash-identifier"; + version = "1.2"; + + src = fetchFromGitLab { + owner = "kalilinux"; + repo = "packages/hash-identifier"; + rev = "kali/${version}+git20180314-0kali1"; + sha256 = "1amz48ijwjjkccg6gmdn3ffnyp2p52ksagy4m9gy8l2v5wj3j32h"; + }; + + format = "other"; # no setup.py + + installPhase = '' + install -Dm0775 hash-id.py $out/bin/hash-identifier + ''; + + meta = with lib; { + description = "Software to identify the different types of hashes used to encrypt data and especially passwords."; + homepage = "https://github.com/blackploit/hash-identifier"; + license = licenses.gpl3Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ ethancedwards8 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 40be91d9a71ad..28611555b91d7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5603,6 +5603,8 @@ in hash_extender = callPackage ../tools/security/hash_extender { }; + hash-identifier = callPackage ../tools/security/hash-identifier { }; + hash-slinger = callPackage ../tools/security/hash-slinger { }; haskell-language-server = callPackage ../development/tools/haskell/haskell-language-server/withWrapper.nix { };