2023-11-16 07:53:46 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2023-12-18 20:56:01 +00:00
|
|
|
, samba
|
2023-11-16 07:53:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "legba";
|
2024-01-31 04:06:20 +00:00
|
|
|
version = "0.8.0";
|
2023-11-16 07:53:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "evilsocket";
|
|
|
|
repo = "legba";
|
|
|
|
rev = "v${version}";
|
2024-01-31 04:06:20 +00:00
|
|
|
hash = "sha256-yevQEbDuVaSsSfA3ug9rDeWtGjMvS+uD7qHguRVt4sg=";
|
2023-11-16 07:53:46 +00:00
|
|
|
};
|
|
|
|
|
2024-01-31 04:06:20 +00:00
|
|
|
cargoHash = "sha256-UBt4FP5zW+dijneHNaFJ80Ui5R+m+8aSwHTcqKDeEVg=";
|
2023-11-16 07:53:46 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2023-12-18 20:56:01 +00:00
|
|
|
buildInputs = [ openssl.dev samba ];
|
2023-11-16 07:53:46 +00:00
|
|
|
|
|
|
|
# Paho C test fails due to permission issue
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A multiprotocol credentials bruteforcer / password sprayer and enumerator";
|
|
|
|
homepage = "https://github.com/evilsocket/legba";
|
|
|
|
changelog = "https://github.com/evilsocket/legba/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ mikaelfangel ];
|
|
|
|
mainProgram = "legba";
|
|
|
|
};
|
|
|
|
}
|