Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247787 - net-analyzer/metasploit version bump to 3.2 (new license - BSD!)
Summary: net-analyzer/metasploit version bump to 3.2 (new license - BSD!)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Netmon project
URL: http://metasploit.com/framework/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-20 17:19 UTC by H D Moore
Modified: 2009-07-08 09:10 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New ebuild for metasploit 3.2 revision 5981 (metasploit-3.2_p5981.ebuild,3.86 KB, text/plain)
2008-11-26 10:23 UTC, Erwin Paternotte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description H D Moore 2008-11-20 17:19:43 UTC
Metasploit has released version 3.2 of the framework. This release is provided under the BSD license, which removes many of the packaging restrictions that applied to 3.0 and 3.1. The latest tarball is available from the metasploit web site.
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2008-11-20 17:38:50 UTC
reassigning to maintainer
Comment 2 Erwin Paternotte 2008-11-26 10:23:16 UTC
Created attachment 173423 [details]
New ebuild for metasploit 3.2 revision 5981
Comment 3 Patrick Lauer gentoo-dev 2009-03-02 07:26:52 UTC
Ebuild seems to install ok, but:

# msfcli3
ruby: no such file to load -- auto_gem (LoadError)

So there's something messed up with ruby, most likely the deps (no surprise there ;) )

net-analyzer/metasploit-3.2  USE="-gtk -httpd -postgres -sqlite -sqlite3"
Comment 4 Hans de Graaff gentoo-dev Security 2009-03-09 21:39:47 UTC
(In reply to comment #3)
> Ebuild seems to install ok, but:
> 
> # msfcli3
> ruby: no such file to load -- auto_gem (LoadError)

auto_gem.rb is installed as part of rubygems in /usr/$(libdir)/ruby/site_ruby/auto_gem.rb and loaded through RUBYOPT environment variable set in /etc/env.d/10rubygems. My wild guess is that you are testing in a chroot that has RUBYOPT set but not rubygems installed?

Comment 5 Hans de Graaff gentoo-dev Security 2009-03-09 21:47:09 UTC
From the ruby herd perspective I'm also voting for this version bump. The currently stable metasploit 3.1 version depends on dev-ruby/rails-1.2*, which we would like to remove from the tree due to its incompatibilities with ruby 1.8.7 and given the fact that upstream no longer provides security support for it.

metasploit 3.2 depends on Rails 2.1, which does not have this issue.
Note that the proposed ebuild by Erwin leaves the bundled copy present. From a security standpoint it may be better to remove it (in data/mfsweb/vendor/rails) and always use the system version.
Comment 6 H D Moore 2009-03-09 21:51:50 UTC
3.2 uses a "frozen" copy of rails, but it still depends on rubygems. Removing this and using the system version might work, but please test it, as we monkey patch rails to work around some limitations.  The auto_gem thing is a environment problem (remove -rautogem from ENV), not a code issue. 
Comment 7 Hans de Graaff gentoo-dev Security 2009-03-10 07:00:28 UTC
(In reply to comment #6)
> 3.2 uses a "frozen" copy of rails, but it still depends on rubygems. Removing
> this and using the system version might work, but please test it, as we monkey
> patch rails to work around some limitations. 

I'll leave that decision to the metasploit maintainers. In any case the ebuild should be consistent: either depend on dev-ruby/rails-2.1* and remove vender/rails, or remove the dependency and use the bundled copy.
Comment 8 H D Moore 2009-03-10 13:28:04 UTC
fwiw, my vote is remove the dependency, we are bundling rails for the forseeable future.
Comment 9 Jonathan-Christofer Demay 2009-03-10 14:39:05 UTC
I was wondering, just like we can have an up-to-date repository ebuild of a specific program with 9999 as its version number, would it be possible to have an up-to-date revision ebuild, something like metasploit-3.2_p9999.ebuild patched someshat like this:
14,15c14,19
< 	MTSLPT_REV=${BASH_REMATCH[2]}
< 	ESVN_REPO_URI="https://metasploit.com/svn/framework3/branches/framework-${PV%_p*}/@${MTSLPT_REV}"
---
> 	if [[ "${PV}" =~ (_p)([9]+) ]] ; then
> 		MTSLPT_REV=""
> 	else
> 		MTSLPT_REV=@${BASH_REMATCH[2]}
> 	fi
> 	ESVN_REPO_URI="https://metasploit.com/svn/framework3/branches/framework-${PV%_p*}/${MTSLPT_REV
Comment 10 Joss Wright 2009-03-11 10:40:20 UTC
Is it just me, or is the ebuild attachment listed above just a copy of the ebuild for metasploit 3.1?
Comment 11 Jonathan-Christofer Demay 2009-03-11 22:10:25 UTC
it is (and it seems to work)
Comment 12 Joss Wright 2009-03-11 22:53:42 UTC
Oh, sorry. I assumed that the ebuild was intended to resolve things like the dependency on Ruby < 1.8.7. I'll just wait for an "official" update. :)
Comment 13 Jonathan-Christofer Demay 2009-03-21 11:20:23 UTC
I thought so too ;) but for now, I just masked ruby version >= 1.8.7
Comment 14 Hans de Graaff gentoo-dev Security 2009-03-29 15:37:07 UTC
We'll most likely move to mark ruby 1.8.7 stable at some point, so if there are issues with ruby 1.8.7 we should try to identify and resolve them. I know that metasploit 3.1_p5699-r1 is not compatible with ruby 1.8.7 due to its ruby version, but this should no longer be a problem for metasploit 3.2 since it uses an updated version. Please let us know if you detect other ruby 1.8.7 incompatibilities.
Comment 15 Joss Wright 2009-03-29 16:02:31 UTC
I was playing with this package this morning. I have just created a metasploit-3.2_p6432.ebuild with the block on ruby 1.8.7 removed, and have run an upgrade. I haven't had a chance to play with it yet to see if any problems rear their ugly heads, but I'll post back here if I run into anything.

Given my somewhat limited knowledge of the intricacies of ebuilds, it does look like having a 3.2_p9999 ebuild that always updates to the HEAD revision would be good. Is there support for that, or a reason against it?
Comment 16 Peter Volkov (RETIRED) gentoo-dev 2009-07-08 09:10:31 UTC
Sorry for lo-oong delay, guys. It's in the main tree.