Update smtpdowngrade.rb

This commit is contained in:
Mariusz 2019-01-29 14:22:30 +01:00 committed by GitHub
parent 12413b1cba
commit 1fb2ebb5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ class SMTPDowngrade < BetterCap::Proxy::TCP::Module
def smtp_parse_request(event)
return nil if not event.data
if event.data =~ /^STARTTLS\s*\r\n/
if event.data =~ /^STARTTLS.*/
BetterCap::Logger.info "[#{'SMTP Downgrade'.green}] Intercepted STARTTLS command."
@respondwith = "454 4.7.0 TLS not available due to local problem\r\n"