📄 dist.sh
字号:
#! /bin/sh## This is a quick example listen-exec server, which was used for a while to## distribute netcat prereleases. It illustrates use of netcat both as a## "fake inetd" and a syslogger, and how easy it then is to crock up a fairly## functional server that restarts its own listener and does full connection## logging. In a half-screen of shell script!!PORT=31337sleep 1SRC=`tail -1 dist.log`echo "<36>elite: ${SRC}" | ./nc -u -w 1 localhost 514 > /dev/null 2>&1echo ";;; Hi, ${SRC}..."echo ";;; This is a PRERELEASE version of 'netcat', tar/gzip/uuencoded."echo ";;; Unless you are capturing this somehow, it won't do you much good."echo ";;; Ready?? Here it comes! Have phun ..."sleep 8cat dist.filesleep 1./nc -v -l -p ${PORT} -e dist.sh < /dev/null >> dist.log 2>&1 &sleep 1echo "<36>elite: done" | ./nc -u -w 1 localhost 514 > /dev/null 2>&1exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -