echo 'set num=0
while true
do
let "num=num+1"
echo "循环 $num 次"
iptables -A FORWARD -p tcp -m tcp --dport 17500 -j DROP
sleep 10
iptables -D FORWARD -p tcp -m tcp --dport 17500 -j DROP
sleep 25
done' > shell.sh && bash shell.sh &
执行后将会再root目录下生成一个脚本,并再后台运行,无限循环
评论 (0)