2010-06-17 02:20:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Metasploit < Formula
|
2010-06-17 02:20:37 +00:00
|
|
|
homepage 'http://www.metasploit.com/framework/'
|
2013-01-11 10:47:18 +00:00
|
|
|
url 'http://downloads.metasploit.com/data/releases/framework-4.5.0.tar.bz2'
|
|
|
|
sha1 '13c3e4ef5265ecb5b6303d39ca1347982b782886'
|
2011-05-17 17:30:00 +00:00
|
|
|
|
|
|
|
head "https://www.metasploit.com/svn/framework3/trunk/", :using => :svn
|
2010-06-17 02:20:37 +00:00
|
|
|
|
2011-06-05 19:52:32 +00:00
|
|
|
# Metasploit's tarball comes with a full .svn checkout.
|
|
|
|
# Don't clean these folders, so users can "svn up" to update
|
|
|
|
# metasploit in-place, which apparently is standard for this project.
|
|
|
|
skip_clean :all
|
|
|
|
|
2010-06-17 02:20:37 +00:00
|
|
|
def install
|
2012-03-10 06:48:05 +00:00
|
|
|
libexec.install Dir['.svn','armitage','HACKING',"msf*",'data','documentation','external','lib','modules','plugins','scripts','test','tools']
|
|
|
|
bin.install_symlink Dir["#{libexec}/msf*","#{libexec}/armitage"]
|
2010-06-17 02:20:37 +00:00
|
|
|
end
|
2011-06-05 19:52:32 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Metasploit can be updated in-place by doing:
|
|
|
|
cd `brew --prefix metasploit`/libexec/
|
|
|
|
svn up
|
|
|
|
EOS
|
|
|
|
end
|
2010-06-17 02:20:37 +00:00
|
|
|
end
|