Nmap Development mailing list archives

update to SMTPcommands.nse


From: "DePriest, Jason R." <jrdepriest () gmail com>
Date: Mon, 6 Oct 2008 21:54:54 +0100

Fixed it to normalize the line endings before replacing them with
commas and I have it remove extra spaces.

I discovered the issue when fingerprinting this mail server
214-2.0.0 This is sendmail version 8.13.1
214-2.0.0 Topics:
214-2.0.0       HELO    EHLO    MAIL    RCPT    DATA
214-2.0.0       RSET    NOOP    QUIT    HELP    VRFY
214-2.0.0       EXPN    VERB    ETRN    DSN     AUTH
214-2.0.0       STARTTLS
214-2.0.0 For more info use "HELP <topic>".
214-2.0.0 To report bugs in the implementation send email to
214-2.0.0       sendmail-bugs () sendmail org.
214-2.0.0 For local information send email to Postmaster at your site.
214 2.0.0 End of HELP info

The output was really ugly[1].  It is still ugly[2], but less so.

I am formulating a way to clean it up more.  I need a generic way to
detect all of the numbers that may appear at the beginning of a line
and figure out what words in all CAPS are commands and which are just
informational.

-Jason

[1]  PORT   STATE SERVICE VERSION
25/tcp open  smtp    Sendmail 8.13.1/8.13.1
|  SMTPcommands: EHLO localhost.localdomain Hello
localhost.localdomain [127.0.0.1], pleased to meet you,
ENHANCEDSTATUSCODES, PIPELINING, 8BITMIME, SIZE, DSN, ETRN, AUTH
GSSAPI DIGEST-MD5 CRAM-MD5, DELIVERBY, 250 HELP
|_ HELP 2.0.0 This is sendmail version 8.13.1, , 2.0.0 Topics:, ,
2.0.0         HELO    EHLO    MAIL    RCPT    DATA, , 2.0.0   RSET
NOOP    QUIT    HELP     VRFY, , 2.0.0   EXPN    VERB    ETRN    DSN
  AUTH, , 2.0.0   STARTTLS, , 2.0.0 For more info use "HELP <topic>".,
, 2.0.0 To report bugs in the implementation send email to, , 2.0.0
     sendmail-bugs () sendmail org., , 2.0.0 For local information send
email to Postmaster at your site., , 2.0.0 End of HELP info

[2]  PORT   STATE SERVICE VERSION
25/tcp open  smtp    Sendmail 8.13.1/8.13.1
|  SMTPcommands: EHLO localhost.localdomain Hello
localhost.localdomain [127.0.0.1], pleased to meet you,
ENHANCEDSTATUSCODES, PIPELINING, 8BITMIME, SIZE, DSN, ETRN, AUTH
GSSAPI DIGEST-MD5 CRAM-MD5, DELIVERBY, 250 HELP
|_ HELP 2.0.0 This is sendmail version 8.13.1, 2.0.0 Topics:, 2.0.0
HELO EHLO MAIL RCPT DATA, 2.0.0 RSET NOOP QUIT HELP VRFY, 2.0.0 EXPN
VERB ETRN DSN AUTH, 2.0.0 STARTTLS, 2.0.0 For more info use "HELP
<topic>"., 2.0.0 To report bugs in the implementation send email to,
2.0.0 sendmail-bugs () sendmail org., 2.0.0 For local information send
email to Postmaster at your site., 2.0.0 End of HELP info

Attachment: SMTPcommands.nse
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: