diff options
-rw-r--r-- | net-analyzer/metasploit/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/metasploit/files/metasploit.icon | 224 | ||||
-rw-r--r-- | net-analyzer/metasploit/files/msfrpcd-4.0-conf | 25 | ||||
-rw-r--r-- | net-analyzer/metasploit/files/msfrpcd-4.0-initd | 22 | ||||
-rw-r--r-- | net-analyzer/metasploit/metadata.xml | 3 | ||||
-rw-r--r-- | net-analyzer/metasploit/metasploit-4.0.0.ebuild | 83 | ||||
-rw-r--r-- | net-analyzer/metasploit/metasploit-9999.ebuild | 109 |
7 files changed, 475 insertions, 1 deletions
diff --git a/net-analyzer/metasploit/ChangeLog b/net-analyzer/metasploit/ChangeLog index 38f43fb47fd8..8802b5c6eef2 100644 --- a/net-analyzer/metasploit/ChangeLog +++ b/net-analyzer/metasploit/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-analyzer/metasploit # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.55 2011/05/07 17:01:11 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.56 2011/08/03 05:56:15 patrick Exp $ + +*metasploit-9999 (03 Aug 2011) +*metasploit-4.0.0 (03 Aug 2011) + + 03 Aug 2011; Patrick Lauer <patrick@gentoo.org> +metasploit-4.0.0.ebuild, + +files/msfrpcd-4.0-conf, +files/msfrpcd-4.0-initd, +metasploit-9999.ebuild, + +files/metasploit.icon, metadata.xml: + Bump to 4.0, includes lots of nice ebuild improvements from #342013 *metasploit-3.7.0 (07 May 2011) diff --git a/net-analyzer/metasploit/files/metasploit.icon b/net-analyzer/metasploit/files/metasploit.icon new file mode 100644 index 000000000000..87af020fdf0d --- /dev/null +++ b/net-analyzer/metasploit/files/metasploit.icon @@ -0,0 +1,224 @@ +/* XPM */ +static char *metasploit[] = { +/* columns rows colors chars-per-pixel */ +"48 48 170 2 ", +" c #000000", +". c #0B0B0B", +"X c #131313", +"o c #1C1C1C", +"O c #251B0D", +"+ c #2C2112", +"@ c #2C241C", +"# c #081933", +"$ c #061F3B", +"% c #07203C", +"& c #09223C", +"* c #232323", +"= c #2D2D2D", +"- c #353535", +"; c #383838", +": c #0C2141", +"> c #0F264C", +", c #0F284D", +"< c #072755", +"1 c #082754", +"2 c #062855", +"3 c #0E2C57", +"4 c #072858", +"5 c #0D2F5C", +"6 c #033A6E", +"7 c #1A3166", +"8 c #043C72", +"9 c #2F456F", +"0 c #2A4174", +"q c #314774", +"w c #314A75", +"e c #424242", +"r c #444A5F", +"t c #545454", +"y c #5B5B5B", +"u c #414B60", +"i c #515A6F", +"p c #4B6975", +"a c #416679", +"s c #46697B", +"d c #4D6D7C", +"f c #636363", +"g c #686868", +"h c #727272", +"j c #7B7B7B", +"k c #B37777", +"l c #C76852", +"z c #F26E40", +"x c #C77A6F", +"c c #DA8D75", +"v c #023986", +"b c #002F99", +"n c #043296", +"m c #043898", +"M c #0038A0", +"N c #094089", +"B c #1C4583", +"V c #194997", +"C c #1E4E9F", +"Z c #215192", +"A c #225A9F", +"S c #3D5C98", +"D c #3B6F8A", +"F c #0D43AD", +"G c #1F4EA2", +"H c #1F4EAA", +"J c #1753BB", +"K c #1852B9", +"L c #224FA8", +"P c #2450A4", +"I c #2E55A0", +"U c #2755AD", +"Y c #2956AE", +"T c #3464A5", +"R c #2963BC", +"E c #466E81", +"W c #447082", +"Q c #6C739A", +"! c #4471B1", +"~ c #4873B6", +"^ c #4870BB", +"/ c #4D78BA", +"( c #0D53C3", +") c #1866C9", +"_ c #046EDB", +"` c #126FD4", +"' c #0C73DD", +"] c #3767C7", +"[ c #326AC2", +"{ c #3D75C4", +"} c #3574C8", +"| c #3B74C9", +" . c #3E79CC", +".. c #2F74D3", +"X. c #3B7BD0", +"o. c #006EE5", +"O. c #0479E5", +"+. c #0074E9", +"@. c #087EEC", +"#. c #1479E1", +"$. c #497AC7", +"%. c #447BCD", +"&. c #487FD2", +"*. c #5B84A8", +"=. c #3B82DA", +"-. c #0C86EF", +";. c #1F80E5", +":. c #1393F9", +">. c #1C99FB", +",. c #348FEC", +"<. c #3290E5", +"1. c #3491EB", +"2. c #2490F3", +"3. c #279EFD", +"4. c #3CA8FF", +"5. c #5394D2", +"6. c #758FC3", +"7. c #689AD3", +"8. c #7399D1", +"9. c #4090E6", +"0. c #4990E4", +"q. c #4694EB", +"w. c #559BED", +"e. c #4B9BF1", +"r. c #539FF3", +"t. c #45A4FD", +"y. c #47AAFA", +"u. c #56A0F4", +"i. c #5AA4F5", +"p. c #5CA6F8", +"a. c #56B5FD", +"s. c #71A3E1", +"d. c #65AFFB", +"f. c #66B7FF", +"g. c #68B7FF", +"h. c #6CC2FF", +"j. c #70C9FF", +"k. c #7CD7FF", +"l. c #7ED9FF", +"z. c #838383", +"x. c #8B8B8B", +"c. c #939393", +"v. c #9D9D9D", +"b. c #B18A8B", +"n. c #9193AB", +"m. c #A3A3A3", +"M. c #AEAEAE", +"N. c #B2B2B2", +"B. c #BDBDBD", +"V. c #8299C5", +"C. c #8899C3", +"Z. c #81C2FF", +"A. c #8BCEFF", +"S. c #86D7FF", +"D. c #8BD1FF", +"F. c #84DCFF", +"G. c #8ADFFF", +"H. c #94D6FF", +"J. c #9DDAFE", +"K. c #8DE1FF", +"L. c #97E0FF", +"P. c #C3C3C3", +"I. c #CBCBCB", +"U. c #D3D3D3", +"Y. c #DCDCDC", +"T. c #E3E3E3", +"R. c #ECECEC", +"E. c #F4F4F4", +"W. c #FFFFFF", +"Q. c None", +/* pixels */ +"Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.", +"Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q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Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.", +"Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.", +"Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q." +}; diff --git a/net-analyzer/metasploit/files/msfrpcd-4.0-conf b/net-analyzer/metasploit/files/msfrpcd-4.0-conf new file mode 100644 index 000000000000..dc56a9d966a6 --- /dev/null +++ b/net-analyzer/metasploit/files/msfrpcd-4.0-conf @@ -0,0 +1,25 @@ +# Config file for /etc/init.d/msfrpcd + +# msfrpcd -h for more info + +# Bind to the following IP instead of 0.0.0.0 +MSF_OPTS="-a 127.0.0.1" + +# Bind to the following TCP port instead of default 55553 +#MSF_OPTS="${MSF_OPTS} -p 55553" + +# Specify the username to access msfrpcd +MSF_OPTS="${MSF_OPTS} -U msf" + +# Specify the password to access msfrpcd +MSF_OPTS="${MSF_OPTS} -P secret" + +# Server type, [Basic|Web] +#MSF_OPTS="${MSF_OPTS} -t Basic" + +# URI for Web server +#MSF_OPTS="${MSF_OPTS} -u " + +# Disable SSL on the XMLRPC socket +# JAVA GUI doesn't support SSL as of Nov 6, 2010 +MSF_OPTS="${MSF_OPTS} -S" diff --git a/net-analyzer/metasploit/files/msfrpcd-4.0-initd b/net-analyzer/metasploit/files/msfrpcd-4.0-initd new file mode 100644 index 000000000000..935e0c92a888 --- /dev/null +++ b/net-analyzer/metasploit/files/msfrpcd-4.0-initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/files/msfrpcd-4.0-initd,v 1.1 2011/08/03 05:56:15 patrick Exp $ + +VERSION=4.0 +PIDFILE=/var/run/msfrpcd${VERSION}.pid + +start() { + ebegin "Starting msfrpcd${VERSION}" + start-stop-daemon --start --quiet --background \ + --exec /usr/lib/metasploit${VERSION}/msfrpcd \ + --pidfile ${PIDFILE} \ + --make-pidfile -- -f ${MSF_OPTS} + eend $? +} + +stop() { + ebegin "Stopping msfrpcd${VERSION}" + start-stop-daemon --stop --quiet -s 9 --pidfile ${PIDFILE} + eend $? +} diff --git a/net-analyzer/metasploit/metadata.xml b/net-analyzer/metasploit/metadata.xml index ea1684cc23e1..eb8bf365ee11 100644 --- a/net-analyzer/metasploit/metadata.xml +++ b/net-analyzer/metasploit/metadata.xml @@ -14,4 +14,7 @@ Framework was designed to facilitate research and experimentation with new technologies. </longdescription> + <use> + <flag name='gui'>Enable Java GUI</flag> + </use> </pkgmetadata> diff --git a/net-analyzer/metasploit/metasploit-4.0.0.ebuild b/net-analyzer/metasploit/metasploit-4.0.0.ebuild new file mode 100644 index 000000000000..03e806921e4c --- /dev/null +++ b/net-analyzer/metasploit/metasploit-4.0.0.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-4.0.0.ebuild,v 1.1 2011/08/03 05:56:15 patrick Exp $ + +EAPI="3" +inherit eutils + +SRC_URI="http://updates.metasploit.com/data/releases/framework-${PV}.tar.bz2" + +DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code" +HOMEPAGE="http://www.metasploit.org/" + +LICENSE="BSD" +SLOT="4.0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="gui mysql postgres" + +# Note we use bundled gems (see data/msfweb/vendor/rails/) as upstream voted for +# such solution, bug #247787 +RDEPEND="dev-lang/ruby + dev-ruby/rubygems + gui? ( virtual/jre ) + mysql? ( dev-ruby/mysql-ruby + dev-ruby/activerecord[mysql] ) + postgres? ( dev-ruby/ruby-postgres + dev-ruby/activerecord[postgres] )" +DEPEND="" + +QA_PRESTRIPPED=" + usr/lib/${PN}${SLOT}/data/msflinker_linux_x86.bin + usr/lib/${PN}${SLOT}/data/templates/template_armle_linux.bin + usr/lib/${PN}${SLOT}/data/templates/template_x86_linux.bin" + +QA_EXECSTACK=" + usr/lib/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin" +QA_WX_LOAD=" + usr/lib/${PN}${SLOT}/data/templates/template_*_linux.bin" + +S=${WORKDIR}/msf3 + +src_configure() { + rm "${S}"/msfupdate + chmod +x "${S}"/msf* + + use gui || rm msfgui +} + +src_install() { + # should be as simple as copying everything into the target... + dodir /usr/lib/${PN}${SLOT} + cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT} + chown -R root:0 "${D}" + + # do not remove LICENSE, bug #238137 + dodir /usr/share/doc/${PF} + cp "${S}"/{README,HACKING} "${D}"/usr/share/doc/${PF} + dosym /usr/lib/${PN}${SLOT}/documentation /usr/share/doc/${PF}/documentation + + dodir /usr/bin/ + for file in msf*; do + dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT} + done + + newinitd "${FILESDIR}"/msfrpcd-${SLOT}-initd msfrpcd${SLOT} || die + newconfd "${FILESDIR}"/msfrpcd-${SLOT}-conf msfrpcd${SLOT} || die + + use gui && make_desktop_entry msfgui${SLOT} \ + "Metasploit Framework" \ + metasploit \ + 'GNOME;System;Network;' && + doicon "${FILESDIR}"/metasploit.xpm +} + +pkg_postinst() { + if use gui; then + elog "You will need to create a /usr/bin/msfrpcd symlink pointing to" + elog "the version of msfrpcd if you want to be able to start msfrpcd" + elog "from the java gui." + elog + elog "ln /usr/bin/msfrpcd${SLOT} /usr/bin/msfrpcd" + elog + fi +} diff --git a/net-analyzer/metasploit/metasploit-9999.ebuild b/net-analyzer/metasploit/metasploit-9999.ebuild new file mode 100644 index 000000000000..77f39d2b1384 --- /dev/null +++ b/net-analyzer/metasploit/metasploit-9999.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-9999.ebuild,v 1.1 2011/08/03 05:56:15 patrick Exp $ + +EAPI="3" +inherit eutils subversion + +ESVN_REPO_URI="https://metasploit.com/svn/framework3/trunk" + +DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code" +HOMEPAGE="http://www.metasploit.org/" + +LICENSE="BSD" +SLOT="4.0" +KEYWORDS="" +IUSE="gui mysql postgres" + +# Note we use bundled gems (see data/msfweb/vendor/rails/) as upstream voted for +# such solution, bug #247787 +RDEPEND="dev-lang/ruby + dev-ruby/rubygems + gui? ( virtual/jre ) + mysql? ( dev-ruby/mysql-ruby + dev-ruby/activerecord[mysql] ) + postgres? ( dev-ruby/ruby-postgres + dev-ruby/activerecord[postgres] )" +DEPEND="" + +QA_PRESTRIPPED=" + usr/lib/${PN}${SLOT}/data/msflinker_linux_x86.bin + usr/lib/${PN}${SLOT}/data/templates/template_armle_linux.bin + usr/lib/${PN}${SLOT}/data/templates/template_x86_linux.bin" + +QA_EXECSTACK=" + usr/lib/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin" +QA_WX_LOAD=" + usr/lib/${PN}${SLOT}/data/templates/template_*_linux.bin" + +S=${WORKDIR}/msf3 + +src_unpack() { + subversion_fetch +} + +src_configure() { + [[ "${ESVN_REVISION}" == "" ]] \ + && find "${S}" -type d -name ".svn" -print0 | xargs -0 -n1 rm -R + + rm "${S}"/msfupdate + chmod +x "${S}"/msf* + + use gui || rm msfgui +} + +src_install() { + # should be as simple as copying everything into the target... + dodir /usr/lib/${PN}${SLOT} + cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT} + chown -R root:0 "${D}" + + # do not remove LICENSE, bug #238137 + dodir /usr/share/doc/${PF} + cp "${S}"/{README,HACKING} "${D}"/usr/share/doc/${PF} + dosym /usr/lib/${PN}${SLOT}/documentation /usr/share/doc/${PF}/documentation + + dodir /usr/bin/ + for file in msf*; do + dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT} + done + + newinitd "${FILESDIR}"/msfrpcd-${SLOT}-initd msfrpcd${SLOT} || die + newconfd "${FILESDIR}"/msfrpcd-${SLOT}-conf msfrpcd${SLOT} || die + + use gui && make_desktop_entry msfgui${SLOT} \ + "Metasploit Framework" \ + metasploit \ + 'GNOME;System;Network;' && + doicon "${FILESDIR}"/metasploit.xpm +} + +pkg_postinst() { + if use gui; then + elog "You will need to create a /usr/bin/msfrpcd symlink pointing to" + elog "the version of msfrpcd if you want to be able to start msfrpcd" + elog "from the java gui." + elog + elog "ln /usr/bin/msfrpcd${SLOT} /usr/bin/msfrpcd" + elog + fi + + elog "If you wish to update ${PN} manually simply run:" + elog + elog "ESVN_REVISION=<rev> emerge =${PF}" + elog + elog "where <rev> is either HEAD (in case you wish to get all updates)" + elog "or specific revision number. But NOTE, this update will vanish" + elog "next time you reemerge ${PN}. To make update permanent either" + elog "create ebuild with specific revision number inside your overlay" + elog "or report revision bump bug at http://bugs.gentoo.org ." + elog + elog "In case you use portage it's also possible to create" + elog "/etc/portage/env/${CATEGORY}/${PN} file with ESVN_REVISION=<rev>" + elog "content. Then each time you run emerge ${PN} you'll have said" + elog "<rev> installed. For example, if you run" + elog " # mkdir -p /etc/portage/env/${CATEGORY}" + elog " # echo ESVN_REVISION=HEAD >> /etc/portage/env/${CATEGORY}/${PN}" + elog "each time you reemerge ${PN} it'll be updated to get all possible" + elog "updates for framework-${PV%_p*} branch." +} |