New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user-specified EHLO domains in SMTP STARTTLS #1258

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
1 participant
@gwire

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 example.com" is sent regardless of smtp.domain being specified.

The hardcoded "example.com" 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 "nmap.scanme.org")

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