
Nmap Development mailing list archives
Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25
From: Tom Sellers <nmap () fadedcode net>
Date: Sun, 04 Oct 2009 11:20:23 -0500
Tom Sellers wrote:
Patrick Donnelly wrote:Your patch was nearly correct. The problem was that the connected socket id (udata->nsiod) was replaced by a new one (because the general case is we are making a brand new connection). nsock_reconnect_ssl requires a socket already open. I have added a new socket method, reconnect_ssl, that will allow you to remake the socket with ssl. The patch and a test script are attached. If no one has any complaints I'll apply this patch sometime in the next couple days.Patrick, Thanks very much for looking at and working on this. The codeyou wrote works great! I will complete my modifications to the ssl-cert.nsescript and submit it for review. Thanks again!
I have modified the ssl-cert.nse script so that it supports grabbing SSL cert information from TLS enabled SMTP and SMTP Submission services. The changes depend upon the code updates made by Patrick. I have attached both a copy of the entire ssl-cert.nse as well as a diff file. Please review the changes for inclusion. Thanks again! Tom
Attachment:
ssl-cert.nse
Description:
Attachment:
support.tls_ssl-cert.diff
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Tom Sellers (Oct 01)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 kx (Oct 01)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Tom Sellers (Oct 02)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 SM (Oct 02)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Tom Sellers (Oct 02)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Tom Sellers (Oct 03)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Patrick Donnelly (Oct 04)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Tom Sellers (Oct 04)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Tom Sellers (Oct 04)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Fyodor (Oct 04)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Patrick Donnelly (Oct 06)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 Patrick Donnelly (Oct 04)
- Re: NSE: Need advice on pulling SSL cert used for TLS connection over SMTP port 25 kx (Oct 01)