sysconfig/portscan-mac.sh
2022-12-26 17:56:32 +08:00

9 lines
114 B
Bash

if [ "$1" ]
then
PORT=$1
else
echo "=== 需要查看的端口号:"
read -p ">>> " PORT
fi
lsof -i tcp:$PORT