mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
set: version bump and fix 9999
This commit is contained in:
parent
126aaec050
commit
35f4d63919
4 changed files with 164 additions and 19 deletions
|
|
@ -1,9 +1,11 @@
|
|||
AUX set-5.3.4-ssmtp.patch 4285 SHA256 7bc8887d11ad3c44b1bf392b03416abbc658ac65e2e3618daf8e90ead6c55575 SHA512 135e02854c14dc8311fd662c48abd3e41d82c672d753b76983d03c4dd075d54e212e678011be9262790e56246b341dd615e95830b9d993d2f05c953c8ace31e4 WHIRLPOOL be7a3d80ef5ed2a734a4830a76d7953d3fca83924a2701bbda43d35c18d5ee2a0ed3c6e7b22ad6eabd550f0effefc2ee39430c6a6ea79566b17bf3f99f47db9c
|
||||
AUX set-9999-ssmtp.patch 4317 SHA256 640dac5e2cfc205e0a252a84b34980666ccdab814d235525def4b7b6806c4857 SHA512 aa460c389f70e07adf26779ddb233d04248287993e0a30c5aa00621f1bb5ae8f13f264746d620e9c5a99e170240bf87631b6cb7191f038cf6da0fa343369b2db WHIRLPOOL 7683c02d6d7940ed4a2928699db3b2b5de83431e50549ce46f758f28533d740ee9933e344356974689c885b56f8121a97447493a9d8c630ac002a791f445240d
|
||||
AUX set-9999-ssmtp.patch 4672 SHA256 edf509df2c9ec4fc8b1ad13ee7c8b21e452f23b4779295b9724113ad790570a4 SHA512 7a966376555fbb8cb428482fb27a858aa2f952e06d9ab22d9f7c4d40c36c68c6a8c60cbaa186c7cb9a49272a0c9008346d3659e7bf492895337cf78d3eb7ec4b WHIRLPOOL 8a6be9de1f457e2745df0973d359a70d454c31607adc8948fd957ed07bff3f952c53d734639fc60ba805db685095b0c5ba7690e7fe2f56d55e2197c8e81c4cc2
|
||||
AUX set-automate 51 SHA256 e6fef5da3610e4231141af63178efb7c7f6819712a62302b896f08b410509bfc SHA512 4125c3c2c8ec754ce4be16df1d9730e85b7b664dc57c35f1e53d0f9f34439cd910048151e209b7d0d9e6d7c54d09c619bd2eaba1cc308316673d87749f60c4a3 WHIRLPOOL 1e1fa13d4c3e234bea6823294f00184adf07d55af151c6eaed1b7c1d7486a64960f8bbdbd6fd29b8f90071b6caad55dcc0db190a1dcbea605bcca0fe2aeb0524
|
||||
AUX set-proxy 48 SHA256 c03e06914ed7d36fe363d41cf93faff6bd3778200494f609d548af538596fb1e SHA512 17c4c1078c1bd12bbb79d500d61499ab03b7839bc15bbe7d94786821447b8623036698cb0290a211e84033d9ac438c9c4ad68565977ad43f432073354cf1d83b WHIRLPOOL 0773437917d545371c9826b7c1cec9e8b7dad075a7517eb2ff93fdbc8787ce8f4ac4978109e3649e65721f38c0d2996ab34e37491509a6eaffc178968a561fa5
|
||||
AUX set-web 46 SHA256 9843a8cebec816daa53953b2addb3249a31a8aaecbf25a15fa114176878cb811 SHA512 817f1cc757b9930cf5990651e42d2ebc308dd059d9ee49f8687ddadc6d97780f7c06c6cc7b904a4cb85ab3ada4a97c765bdccfd3e7d2d371dfdf239a600cee98 WHIRLPOOL 41e9c40f7d468527fa50fa2d1784806dd89eb155b2c613aaa66f64ed0b5d224dcfd270d8cb0f5eed04439bf980242058767bd4d4c35dec57bd14865d8fa71abe
|
||||
AUX setoolkit 48 SHA256 27cd5e32319101e551d5a901b324e4cc44b530bfecb8de031f4fa2c13ee078ea SHA512 77629aaf259730f914363a9a323ba0a4183038f9acaee6fd76572fd49d28a69bde21e1551d57a6c9b5854c5b5dc84daa9bf06a13190b44474c187960ff2a0b5a WHIRLPOOL 6e958454102fac4c717780c98c18cabd77f4a65f770338b429cd6b3ada897ff6b1fc254d03508e8d2a6dd0ce86c4c3b4bb04d10f09546509341dbcdf81d8b426
|
||||
DIST set-5.3.4.tar.gz 43434794 SHA256 3431b0a34fc9c32616e675b279c95ce4ed399081434217796ebd5c53125e3162 SHA512 609d22e4838024c9980693fbcd2cf00868be3ea896259fe5ae087882ede4d7599d7de33c85e25fcb8587ec49dbf9a1f2df3156806b85738a59459f9f82edce08 WHIRLPOOL e1943723e4645cc7e6d1a97430228b3b3e848fc803d39f8314b09ecd09a1466211517e3d96b34873f1fac88e6f272721651ce8d9b61a371a5d61640aea073814
|
||||
DIST set-5.4.8.tar.gz 41903976 SHA256 5db5663a533663a344f28b4cff7ee40a3410a7d1106de1a61d49635fc068630a SHA512 7f580adb852df736f6def4851da5ca50c6dd702f48c1fa679c75ba58c4a92b1576367121c6d8ae1957a4cfdcca506cc0e30512cc2c3a09a6743103d5788a1ced WHIRLPOOL ed292cbcdad06653b11cbb60b6d8cb7aec7eb1323def937ff3cb66d2f4bdf2dcf8689cdba94ebc523afabb9eb3c0af6daedc49024d34031b372c3b540faf1cbc
|
||||
EBUILD set-5.3.4.ebuild 3297 SHA256 8722a5ff6bc9372f98830a26a4451aa452d043fb790bfed9d80449d80a5f07fb SHA512 c86f5e6be2c7a82185506b0eee3c153fbf2b11394a79c63c261b77da683f2961a92530be72e7dc0d92bc1ef7014de7c740fb3c17b230dbc6937f304f46aaae59 WHIRLPOOL c6276cec9efab85f90c22e3f1b66232b40d0aed8fd0c4013c00e37ff2bb44f8ed369b2e38c4eb33efaedf320dadcb35d65c787910d5c66ac689ab5f37bc5f7cc
|
||||
EBUILD set-9999.ebuild 3272 SHA256 6fd7cc622f18f6c04c81279e003f06f936f8dd02b2f96d3c2c442716f5abdc4e SHA512 0c47d3f73b09465c11a277113d4456a2e32097426911ec86ca3ea93a7ba6ddaee13485ecf3697c0218b8bd8ffbc33f59a5b1adf303e8ef9430cec771a938fa16 WHIRLPOOL 15569f57dae1407af2f91971b74dfd73d77defb2e432d4a8af2abd9d46072d3cdf6bc5265f12cbd0488ffdf1f320a4824217ee13f51e9fe64a677991922dc918
|
||||
EBUILD set-5.4.8.ebuild 3452 SHA256 8c6e135ee745cfedde33ee82ba4c9c29692d6e47bda85373d2d60b7d3dfa02a2 SHA512 1bf631f4fe0fc5ceae75e1d63f1c42d36c31478bf40664f5bc0bdea5a2ee5b4e31cca090a117b90c67ae32846c02e5591259da9dbb1d3850493b7031c5a6c82a WHIRLPOOL c0b21ed7e97969ce09b54a47300cf0f1ecedd2751702bef05ea26ddbacfddfef090bbb76efd8b481e461eeb054a34981817740862148a6d4ccb2b844cafa35a1
|
||||
EBUILD set-9999.ebuild 3445 SHA256 51b56a7b0ef345b70b2cd8345074af05c055971729c5f56fb46f6fa82360ebb7 SHA512 205f40ebf9f539ba6e4621c51c75dde020fbf64da31f29960a205ee44314feba0145c727692469d43b58065ddb6e16c2a4eb23ebdf1fcc521efd6f297a68e513 WHIRLPOOL 76b79975751213d9ac6b711e26ce45331d38c9b7c3f3b0c4f120ee5cd3fcfe44143b2c60239573d0570fb59195318b88f29861aa2b684253f0a2a32f79a3eb61
|
||||
|
|
|
|||
|
|
@ -1,7 +1,21 @@
|
|||
diff -Naur social-engineer-toolkit-5.2-orig/src/phishing/smtp/client/smtp_client.py social-engineer-toolkit-5.2/src/phishing/smtp/client/smtp_client.py
|
||||
--- social-engineer-toolkit-5.2-orig/src/phishing/smtp/client/smtp_client.py 2013-06-29 11:56:51.396385491 -0400
|
||||
+++ social-engineer-toolkit-5.2/src/phishing/smtp/client/smtp_client.py 2013-06-29 11:58:48.959159533 -0400
|
||||
@@ -32,26 +32,13 @@
|
||||
From e02a0b6cf7644c47bb8ae85c193f6c88cbad0e76 Mon Sep 17 00:00:00 2001
|
||||
From: "Rick Farina (Zero_Chaos)" <zerochaos@gentoo.org>
|
||||
Date: Mon, 19 May 2014 11:55:45 -0400
|
||||
Subject: [PATCH] fix ssmtp support
|
||||
|
||||
starting sendmail from inside set is just odd, especially when it is
|
||||
entirely pointless on most linux distros. kill it and leave a note
|
||||
telling users to ensure their mta is sane.
|
||||
---
|
||||
src/phishing/smtp/client/smtp_client.py | 27 +++++++--------------------
|
||||
src/phishing/smtp/client/smtp_web.py | 26 +++++++-------------------
|
||||
2 files changed, 14 insertions(+), 39 deletions(-)
|
||||
|
||||
diff --git a/src/phishing/smtp/client/smtp_client.py b/src/phishing/smtp/client/smtp_client.py
|
||||
index 75792a1..422289a 100644
|
||||
--- a/src/phishing/smtp/client/smtp_client.py
|
||||
+++ b/src/phishing/smtp/client/smtp_client.py
|
||||
@@ -32,26 +32,13 @@ for line in sendmail_file:
|
||||
if match:
|
||||
# if match and if line is flipped on continue on
|
||||
if line == ("SENDMAIL=ON"):
|
||||
|
|
@ -35,10 +49,11 @@ diff -Naur social-engineer-toolkit-5.2-orig/src/phishing/smtp/client/smtp_client
|
|||
|
||||
# Search for SMTP provider we will be using
|
||||
match1=re.search("EMAIL_PROVIDER=", line)
|
||||
diff -Naur social-engineer-toolkit-5.2-orig/src/phishing/smtp/client/smtp_web.py social-engineer-toolkit-5.2/src/phishing/smtp/client/smtp_web.py
|
||||
--- social-engineer-toolkit-5.2-orig/src/phishing/smtp/client/smtp_web.py 2013-06-29 11:56:51.396385491 -0400
|
||||
+++ social-engineer-toolkit-5.2/src/phishing/smtp/client/smtp_web.py 2013-06-29 11:59:30.982915144 -0400
|
||||
@@ -38,25 +38,13 @@
|
||||
diff --git a/src/phishing/smtp/client/smtp_web.py b/src/phishing/smtp/client/smtp_web.py
|
||||
index ba75e60..2b89f6a 100644
|
||||
--- a/src/phishing/smtp/client/smtp_web.py
|
||||
+++ b/src/phishing/smtp/client/smtp_web.py
|
||||
@@ -38,25 +38,13 @@ for line in sendmail_file:
|
||||
if match:
|
||||
# if match and if line is flipped on continue on
|
||||
if line == ("SENDMAIL=ON"):
|
||||
|
|
@ -58,16 +73,19 @@ diff -Naur social-engineer-toolkit-5.2-orig/src/phishing/smtp/client/smtp_web.py
|
|||
- port = ("25")
|
||||
- # Flip sendmail switch to get rid of some questions
|
||||
- sendmail=1
|
||||
- # just throw user and password to blank, needed for defining below
|
||||
- # just throw provideruser and password to blank, needed for defining below
|
||||
- provideruser=''
|
||||
- pwd=''
|
||||
+ print_info("You need to configure EMAIL_PROVIDER and /etc/ssmtp/* parameters 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
|
||||
+ # just throw provideruser and password to blank, needed for defining below
|
||||
+ provideruser=''
|
||||
+ pwd=''
|
||||
|
||||
# Search for SMTP provider we will be using
|
||||
match1=re.search("EMAIL_PROVIDER=", line)
|
||||
--
|
||||
1.8.5.5
|
||||
|
||||
|
|
|
|||
119
net-analyzer/set/set-5.4.8.ebuild
Normal file
119
net-analyzer/set/set-5.4.8.ebuild
Normal file
|
|
@ -0,0 +1,119 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
inherit multilib eutils python
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/trustedsec/social-engineer-toolkit.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/trustedsec/social-engineer-toolkit/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
MY_P=${P/set/social-engineer-toolkit}
|
||||
S=${WORKDIR}/${MY_P}
|
||||
fi
|
||||
|
||||
DESCRIPTION="A social engineering framework"
|
||||
HOMEPAGE="https://www.trustedsec.com/downloads/social-engineer-toolkit/"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
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=""
|
||||
|
||||
|
||||
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}"/${PN}-5.3.4-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,airmon-ng}
|
||||
#remove other unnecessary files
|
||||
rm -rf "${D}"/usr/$(get_libdir)/set/{setup.py,set-update}
|
||||
|
||||
dodir /usr/share/doc/${PF}
|
||||
cp -R "${S}"/readme/* "${D}"/usr/share/doc/${PF}
|
||||
dosym /usr/share/doc/${PF} /usr/$(get_libdir)/${PN}/readme
|
||||
|
||||
dosbin "${FILESDIR}"/{setoolkit,set-automate,set-proxy,set-web}
|
||||
#make all tools start with set-<name>
|
||||
dosym /usr/sbin/setoolkit /usr/sbin/set-toolkit
|
||||
dosym /usr/sbin/setoolkit /usr/sbin/se-toolkit
|
||||
|
||||
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"
|
||||
#}
|
||||
|
|
@ -1,22 +1,29 @@
|
|||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P=${P/set/social-engineer-toolkit}
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
inherit git-2 multilib eutils python
|
||||
inherit multilib eutils python
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/trustedsec/social-engineer-toolkit.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/trustedsec/social-engineer-toolkit/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
MY_P=${P/set/social-engineer-toolkit}
|
||||
S=${WORKDIR}/${MY_P}
|
||||
fi
|
||||
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/trustedsec/social-engineer-toolkit.git"
|
||||
DESCRIPTION="A social engineering framework"
|
||||
HOMEPAGE="https://www.trustedsec.com/downloads/social-engineer-toolkit/"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="+ettercap +wireless"
|
||||
|
||||
QA_PREBUILT="
|
||||
|
|
@ -41,7 +48,6 @@ RDEPEND="virtual/jdk
|
|||
mail-mta/sendmail )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue