* Added social engineering toolkit.

* MUST TEST with postfix, but should work ok...
This commit is contained in:
grimmlin 2010-02-25 23:26:31 +00:00
parent bcba9a922d
commit 34ff72215f
3 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,2 @@
AUX set 41 RMD160 d409a05d5764a3a017df12575924419b9438fc5c SHA1 e95fdf8e48af1b1c4bdfbe8443ade5d8da0a7e62 SHA256 61fa527c1906be500005f480446cdfe04e45e48e9ce1a7415e90570ff9f74a27
EBUILD set-9999.ebuild 1570 RMD160 87c00e474ea58af8f8bbb2b956826e6e47716a4b SHA1 87c5efa785064c748e567b443ae68a08708f2f65 SHA256 8d38611b9aec4ee8e12860d31cd4501af660918df37cb0a1d47961af83a32317

View file

@ -0,0 +1,4 @@
#!/bin/sh
cd /usr/lib/set
python set $@

View file

@ -0,0 +1,63 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $
MY_P=${PN/set/social_engineering_toolkit}
inherit subversion
SRC_URI=""
ESVN_REPO_URI="http://svn.thepentest.com/${MY_P}"
DESCRIPTION="A social engineering framework"
HOMEPAGE="http://www.thepentest.com/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="ettercap"
# blocker on ruby-1.8.7:
# http://spool.metasploit.com/pipermail/framework/2008-September/003671.html
RDEPEND="virtual/jdk
net-analyzer/metasploit:3
dev-python/pexpect
ettercap? ( net-analyzer/ettercap )
|| ( mail-mta/postfix
mail-mta/sendmail )"
DEPEND=""
S=${WORKDIR}/${MY_P}
src_compile() {
if has_version mail-mta/postfix
then
sed -e 's:/etc/init.d/sendmail:/etc/init.d/postfix:g' \
-i src/smtp/client/smtp_web.py \
src/smtp/client/smtp_client.py
fi
# We forced postfix or sendmail anyway
sed -e 's:SENDMAIL=OFF:SENDMAIL=ON:' -i config/set_config
sed -e 's:METASPLOIT_PATH=.*:METASPLOIT_PATH=/usr/lib/metasploit3/:' -i config/set_config
}
src_install() {
# should be as simple as copying everything into the target...
dodir /usr/lib/${PN}
cp -R "${S}"/* "${D}"/usr/lib/${PN} || die "Copy files failed"
rm -Rf "${D}"/usr/lib/${PN}/readme
dodir /usr/share/doc/${PF}
cp -R "${S}"/readme/* "${D}"/usr/share/doc/${PF}
dosym /usr/share/doc/${PF} /usr/lib/${PN}/readme
newbin "${FILESDIR}"/set ${MY_P}
chown -R root:0 "${D}"
}
pkg_postinst() {
elog "If you wish to update ${PN} simply run:"
elog
elog "emerge ${PF}"
elog
}