Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brutespray: init at 1.6.6 #81967

Merged
merged 2 commits into from
Mar 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions pkgs/tools/security/brutespray/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ stdenv, python3, fetchFromGitHub, makeWrapper, medusa }:

stdenv.mkDerivation rec {
pname = "brutespray";
version = "1.6.6";

src = fetchFromGitHub {
owner = "x90skysn3k";
repo = pname;
rev = "brutespray-${version}";
sha256 = "1rj8fkq1xz4ph1pmldphlsa25mg6xl7i7dranb0qjx00jhfxjxjh";
};

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 \
Ma27 marked this conversation as resolved.
Show resolved Hide resolved
--prefix PATH : ${stdenv.lib.makeBinPath [ medusa ]}

mkdir -p $out/share/brutespray
cp -r wordlist/ $out/share/brutespray/wordlist
'';

meta = with stdenv.lib; {
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 ];
};
}
27 changes: 27 additions & 0 deletions pkgs/tools/security/medusa/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, pkg-config, freerdp, openssl, libssh2 }:

stdenv.mkDerivation rec {
pname = "medusa-unstable";
version = "2018-12-16";

src = fetchFromGitHub {
owner = "jmk-foofus";
repo = "medusa";
rev = "292193b3995444aede53ff873899640b08129fc7";
sha256 = "0njlz4fqa0165wdmd5y8lfnafayf3c4la0r8pf3hixkdwsss1509";
};

outputs = [ "out" "man" ];

configureFlags = [ "--enable-module-ssh=yes" ];

nativeBuildInputs = [ pkg-config ];
buildInputs = [ freerdp openssl libssh2 ];

meta = with stdenv.lib; {
homepage = "https://github.com/jmk-foofus/medusa";
description = "A speedy, parallel, and modular, login brute-forcer";
license = licenses.gpl2;
maintainers = with maintainers; [ ma27 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,8 @@ in

bruteforce-luks = callPackage ../tools/security/bruteforce-luks { };

brutespray = callPackage ../tools/security/brutespray { };

breakpointHook = assert stdenv.isLinux;
makeSetupHook { } ../build-support/setup-hooks/breakpoint-hook.sh;

Expand Down Expand Up @@ -1964,6 +1966,8 @@ in

massren = callPackage ../tools/misc/massren { };

medusa = callPackage ../tools/security/medusa { };

megasync = libsForQt5.callPackage ../applications/misc/megasync { };

megacmd = callPackage ../applications/misc/megacmd { };
Expand Down