On Wed, Sep 17, 2003 at 02:15:29PM +0100, James Davis wrote: > I altered the code in sendmail_redirection.nasl to aid debugging to > > b = smtp_recv_banner(socket:soc); > domain = ereg_replace(pattern:"[^\.]*\.(.*)", > string:get_host_name(), > replace:"\1"); > s = string("HELO ", domain, "\r\n"); > send(socket:soc, data:s); > r0 = recv_line(socket:soc, length:1024); > s = string("MAIL FROM: root@", get_host_name(), "\r\n"); > send(socket:soc, data:s); > r1 = recv_line(socket:soc, length:1024); > s = string("RCPT TO: root@host1@", get_host_name(), "\r\n"); > send(socket:soc, data:s); > r2 = recv_line(socket:soc, length:255); > if(ereg(pattern:"^250 .*", string:r2))security_warning(port: port, data:r0); > close(soc); > > > and by cycling the data through r0,r1 r2 I get > > r0: 220 smtpserver.network ESMTP Sendmail 8.11.6/8.11.6; Wed, 17 ;;p 2003 13:56:29 +0100 How long does the banner take to appear when you manually connect to port 25 from the host running nessusd ?
This archive was generated by hypermail 2b30 : Wed Sep 17 2003 - 06:49:30 PDT