2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, python3, fetchFromGitHub, makeWrapper, medusa }:
|
2020-03-07 11:06:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "brutespray";
|
2020-04-27 00:55:35 +02:00
|
|
|
version = "1.6.8";
|
2020-03-07 11:06:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "x90skysn3k";
|
|
|
|
repo = pname;
|
|
|
|
rev = "brutespray-${version}";
|
2020-04-27 00:55:35 +02:00
|
|
|
sha256 = "1pi4d5vcvvjsby39dq995dlhpxdicmfhqsiw23hr25m38ccfm3rh";
|
2020-03-07 11:06:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace brutespray.py \
|
|
|
|
--replace "/usr/share/brutespray" "$out/share/brutespray"
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ python3.pkgs.wrapPython makeWrapper ];
|
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm0755 brutespray.py $out/bin/brutespray
|
|
|
|
patchShebangs $out/bin
|
|
|
|
patchPythonScript $out/bin/brutespray
|
|
|
|
wrapProgram $out/bin/brutespray \
|
2021-01-15 10:19:50 +01:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ medusa ]}
|
2020-03-07 11:06:00 +01:00
|
|
|
|
|
|
|
mkdir -p $out/share/brutespray
|
|
|
|
cp -r wordlist/ $out/share/brutespray/wordlist
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-07 11:06:00 +01:00
|
|
|
homepage = "https://github.com/x90skysn3k/brutespray";
|
|
|
|
description = "Brute-Forcing from Nmap output - Automatically attempts default creds on found services";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|