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目录下生成一个脚本,并再后台运行,无限循环

最后修改:2023 年 08 月 05 日
如果觉得我的文章对你有用,请随意赞赏