Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5d24a5989899
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 98762e7f5af1
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on May 2, 2020

  1. crowbar: init at unstable-2020-04-23

    Pamplemousse authored and Jon committed May 2, 2020
    Copy the full SHA
    98762e7 View commit details
Showing with 44 additions and 0 deletions.
  1. +42 −0 pkgs/tools/security/crowbar/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
42 changes: 42 additions & 0 deletions pkgs/tools/security/crowbar/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -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 { };