mailing list archives
Closing socket when input file ends?
From: Britton Kerin <britton.kerin () gmail com>
Date: Tue, 1 May 2012 11:12:11 -0800
First: loving nmap/ncat a lot. Thanks all.
I'm using ncat with an embedded device like so:
nmap 192.168.1.42 50000 <query.bin >response.bin
The thing is it never seems to close the connection. I can use --idle-timeout
to kill it but I sort of wonder why it doesn't automatically close the socket
when input EOF stdin like cat does?
Also, when typing in put manually I would expect CNTRL-D to send EOF,
but I'm not sure if it does or not, or does but it doesn't close
connection, or what.
Anyway, just kind of weird.
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/
- Closing socket when input file ends? Britton Kerin (May 01)