pentoo-overlay/net-analyzer/set/files/set-4.7.2-ssmtp.patch
2013-06-08 05:37:05 +00:00

73 lines
4.1 KiB
Diff

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,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)