Created
July 2, 2015 15:26
-
-
Save rdesfo/f5af3b5a60bdc13d181c to your computer and use it in GitHub Desktop.
attempt metasploit default nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
args : with args; | |
rec { | |
src = fetchurl { | |
url = http://downloads.metasploit.com/data/releases/framework-latest.tar.bz2; | |
sha256 = "1irw71r9rymn826s7rwmk0rmjsk0gdfy75c1wwalln81r25x9n8x"; | |
}; | |
buildInputs = [makeWrapper]; | |
configureFlags = []; | |
doInstall = fullDepEntry('' | |
mkdir -p $out/share/msf | |
mkdir -p $out/bin | |
cp -r * $out/share/msf | |
for i in $out/share/msf/msf*; do | |
makeWrapper $i $out/bin/$(basename $i) --prefix RUBYLIB : $out/share/msf/lib | |
done | |
'') ["minInit" "defEnsureDir" "doUnpack" "addInputs"]; | |
/* doConfigure should be specified separately */ | |
phaseNames = ["doInstall" (doPatchShebangs "$out/share/msf")]; | |
name = "metasploit-framework-4.11.3"; | |
meta = { | |
description = "Metasploit Framework - a collection of exploits"; | |
homepage = "https://www.metasploit.com/"; | |
license = stdenv.lib.licenses.bsd3; | |
maintainers = with stdenv.lib.maintainers; [ rdesfo ]; | |
platforms = stdenv.lib.platforms.all; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
both
and
complete without returning an error, but when I run
msfconsole
$ msfconsole [*] Metasploit requires the Bundler gem to be installed $ gem install bundler
so I tried running
msfconsole
in nix-shellI also tried using the bundix tool which can be found here, but I couldn't get this to build.