nmap/ncat/scripts/log_ips.sh
d33tah 8f84863a23 add NCAT_LOCAL_ADDR, NCAT_LOCAL_PORT, NCAT_REMOTE_ADDR, NCAR_REMOTE_PORT,
NCAT_REMOTE_ADDR environment variables set in all --*-exec child processes.
(this is a merge of ncat-env-conninfo as of r31516)
2013-07-24 13:58:15 +00:00

10 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."