mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
NCAT_REMOTE_ADDR environment variables set in all --*-exec child processes. (this is a merge of ncat-env-conninfo as of r31516)
11 lines
165 B
Bash
11 lines
165 B
Bash
#!/bin/sh
|
|
|
|
LOGFILE="log_ips.log"
|
|
|
|
MSG="[`date`] Incoming connection from $NCAT_REMOTE_ADDR:$NCAT_REMOTE_PORT"
|
|
|
|
echo $MSG >&2
|
|
echo $MSG >> $LOGFILE
|
|
|
|
echo "Yeah, hi."
|