Allow user-specified EHLO domains in SMTP STARTTLS #1258

wants to merge 1 commit into


None yet
1 participant

gwire commented Jul 1, 2018

The web documentation for ssl-enum-ciphers implies that a user can specify an EHLO hostname on the command line as a script argument:

 nmap -sV --script ssl-enum-ciphers --script-args smtp.domain=foo.example -p 25 bar.example

But currently, "EHLO" is sent regardless of smtp.domain being specified.

The hardcoded "" is replaced by smtp.get_domain() allowing the EHLO hostname to be specified as an arg, or to fall back to the default in smtp.lua (currenly "")

use smtp.get_domain() for user-specified EHLO host
if no EHLO hostname is supplied, then fall-back to the default in smtp.lua

@nmap-bot nmap-bot closed this in 33f0f05 Jul 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment