metasploit: Fix python modules

This commit is contained in:
Philippe Hürlimann 2021-10-19 22:52:58 +02:00
parent e8b7699f90
commit 4f16e1e400

View file

@ -4,6 +4,7 @@
, makeWrapper , makeWrapper
, ruby , ruby
, bundlerEnv , bundlerEnv
, python3
}: }:
let let
@ -24,6 +25,7 @@ in stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ (python3.withPackages (ps: [ ps.requests ])) ];
dontPatchELF = true; # stay away from exploit executables dontPatchELF = true; # stay away from exploit executables
@ -32,6 +34,8 @@ in stdenv.mkDerivation rec {
cp -r * $out/share/msf cp -r * $out/share/msf
grep -rl "^#\!.*python2$" $out/share/msf | xargs -d '\n' rm
( (
cd $out/share/msf/ cd $out/share/msf/
for i in msf*; do for i in msf*; do