2024-08-10 08:47:18 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
2025-06-09 10:26:12 +00:00
|
|
|
python3Packages,
|
2023-07-25 19:54:40 +02:00
|
|
|
}:
|
|
|
|
|
2025-06-09 10:26:12 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2023-07-25 19:54:40 +02:00
|
|
|
pname = "psudohash";
|
2025-06-09 10:26:12 +00:00
|
|
|
version = "1.1.0";
|
|
|
|
pyproject = false;
|
2023-07-25 19:54:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "t3l3machus";
|
|
|
|
repo = "psudohash";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = "v${version}";
|
2025-06-09 10:26:12 +00:00
|
|
|
hash = "sha256-I/vHQraGmIWmx/v+szL5ZQJpjkSBaCpEx0r4Mc6FgKA=";
|
2023-07-25 19:54:40 +02:00
|
|
|
};
|
|
|
|
|
2025-06-09 10:26:12 +00:00
|
|
|
dependencies = with python3Packages; [
|
|
|
|
tqdm
|
|
|
|
];
|
2023-07-25 19:54:40 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm555 psudohash.py $out/bin/psudohash
|
|
|
|
|
|
|
|
install -Dm444 common_padding_values.txt $out/share/psudohash/common_padding_values.txt
|
|
|
|
|
|
|
|
substituteInPlace $out/bin/psudohash \
|
|
|
|
--replace "common_padding_values.txt" "$out/share/${pname}/common_padding_values.txt"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2025-06-07 00:48:50 +02:00
|
|
|
meta = {
|
2023-07-25 19:54:40 +02:00
|
|
|
description = "Password list generator for orchestrating brute force attacks and cracking hashes";
|
|
|
|
homepage = "https://github.com/t3l3machus/psudohash";
|
2024-08-10 08:45:48 +02:00
|
|
|
changelog = "https://github.com/t3l3machus/psudohash/releases/tag/v${version}";
|
2025-06-07 00:48:50 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ exploitoverload ];
|
2024-01-25 09:49:08 +01:00
|
|
|
mainProgram = "psudohash";
|
2023-07-25 19:54:40 +02:00
|
|
|
};
|
|
|
|
}
|