Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
freerdp,
|
|
nmap,
|
|
openvpn,
|
|
python3Packages,
|
|
lib,
|
|
tigervnc,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication {
|
|
pname = "crowbar";
|
|
version = "unstable-2020-04-23";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "galkan";
|
|
repo = "crowbar";
|
|
rev = "500d633ff5ddfcbc70eb6d0b4d2181e5b8d3c535";
|
|
sha256 = "05m9vywr9976pc7il0ak8nl26mklzxlcqx0p8rlfyx1q766myqzf";
|
|
};
|
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
dependencies = [ python3Packages.paramiko ];
|
|
|
|
patchPhase = ''
|
|
sed -i 's,/usr/bin/xfreerdp,${freerdp}/bin/xfreerdp,g' lib/main.py
|
|
sed -i 's,/usr/bin/vncviewer,${tigervnc}/bin/vncviewer,g' lib/main.py
|
|
sed -i 's,/usr/sbin/openvpn,${openvpn}/bin/openvpn,g' lib/main.py
|
|
|
|
sed -i 's,/usr/bin/nmap,${nmap}/bin/nmap,g' lib/nmap.py
|
|
'';
|
|
|
|
# Sanity check
|
|
checkPhase = ''
|
|
$out/bin/crowbar --help > /dev/null
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/galkan/crowbar";
|
|
description = "Brute forcing tool that can be used during penetration tests";
|
|
mainProgram = "crowbar";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ pamplemousse ];
|
|
};
|
|
}
|