Nmap Development mailing list archives
Re: Last call for smtp-open-relay.nse - help needed
From: Duarte Silva <duartejcsilva () gmail com>
Date: Wed, 3 Mar 2010 16:21:33 +0000
Hmm, I thought you always had to use the domain. I know on that one you do.
In the article the qmail author wrote http://cr.yp.to/smtp/vrfy.html it seems it isn't obligatory to use the domain. Taking your ideas and mashing them a bit, I think I will give the user the possibility to choose a domain to test the users with, and a domain for the EHLO command (as what happened to smtp-open-relay). If the user does not provide one the script will figure it out using the rDNS/provided hostname. If in the end we still got an IP address, there is also the possibility to use the domain from the EHLO command reply. What do you thing about that? On Wed, Mar 3, 2010 at 12:56 AM, David Fifield <david () bamsoftware com> wrote:
On Tue, Mar 02, 2010 at 06:45:46PM -0600, Ron wrote:On Tue, 2 Mar 2010 22:23:47 +0000 Duarte Silva <duartejcsilva () gmail com> wrote:VRFY test () xxx mb ca 550 5.1.1 <test () xxx mb ca>: Recipient address rejected: xxx.mb.ca VRFY yyy () xxx mb ca 252 2.0.0 yyy () xxx mb caHmm this is interesting. I should add a domain argument so that the script can perform tests like the ones mentioned above. The script currently doesn't take that into account because I didn't knew that it was possible to use the actual e-mail.Hmm, I thought you always had to use the domain. I know on that one you do. You can access the hostname through the 'nmap' object, so it might be enough to append @hostname to the names. That naturally assumes that the user running it typed in the hostname and not an ip range, though maybe the rDNS name would be enough?Yeah, maybe something like the http library does: --- Get a suitable hostname string from the argument, which may be either a -- string or a host table. local function get_hostname(host) if type(host) == "table" then return host.targetname or ( host.name ~= '' and host.name ) or host.ip else return host end end host.targetname is the name the user typed in, and host.name is the reverse DNS name. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: Last call for smtp-open-relay.nse - help needed, (continued)
- Re: Last call for smtp-open-relay.nse - help needed Ron (Mar 01)
- Message not available
- Message not available
- Re: Last call for smtp-open-relay.nse - help needed Duarte Silva (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed Duarte Silva (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed David Fifield (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed Duarte Silva (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed David Fifield (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed Ron (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed Duarte Silva (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed Ron (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed David Fifield (Mar 02)
- Re: Last call for smtp-open-relay.nse - help needed Duarte Silva (Mar 03)
- Re: Last call for smtp-open-relay.nse - help needed Ron (Mar 03)
- Re: Last call for smtp-open-relay.nse - help needed Fyodor (Mar 05)
- Re: Last call for smtp-open-relay.nse - help needed Duarte Silva (Mar 07)
- smtp-enum-users.nse David Fifield (Mar 12)
- Re: smtp-enum-users.nse Duarte Silva (Mar 14)
- Re: smtp-enum-users.nse David Fifield (Mar 16)
- Re: smtp-enum-users.nse Duarte Silva (Mar 17)
- Re: smtp-enum-users.nse David Fifield (Mar 17)