mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
crowbar: init at unstable-2020-04-23
This commit is contained in:
parent
5d24a59898
commit
98762e7f5a
42
pkgs/tools/security/crowbar/default.nix
Normal file
42
pkgs/tools/security/crowbar/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ fetchFromGitHub
|
||||
, freerdp
|
||||
, nmap
|
||||
, openvpn
|
||||
, python3Packages
|
||||
, stdenv
|
||||
, tigervnc
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "crowbar";
|
||||
version = "unstable-2020-04-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "galkan";
|
||||
repo = pname;
|
||||
rev = "500d633ff5ddfcbc70eb6d0b4d2181e5b8d3c535";
|
||||
sha256 = "05m9vywr9976pc7il0ak8nl26mklzxlcqx0p8rlfyx1q766myqzf";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ 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 stdenv.lib; {
|
||||
homepage = "https://github.com/galkan/crowbar";
|
||||
description = "A brute forcing tool that can be used during penetration tests";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ pamplemousse ];
|
||||
};
|
||||
}
|
@ -873,6 +873,8 @@ in
|
||||
|
||||
ctrtool = callPackage ../tools/archivers/ctrtool { };
|
||||
|
||||
crowbar = callPackage ../tools/security/crowbar { };
|
||||
|
||||
crumbs = callPackage ../applications/misc/crumbs { };
|
||||
|
||||
crc32c = callPackage ../development/libraries/crc32c { };
|
||||
|
Loading…
Reference in New Issue
Block a user