Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: BUG: ncat does not log UDP in output file
From: David Fifield <david () bamsoftware com>
Date: Mon, 18 Jun 2012 19:54:54 -0700

On Mon, Jun 18, 2012 at 03:04:54PM +0200, Michal Hlavinka wrote:

we've found a bug in ncat (nmap 5.51, confirmed in 6.01). ncat
correctly receives udp packet and prints it, but it does not write
it to output file. It works when tcp is used instead of udp.

Steps to Reproduce:
# ncat --udp --output ncatudp.log --listen 6666 &

# echo TEST | ncat --udp localhost 6666
# killall ncat

# cat ncatudp.log

Actual result:
the output file is empty

Expected result:

For tcp ncat uses ncat_recv which does the logging with
ncat_log_recv, but because ssl checks are not needed for udp, it
uses just recv() never calling anything writing to the log file

Thanks for this good bug report. I've added a test and this is fixed in

David Fifield
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]