1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Provides more meaningful information about the connecting client when in UDP listening mode. Closes #980

This commit is contained in:
nnposter
2017-09-11 02:33:07 +00:00
parent 4fa07fc32b
commit e8b73078fd

View File

@@ -898,8 +898,8 @@ static int ncat_listen_dgram(int proto)
ncat_log_recv(buf, nbytes);
}
if (o.debug > 1)
logdebug("Valid Connection from %d\n", socket_n);
if (o.verbose)
loguser("Connection from %s.\n", inet_socktop(&remotess));
conn_inc++;
@@ -917,6 +917,7 @@ static int ncat_listen_dgram(int proto)
struct fdinfo info = { 0 };
info.fd = socket_n;
info.remoteaddr = remotess;
if (o.keepopen)
netrun(&info, o.cmdexec);
else