mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 03:00:57 +02:00
set: initial "stable" version, but still buggy
This commit is contained in:
parent
202d7145ad
commit
ce8bb256b2
4 changed files with 202 additions and 9 deletions
|
|
@ -1,3 +1,6 @@
|
|||
AUX set 41 SHA256 61fa527c1906be500005f480446cdfe04e45e48e9ce1a7415e90570ff9f74a27 SHA512 c517eef81963a486b3ef4e7a2d07c88ab3f6e85dc00ead372ee4a207a9e98b084da8dcb723762927322e159a3593bd8a8269613d63bb6ea07e381cdb682276f1 WHIRLPOOL 7b4e2eb82436b0397d8686e9401fe78d501855dd6f282f995baab524680b8b3585d9c05c49aa66ff318ab087aec5a319f2f2aeb839ce3a79850180afdee8d81d
|
||||
AUX set-4.7.2-ssmtp.patch 4232 SHA256 ab58471fd194fae202fcd78a291ebca0d047ccb9d82f3969bcb8656b8fb955ac SHA512 9d5d0ff70e0d1a7e3011da71f167884d29bff2f6a2c146c7dd2eb1cce1e8af433549d2d83fdf59cab1b09f1e8b90be3808cbc08800bd45f5b268d77f31de8a47 WHIRLPOOL b28c39ead62d314ee48e028f0713ebaabcc1f39c020e5d1bdfe51cbcc22a95a6b30e2081fbe8cc41a17058782eb290c957b8a0ab4af7e7d6d4779ecda0005fc0
|
||||
AUX set-ssmtp.patch 4332 SHA256 6ad5057bb384667c8c01f9130a704f104b95f4f82bf6b7f7a1af7c2dd671c319 SHA512 5ba0923b5e3fad0a47dd2030505ee2ed21c58d645b108e576f6bcd025fb94808429fb6a79838b44ea7ddacb22cf7ca2a98b10c1a979aef33fe22f699fc5a1975 WHIRLPOOL 9215ecbe2fb6372dc8c0717fecc7ca6704c49c02557552a7f2874301732f0712e4ab9cb44b5f79d1fe2436e730fa565cf1742cb2697ec8e39883441f5d7a25b0
|
||||
EBUILD set-9999.ebuild 2908 SHA256 49a5a8233126222b08a5dfb04e67ac411cd57486267438f749e06e15f008df4d SHA512 dc067c042a697fcc0aef4c18efd591ef7467d1edad1940b82a6064ddff621f7fac2aebf91c05a331f0b161eda2c7de1d725c69a00dbe0fa7c2e15d83b454c642 WHIRLPOOL 5fd58ef4b6c1b9be16113da869da25b7d05f122ecd9363ccf7474a0c93a572bd10a39451eb33035934387f19797eea51d39c8d6e99abd4d0f2517ee451e55306
|
||||
DIST set-4.7.2.tar.gz 41127721 SHA256 0ef01392eff66171970a5f303de5177aab3bca89c550ea93c7801fe281559558 SHA512 f7a596c6a362199c473febe20e1ba9034c022475c7999891d2ea0d09ccb1056fab12f6ae2e0bf4eeba2599648a0a4f7cfa71d88e79c3f1ece46482673613c477 WHIRLPOOL 82bf3b49d4762875abc276252d8da4380ff07afe8a8933e90d9a20f9f9964d25bdc80ab7bba47a2600d18d07e58f676c8771b34fce2af79d58382f43020413ce
|
||||
EBUILD set-4.7.2.ebuild 3169 SHA256 7893b355ab0829553422a91fd9d8aa6a39f5c970d448bdab1ae315e3e26e251d SHA512 7f757a6030cdf833fd34a0df86f394f434f30304b6e49789dac06554f5b16fb29801af1013469615628394cc3549b814c02eeb819f7aba46c882dda42e0a3630 WHIRLPOOL db9b4c98b1ae516f414b67beb10d698433642c3837163a34207cd2c9cc3998b1172ab39f7e747655311db7c97fae1104924ac3dd3980ff2a675aaf8ae26f70b4
|
||||
EBUILD set-9999.ebuild 3067 SHA256 0e820d6007ebca6ca2a84d485e241f575d428cbf40b9e11123bfd50f0440ee07 SHA512 ceb54e32421e6c9389fc5d903a1ede2d8aecf6018a2dc791d5057f8fb115c974df124178756b3181ec4ef1dd116b9f8b1e6342202a4e849f6d44e4f3ca97471b WHIRLPOOL c502f04b3751a100cd071db1fd6afaf8b9299bd6075f963ae406f52d4037fd12c53bc33b1040aa7db290c9972078cf6fe25ba1c01468c6c9be5e20eba5ebe353
|
||||
|
|
|
|||
74
net-analyzer/set/files/set-4.7.2-ssmtp.patch
Normal file
74
net-analyzer/set/files/set-4.7.2-ssmtp.patch
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
diff -urN social-engineer-toolkit-4.7.2.orig/src/phishing/smtp/client/smtp_client.py social-engineer-toolkit-4.7.2/src/phishing/smtp/client/smtp_client.py
|
||||
--- social-engineer-toolkit-4.7.2.orig/src/phishing/smtp/client/smtp_client.py 2013-03-18 06:10:24.000000000 +0800
|
||||
+++ social-engineer-toolkit-4.7.2/src/phishing/smtp/client/smtp_client.py 2013-05-16 11:56:27.343490205 +0800
|
||||
@@ -32,26 +32,13 @@
|
||||
if match:
|
||||
# if match and if line is flipped on continue on
|
||||
if line == ("SENDMAIL=ON"):
|
||||
- print_info("Sendmail is a Linux based SMTP Server, this can be used to spoof email addresses.")
|
||||
- print_info("Sendmail can take up to three minutes to start FYI.")
|
||||
- print_status("Sendmail is set to ON")
|
||||
- sendmail_choice = yesno_prompt(["1"], "Start Sendmail? [yes|no]")
|
||||
- # if yes, then do some good stuff
|
||||
- if sendmail_choice == "YES":
|
||||
- print_info("NOTE: Sendmail can take 3-5 minutes to start.")
|
||||
- if os.path.isfile("/etc/init.d/sendmail"):
|
||||
- subprocess.Popen("/etc/init.d/sendmail start", shell=True).wait()
|
||||
- # if not there then prompt user
|
||||
- if not os.path.isfile("/etc/init.d/sendmail"):
|
||||
- pause=raw_input("[!] Sendmail was not found. Install it and try again.")
|
||||
- sys.exit()
|
||||
- smtp = ("localhost")
|
||||
- port = ("25")
|
||||
- # Flip sendmail switch to get rid of some questions
|
||||
- sendmail=1
|
||||
- # just throw user and password to blank, needed for defining below
|
||||
- user=''
|
||||
- pwd=''
|
||||
+ print_info("You need to configure EMAIL_PROVIDER and /etc/ssmtp/* paramters manually before")
|
||||
+ print_info("running this option")
|
||||
+ # Flip sendmail switch to get rid of some questions
|
||||
+ sendmail=1
|
||||
+ # just throw user and password to blank, needed for defining below
|
||||
+ user=''
|
||||
+ pwd=''
|
||||
|
||||
# Search for SMTP provider we will be using
|
||||
match1=re.search("EMAIL_PROVIDER=", line)
|
||||
diff -urN social-engineer-toolkit-4.7.2.orig/src/phishing/smtp/client/smtp_web.py social-engineer-toolkit-4.7.2/src/phishing/smtp/client/smtp_web.py
|
||||
--- social-engineer-toolkit-4.7.2.orig/src/phishing/smtp/client/smtp_web.py 2013-03-18 06:10:24.000000000 +0800
|
||||
+++ social-engineer-toolkit-4.7.2/src/phishing/smtp/client/smtp_web.py 2013-05-16 11:57:23.295494199 +0800
|
||||
@@ -42,25 +42,14 @@
|
||||
if match:
|
||||
# if match and if line is flipped on continue on
|
||||
if line == ("SENDMAIL=ON"):
|
||||
- print_info("Sendmail is a Linux based SMTP Server, this can be used to spoof email addresses.")
|
||||
- print_info("Sendmail can take up to three minutes to start")
|
||||
- print_status("Sendmail is set to ON")
|
||||
- sendmail_choice = yesno_prompt(["1"], "Start Sendmail? [yes|no]")
|
||||
- # if yes, then do some good stuff
|
||||
- if sendmail_choice == "YES":
|
||||
- print_info("Sendmail can take up to 3-5 minutes to start")
|
||||
- if os.path.isfile("/etc/init.d/sendmail"):
|
||||
- subprocess.Popen("/etc/init.d/sendmail start", shell=True).wait()
|
||||
- if not os.path.isfile("/etc/init.d/sendmail"):
|
||||
- pause = raw_input("[!] Sendmail was not found. Try again and restart.")
|
||||
- sys.exit()
|
||||
- smtp = ("localhost")
|
||||
- port = ("25")
|
||||
- # Flip sendmail switch to get rid of some questions
|
||||
- sendmail=1
|
||||
- # just throw user and password to blank, needed for defining below
|
||||
- user=''
|
||||
- pwd=''
|
||||
+ asdf
|
||||
+ print_info("You need to configure EMAIL_PROVIDER and /etc/ssmtp/* paramters manually before")
|
||||
+ print_info("running this option")
|
||||
+ # Flip sendmail switch to get rid of some questions
|
||||
+ sendmail=1
|
||||
+ # just throw user and password to blank, needed for defining below
|
||||
+ user=''
|
||||
+ pwd=''
|
||||
|
||||
# Search for SMTP provider we will be using
|
||||
match1=re.search("EMAIL_PROVIDER=", line)
|
||||
111
net-analyzer/set/set-4.7.2.ebuild
Normal file
111
net-analyzer/set/set-4.7.2.ebuild
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: Exp $
|
||||
|
||||
EAPI="5"
|
||||
MY_P=${PN/set/social-engineering-toolkit}
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit multilib eutils python
|
||||
|
||||
SRC_URI="https://codeload.github.com/trustedsec/${MY_P}/tar.gz/${PV} -> set-${PV}.tar.gz"
|
||||
DESCRIPTION="A social engineering framework"
|
||||
HOMEPAGE="https://www.trustedsec.com/downloads/social-engineer-toolkit/"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm x86"
|
||||
IUSE="+ettercap +wireless"
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/$(get_libdir)/set/src/payloads/ratte/ratteserver
|
||||
usr/$(get_libdir)/set/src/payloads/set_payloads/shell.linux
|
||||
"
|
||||
|
||||
# blocker on ruby-1.8.7:
|
||||
# http://spool.metasploit.com/pipermail/framework/2008-September/003671.html
|
||||
RDEPEND="virtual/jdk
|
||||
net-analyzer/metasploit
|
||||
dev-python/pexpect
|
||||
net-misc/wget
|
||||
dev-python/beautifulsoup:python-2
|
||||
dev-python/pymssql
|
||||
dev-python/pyopenssl
|
||||
ettercap? ( net-analyzer/ettercap )
|
||||
wireless? ( net-wireless/aircrack-ng
|
||||
net-analyzer/dsniff )
|
||||
|| ( mail-mta/ssmtp
|
||||
mail-mta/postfix
|
||||
mail-mta/sendmail )"
|
||||
DEPEND=""
|
||||
|
||||
#The upstream can't spell it's own tool
|
||||
#S=${WORKDIR}/${MY_P}-${PV}
|
||||
S=${WORKDIR}/social-engineer-toolkit-${PV}
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_convert_shebangs -r 2 .
|
||||
|
||||
if has_version mail-mta/ssmtp
|
||||
then
|
||||
epatch "${FILESDIR}"/${P}-ssmtp.patch
|
||||
fi
|
||||
if has_version mail-mta/postfix
|
||||
then
|
||||
sed -e 's:/etc/init.d/sendmail:/etc/init.d/postfix:g' \
|
||||
-i src/phishing/smtp/client/smtp_web.py \
|
||||
src/phishing/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/metasploit/:' -i config/set_config
|
||||
|
||||
# fix paths for airbase, dnsspoof
|
||||
sed -e 's|/usr/local/sbin/|/usr/sbin/|' -i config/set_config
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# We have global agreement
|
||||
touch "${S}"/src/agreement4
|
||||
|
||||
# should be as simple as copying everything into the target...
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
cp -R "${S}"/* "${D}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
|
||||
rm -Rf "${D}"/usr/$(get_libdir)/${PN}/readme
|
||||
|
||||
#we don't need a dynamically compiled wget, we have that
|
||||
rm -rf "${D}"/usr/$(get_libdir)/set/src/webattack/web_clone/linux
|
||||
#especially not for MacOSX
|
||||
rm -rf "${D}"/usr/$(get_libdir)/set/src/webattack/web_clone/osx
|
||||
|
||||
#remove more broken staticly compiled crap
|
||||
rm -rf "${D}"/usr/$(get_libdir)/set/src/wireless/airbase-ng
|
||||
rm -rf "${D}"/usr/$(get_libdir)/set/src/wireless/airmon-ng
|
||||
|
||||
dodir /usr/share/doc/${PF}
|
||||
cp -R "${S}"/readme/* "${D}"/usr/share/doc/${PF}
|
||||
dosym /usr/share/doc/${PF} /usr/$(get_libdir)/${PN}/readme
|
||||
|
||||
newsbin "${FILESDIR}"/set ${MY_P}
|
||||
|
||||
chown -R root:0 "${D}"
|
||||
}
|
||||
|
||||
#It's just to buggy that python_mod_optimize doesn't help.
|
||||
#pkg_postinst() {
|
||||
# python_mod_optimize /usr/$(get_libdir)/set/src/core/set.py \
|
||||
# /usr/$(get_libdir)/set/config/update_config.py \
|
||||
# /usr/$(get_libdir)/set/src/phishing/smtp/client/smtp_web.py
|
||||
#}
|
||||
|
||||
#pkg_postrm() {
|
||||
# Set is not coded properly.
|
||||
# We use the workaround below to remove set_config.py and other pyc/pyo files
|
||||
# rm -rf "/usr/$(get_libdir)/set"
|
||||
#}
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: Exp $
|
||||
|
||||
EAPI="4"
|
||||
MY_P=${PN/set/social_engineering_toolkit}
|
||||
EAPI="5"
|
||||
MY_P=${PN/set/social-engineering-toolkit}
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
|
|
@ -16,8 +16,8 @@ HOMEPAGE="https://www.trustedsec.com/downloads/social-engineer-toolkit/"
|
|||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="ettercap"
|
||||
KEYWORDS=""
|
||||
IUSE="+ettercap +wireless"
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/$(get_libdir)/set/src/payloads/ratte/ratteserver
|
||||
|
|
@ -34,6 +34,8 @@ RDEPEND="virtual/jdk
|
|||
dev-python/pymssql
|
||||
dev-python/pyopenssl
|
||||
ettercap? ( net-analyzer/ettercap )
|
||||
wireless? ( net-wireless/aircrack-ng
|
||||
net-analyzer/dsniff )
|
||||
|| ( mail-mta/ssmtp
|
||||
mail-mta/postfix
|
||||
mail-mta/sendmail )"
|
||||
|
|
@ -51,7 +53,7 @@ src_prepare() {
|
|||
|
||||
if has_version mail-mta/ssmtp
|
||||
then
|
||||
epatch "${FILESDIR}"/set-ssmtp.patch
|
||||
epatch "${FILESDIR}"/${P}-ssmtp.patch
|
||||
fi
|
||||
if has_version mail-mta/postfix
|
||||
then
|
||||
|
|
@ -62,6 +64,9 @@ src_prepare() {
|
|||
# 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/metasploit/:' -i config/set_config
|
||||
|
||||
# fix paths for airbase, dnsspoof
|
||||
sed -e 's|/usr/local/sbin/|/usr/sbin/|' -i config/set_config
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
@ -98,8 +103,8 @@ src_install() {
|
|||
# /usr/$(get_libdir)/set/src/phishing/smtp/client/smtp_web.py
|
||||
#}
|
||||
|
||||
pkg_postrm() {
|
||||
#pkg_postrm() {
|
||||
# Set is not coded properly.
|
||||
# We use the workaround below to remove set_config.py and other pyc/pyo files
|
||||
rm -rf "/usr/$(get_libdir)/set"
|
||||
}
|
||||
# rm -rf "/usr/$(get_libdir)/set"
|
||||
#}
|
||||
|
|
|
|||
Loading…
Reference in a new issue