From 4ca642f1ad3a5e39c7b54a5a22b778557accd595 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 11 Apr 2008 09:28:01 +0000 Subject: Added metasploit framework for security testing using exploit database svn path=/nixpkgs/trunk/; revision=11562 --- pkgs/tools/security/metasploit/3.1.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/tools/security/metasploit/3.1.nix (limited to 'pkgs/tools/security/metasploit') diff --git a/pkgs/tools/security/metasploit/3.1.nix b/pkgs/tools/security/metasploit/3.1.nix new file mode 100644 index 000000000000..0c8a6e9688a3 --- /dev/null +++ b/pkgs/tools/security/metasploit/3.1.nix @@ -0,0 +1,34 @@ +args : with args; +rec { + src = fetchurl { + url = http://www.packetstormsecurity.nl/UNIX/utilities/framework-3.1.tar.gz; + sha256 = "114znq9dfcyh9gcj57p3zsc0d0amlzhwidmg8qjcgxpjh28h1afx"; + }; + + buildInputs = [makeWrapper]; + configureFlags = []; + + doInstall = FullDepEntry('' + ensureDir $out/share/msf + ensureDir $out/bin + + cp -r * $out/share/msf + ln -s $out/share/msf/msf* $out/bin + + sed -e 's@#!/usr/bin/env ruby@#! ${ruby}/bin/ruby@' -i $out/bin/msf* + + for i in $out/bin/*; do + wrapProgram $i --prefix RUBYLIB : $out/share/msf/lib + done + '') ["minInit" "defEnsureDir" "doUnpack" "addInputs"]; + + /* doConfigure should be specified separately */ + phaseNames = ["doInstall"]; + + name = "metasploit-framework" + version; + meta = { + description = "Metasploit Framework - a collection of exploits"; + homepage = "http://framework.metasploit.org/"; + }; +} + -- cgit 1.4.1