Merge pull request #81967 from Ma27/brutespray
brutespray: init at 1.6.6
This commit is contained in:
commit
fcc8660d35
40
pkgs/tools/security/brutespray/default.nix
Normal file
40
pkgs/tools/security/brutespray/default.nix
Normal file
@ -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 \
|
||||
--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
pkgs/tools/security/medusa/default.nix
Normal file
27
pkgs/tools/security/medusa/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -1286,6 +1286,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;
|
||||
|
||||
@ -1968,6 +1970,8 @@ in
|
||||
|
||||
massren = callPackage ../tools/misc/massren { };
|
||||
|
||||
medusa = callPackage ../tools/security/medusa { };
|
||||
|
||||
megasync = libsForQt5.callPackage ../applications/misc/megasync { };
|
||||
|
||||
megacmd = callPackage ../applications/misc/megacmd { };
|
||||
|
Loading…
Reference in New Issue
Block a user