mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-18 21:00:56 +02:00
set: smtp fix
This commit is contained in:
parent
03a69bc7c3
commit
09036f6d2b
3 changed files with 71 additions and 7 deletions
|
|
@ -1,2 +1,3 @@
|
|||
AUX set 41 SHA256 61fa527c1906be500005f480446cdfe04e45e48e9ce1a7415e90570ff9f74a27 SHA512 c517eef81963a486b3ef4e7a2d07c88ab3f6e85dc00ead372ee4a207a9e98b084da8dcb723762927322e159a3593bd8a8269613d63bb6ea07e381cdb682276f1 WHIRLPOOL 7b4e2eb82436b0397d8686e9401fe78d501855dd6f282f995baab524680b8b3585d9c05c49aa66ff318ab087aec5a319f2f2aeb839ce3a79850180afdee8d81d
|
||||
EBUILD set-9999.ebuild 2314 SHA256 0c46c5ba2b5a92b3cb34d869b921bc9170d17e5bea1b79a79b45f2c6eab3e7a6 SHA512 afc86818f7fc1b9dba4e1cca29637c63beaccd11819a01cb2395b4013ea2044a8a316aec51a90deccc86e79f06be133f2dc73ccd6230613e42cd61cfa8408c43 WHIRLPOOL 38ec9160fcaa341a0ce74db4c8d29957c6e0cef87984404d5885b017c2fb254a6472164b8bc91aba8e3f0d5739665704b310e94f37d3df19ff0ab9ded97f2c37
|
||||
AUX set-ssmtp.patch 3671 SHA256 94acad1ecc24d29a5609a48ab9738319fe396a76c8725e15ebdde8eba6e31b2f SHA512 46e800a05c5eb1f68811ddd4feefd8d1b80370ccae1e69ba9972faf308ebfa6e862376899f71bc97a45a757903f746f9e0eb0d9b51487074775f893aadec2085 WHIRLPOOL f2363a9a2c8dbd9cca03c1b8105ef04d755172f6c55c393f715dc4bde812ca117d5a6ef75358255c2e0ab088601b3799e58f918030cb3582f47abcdf427d7351
|
||||
EBUILD set-9999.ebuild 2411 SHA256 25267d1ebd9d679fda4064cd96cf8ec199b9bd3e4917c26863a3ffd5dd7ad7ae SHA512 65db0f8021d536ef1dc3f82d10cffe61203f3b1249f4934fe1e5bd25832fee88345c768637660c6e38d2074a0c7d038ed0e81d9a91f81e8f8f078c792566f1d6 WHIRLPOOL 511b7766af2c4b834e3ea4dbcd1a08cbfdbd75633c2a966bb911f9006b092a8acd4d0d7ba770cfc253441ffa6f3992242635a6b729f637d6aa236180b867edc3
|
||||
|
|
|
|||
59
net-analyzer/set/files/set-ssmtp.patch
Normal file
59
net-analyzer/set/files/set-ssmtp.patch
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
--- src/phishing/smtp/client/smtp_client.py.orig 2013-01-18 09:21:39.239828665 +0800
|
||||
+++ src/phishing/smtp/client/smtp_client.py 2013-01-18 09:29:05.109850244 +0800
|
||||
@@ -38,17 +38,10 @@
|
||||
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
|
||||
+ 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=''
|
||||
--- src/phishing/smtp/client/smtp_web.py.orig 2013-01-18 09:26:51.000000000 +0800
|
||||
+++ src/phishing/smtp/client/smtp_web.py 2013-01-18 09:25:42.797840452 +0800
|
||||
@@ -42,25 +42,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")
|
||||
- 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=''
|
||||
+ 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)
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
EAPI="4"
|
||||
MY_P=${PN/set/social_engineering_toolkit}
|
||||
|
||||
inherit git-2 multilib
|
||||
inherit git-2 multilib eutils
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/trustedsec/social-engineer-toolkit.git"
|
||||
DESCRIPTION="A social engineering framework"
|
||||
|
|
@ -29,19 +29,23 @@ RDEPEND="virtual/jdk
|
|||
net-misc/wget
|
||||
dev-python/pyopenssl
|
||||
ettercap? ( net-analyzer/ettercap )
|
||||
|| ( mail-mta/postfix
|
||||
mail-mta/sendmail
|
||||
mail-mta/ssmtp )"
|
||||
|| ( mail-mta/ssmtp
|
||||
mail-mta/postfix
|
||||
mail-mta/sendmail )"
|
||||
DEPEND=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() {
|
||||
if has_version mail-mta/ssmtp
|
||||
then
|
||||
epatch "${FILESDIR}"/set-ssmtp.patch
|
||||
fi
|
||||
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
|
||||
-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
|
||||
|
|
|
|||
Loading…
Reference in a new issue