Merge pull request #185047 from emilytrau/msfpc
This commit is contained in:
commit
ee66f3389a
2 changed files with 40 additions and 0 deletions
38
pkgs/tools/security/msfpc/default.nix
Normal file
38
pkgs/tools/security/msfpc/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, makeWrapper, metasploit, curl, inetutils, openssl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "msfpc";
|
||||
version = "1.4.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "g0tmi1k";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "UIdE0oSaNu16pf+M96x8AnNju88hdzokv86wm8uBYDQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 msfpc.sh $out/bin/msfpc
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/msfpc \
|
||||
--prefix PATH : "${lib.makeBinPath [ metasploit curl inetutils openssl ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "MSFvenom Payload Creator";
|
||||
homepage = "https://github.com/g0tmi1k/msfpc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ emilytrau ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -8772,6 +8772,8 @@ with pkgs;
|
|||
|
||||
mscgen = callPackage ../tools/graphics/mscgen { };
|
||||
|
||||
msfpc = callPackage ../tools/security/msfpc { };
|
||||
|
||||
melt = callPackage ../tools/security/melt { };
|
||||
|
||||
metabigor = callPackage ../tools/security/metabigor { };
|
||||
|
|
Loading…
Reference in a new issue