mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 02:50:26 +02:00
metasploit: slot and various fixes
This commit is contained in:
parent
716bfb144c
commit
b05c0dc1fe
2 changed files with 26 additions and 25 deletions
|
|
@ -5,4 +5,4 @@ AUX msfrpcd.initd 622 RMD160 d5923c49a9a7a4e6010c2b2e8927d13dfee8e9ef SHA1 9c664
|
|||
AUX smart_hasdump_script_6ac6c1d.rb 15510 RMD160 3ff084bf3b86df1fa37499b004ca040161b324b8 SHA1 3795c23ae5160fdc13ba1d9c7f05e3893ff6f4e9 SHA256 66dec160dd9cc2fee2f8de11bf433f40baa1f41734ecf62aca9a32e0ca8a438f
|
||||
DIST jboss_seam_remote_command_rb 3412 RMD160 c577b1bd75943f2ddceea3161bc1037dd0150c2f SHA1 b858c726d3ee26317726635373d5db3b7eeb774d SHA256 c87f1cc1b82ed105c7bf551db7e3bad0a787244c4cdd124015a3ff24cedd23df
|
||||
DIST vbsmem-1.2.1.patch 69002 RMD160 281461151b0d1e453ee613326f4457eebaddebaa SHA1 883a582552e00102be452a2a0105b9e016b3dccc SHA256 7991a5629c562817919c9bb1c8f0a3bdcd1c63cf9b9f32f322d1d266416589d2
|
||||
EBUILD metasploit-9999.ebuild 5990 RMD160 bce8379369b9c7ab742e8a86cb1596a813afe720 SHA1 9c27bd8dddd7fd9e1fd3794217e5698fac2edc29 SHA256 b05e53c092342e10602b3561934667e33d0af0704194d293bc548c16622d9269
|
||||
EBUILD metasploit-9999.ebuild 6180 RMD160 1d790837d2f293aef1bb3ca4ed062f9fcffaa5cd SHA1 c115a80871da68c31e53517e4a458e3909d17041 SHA256 6ec2ab78e43a7a9bc5a1d72a55b0cc729a185bd572e0a174133139e5e61d5e81
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ SRC_URI="https://dev.metasploit.com/redmine/attachments/download/906/vbsmem-1.2.
|
|||
|
||||
DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code"
|
||||
HOMEPAGE="http://www.metasploit.org/"
|
||||
SLOT="0"
|
||||
SLOT="9999"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+armitage +kissfft unstable lorcon lorcon2 +pcaprub +postgres serialport"
|
||||
|
|
@ -42,9 +42,9 @@ DEPEND=""
|
|||
RESTRICT="strip"
|
||||
|
||||
QA_EXECSTACK="
|
||||
usr/$(get_libdir)/${PN}/data/meterpreter/msflinker_linux_x86.bin"
|
||||
usr/$(get_libdir)/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin"
|
||||
QA_WX_LOAD="
|
||||
usr/$(get_libdir)/${PN}/data/templates/template_*_linux.bin"
|
||||
usr/$(get_libdir)/${PN}${SLOT}/data/templates/template_*_linux.bin"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
|
|
@ -78,34 +78,35 @@ src_compile() {
|
|||
|
||||
src_install() {
|
||||
# should be as simple as copying everything into the target...
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
cp -R "${S}"/* "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
|
||||
rm -Rf "${ED}"/usr/$(get_libdir)/${PN}/documentation "${ED}"/usr/$(get_libdir)/${PN}/README || die
|
||||
dodir /usr/$(get_libdir)/${PN}${SLOT}
|
||||
cp -R "${S}"/* "${ED}"/usr/$(get_libdir)/${PN}${SLOT} || die "Copy files failed"
|
||||
rm -Rf "${ED}"/usr/$(get_libdir)/${PN}${SLOT}/documentation "${ED}"/usr/$(get_libdir)/${PN}${SLOT}/README || die
|
||||
fowners -R root:0 /
|
||||
|
||||
# do not remove LICENSE, bug #238137
|
||||
dodir /usr/share/doc/${PF}
|
||||
cp -R "${S}"/{documentation,README} "${ED}"/usr/share/doc/${PF} || die
|
||||
dosym /usr/share/doc/${PF}/documentation /usr/$(get_libdir)/${PN}/documentation
|
||||
dosym /usr/share/doc/${PF}/documentation /usr/$(get_libdir)/${PN}${SLOT}/documentation
|
||||
|
||||
|
||||
dodir /usr/bin/
|
||||
for file in msf*; do
|
||||
dosym /usr/$(get_libdir)/${PN}/${file} /usr/bin/${file}
|
||||
dosym /usr/$(get_libdir)/${PN}${SLOT}/${file} /usr/bin/${file}
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}"/msfrpcd.initd msfrpcd
|
||||
newconfd "${FILESDIR}"/msfrpcd.confd msfrpcd
|
||||
newinitd "${FILESDIR}"/msfrpcd.initd msfrpcd${SLOT}
|
||||
newconfd "${FILESDIR}"/msfrpcd.confd msfrpcd${SLOT}
|
||||
|
||||
# Avoid useless revdep-rebuild trigger #377617
|
||||
dodir /etc/revdep-rebuild/
|
||||
echo "SEARCH_DIRS_MASK=\"/usr/lib*/${PN}/data/john\"" > \
|
||||
"${ED}"/etc/revdep-rebuild/70-${PN}
|
||||
echo "SEARCH_DIRS_MASK=\"/usr/lib*/${PN}${SLOT}/data/john\"" > \
|
||||
"${ED}"/etc/revdep-rebuild/70-${PN}${SLOT}
|
||||
|
||||
if use armitage; then
|
||||
echo -e "#!/bin/sh \n\nexport MSF_DATABASE_CONFIG=/etc/metasploit/armitage.yml\n" > armitage
|
||||
echo -e "java -Xmx256m -jar /usr/$(get_libdir)/${PN}/data/armitage/armitage.jar \$* &\n" >> armitage
|
||||
echo -e "#!/bin/sh \n\nexport MSF_DATABASE_CONFIG=/usr/$(get_libdir)/${PN}{SLOT}/armitage.yml\n" > armitage
|
||||
echo -e "java -Xmx256m -jar /usr/$(get_libdir)/${PN}${SLOT}/data/armitage/armitage.jar \$* &\n" >> armitage
|
||||
dobin armitage
|
||||
insinto /etc/metasploit
|
||||
insinto /usr/$(get_libdir)/${PN}${SLOT}/
|
||||
doins "${FILESDIR}"/armitage.yml
|
||||
fi
|
||||
|
||||
|
|
@ -114,8 +115,8 @@ src_install() {
|
|||
|
||||
#smart hasdump from http://www.darkoperator.com/blog/2011/5/19/metasploit-post-module-smart_hashdump.html
|
||||
#https://github.com/darkoperator/Meterpreter-Scripts
|
||||
cp "${FILESDIR}"/smart_hasdump_script_6ac6c1d.rb "${ED}"/usr/$(get_libdir)/${PN}/scripts/meterpreter/smart_hasdump.rb || die "Copy files failed"
|
||||
cp "${FILESDIR}"/hashdump2_script_6ac6c1d.rb "${ED}"/usr/$(get_libdir)/${PN}/scripts/meterpreter/hashdump2.rb || die "Copy files failed"
|
||||
cp "${FILESDIR}"/smart_hasdump_script_6ac6c1d.rb "${ED}"/usr/$(get_libdir)/${PN}${SLOT}/scripts/meterpreter/smart_hasdump.rb || die "Copy files failed"
|
||||
cp "${FILESDIR}"/hashdump2_script_6ac6c1d.rb "${ED}"/usr/$(get_libdir)/${PN}${SLOT}/scripts/meterpreter/hashdump2.rb || die "Copy files failed"
|
||||
|
||||
#Slow HTTP POST Denial Of Service
|
||||
#https://dev.metasploit.com/redmine/issues/3638
|
||||
|
|
@ -125,7 +126,7 @@ src_install() {
|
|||
|
||||
#JBoss remote command execution exploit
|
||||
#https://dev.metasploit.com/redmine/issues/4585
|
||||
cp "${DISTDIR}"/jboss_seam_remote_command_rb "${ED}"/usr/$(get_libdir)/${PN}/modules/exploits/multi/http/jboss_seam_remote_command.rb || die "Copy files failed"
|
||||
cp "${DISTDIR}"/jboss_seam_remote_command_rb "${ED}"/usr/$(get_libdir)/${PN}${SLOT}/modules/exploits/multi/http/jboss_seam_remote_command.rb || die "Copy files failed"
|
||||
|
||||
fi
|
||||
#fi unstable
|
||||
|
|
@ -158,23 +159,23 @@ pkg_postinst() {
|
|||
elog
|
||||
fi
|
||||
|
||||
elog "If you wish to update ${PN} manually simply run:"
|
||||
elog "If you wish to update ${PN}${SLOT} 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 "next time you reemerge ${PN}${SLOT}. 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 "/etc/portage/env/${CATEGORY}/${PN}${SLOT} file with ESVN_REVISION=<rev>"
|
||||
elog "content. Then each time you run emerge ${PN}${SLOT} 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 " # echo ESVN_REVISION=HEAD >> /etc/portage/env/${CATEGORY}/${PN}${SLOT}"
|
||||
elog "each time you reemerge ${PN}${SLOT} it'll be updated to get all possible"
|
||||
elog "updates for framework-${PV%_p*} branch."
|
||||
elog "You can do similar things in paludis using /etc/paludis/bashrc."
|
||||
elog
|
||||
|
|
|
|||
Loading…
Reference in a new issue