2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, medusa
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "brutespray";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "x90skysn3k";
|
|
|
|
repo = pname;
|
2021-03-09 03:18:52 +00:00
|
|
|
rev = "${pname}-${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-O9HOsj0R6oHI7jjG4FBqbrSAQSVomgeD7tyPDNCNmIo=";
|
2020-04-24 23:36:52 +00: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 22:18:51 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ medusa ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/brutespray
|
|
|
|
cp -r wordlist/ $out/share/brutespray/wordlist
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/x90skysn3k/brutespray";
|
2021-03-09 03:18:52 +00:00
|
|
|
description = "Tool to do brute-forcing from Nmap output";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "brutespray";
|
2021-03-09 03:18:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
This tool automatically attempts default credentials on found services
|
|
|
|
directly from Nmap output.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-03-04 12:14:45 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|