2021-04-21 18:04:01 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, libcap
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2021-06-26 18:44:56 +02:00
|
|
|
pname = "authoscope";
|
2022-03-24 10:01:26 +01:00
|
|
|
version = "0.8.1";
|
2021-04-21 18:04:01 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kpcyrd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-24 10:01:26 +01:00
|
|
|
sha256 = "sha256-SKgb/N249s0+Rb59moBT/MeFb4zAAElCMQJto0diyUk=";
|
2021-04-21 18:04:01 +02:00
|
|
|
};
|
|
|
|
|
2022-03-24 10:01:26 +01:00
|
|
|
cargoSha256 = "sha256-rSHuKy86iJNLAKSVcb7fn7A/cc75EOc97jGI14EaC6k=";
|
2021-04-21 18:04:01 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libcap
|
|
|
|
zlib
|
|
|
|
openssl
|
|
|
|
] ++ lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/${pname}.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests requires access to httpin.org
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Scriptable network authentication cracker";
|
2021-06-26 18:44:56 +02:00
|
|
|
homepage = "https://github.com/kpcyrd/authoscope";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
2021-04-21 18:04:01 +02:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|