2022-10-06 13:55:14 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "freeze";
|
2023-05-20 11:49:31 +00:00
|
|
|
version = "1.3";
|
2022-10-06 13:55:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "optiv";
|
|
|
|
repo = "Freeze";
|
|
|
|
rev = "v${version}";
|
2023-05-20 11:49:31 +00:00
|
|
|
hash = "sha256-BE5MvCU+NfEccauOdWNty/FwMiWwLttPh7eE9+UzEMY=";
|
2022-10-06 13:55:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-R8kdFweMhAUjJ8zJ7HdF5+/vllbNmARdhU4hOw4etZo=";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = lib.optionalString (!stdenv.isDarwin) ''
|
|
|
|
mv $out/bin/Freeze $out/bin/freeze
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Payload toolkit for bypassing EDRs";
|
|
|
|
homepage = "https://github.com/optiv/Freeze";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|