summaryrefslogtreecommitdiffstats
path: root/ncat/scripts/log_ips.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ncat/scripts/log_ips.sh')
-rw-r--r--ncat/scripts/log_ips.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ncat/scripts/log_ips.sh b/ncat/scripts/log_ips.sh
new file mode 100644
index 0000000..8b0f0e5
--- /dev/null
+++ b/ncat/scripts/log_ips.sh
@@ -0,0 +1,10 @@
+#!/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."