#!/bin/bash
if [ "$1" == "" ]
then
v=10
echo -e "\n loop is $v syn_recv checking!!!"
echo -e " example) ./syn_check.sh loop_number"
echo -e " after 3 second, and starting... "
sleep 3
else
v=$1
r=${v//[0-9]/}
if [ -z "$r" ]; then
echo -e "\n loop is $v syn_recv checking!!!"
echo -e " after 3 second, and starting... \n"
sleep 3
else
echo -e "\n $v is not number. and loop is 10"
v=10
echo -e " after 3 second, and starting... "
sleep 3
fi
fi
i=1
while [ $i -le $v ]
do
# # netstat syn_recv check
echo -e "\n #loop count - $i "
echo -e " netstat -anp | grep -i syn_recv "
echo -e " --------------------------------"
STR1=`netstat -anp | grep -i syn_recv`
echo -e "$STR1"
if [ $i -lt $v ];then echo -e "\n waiting 1 second...";fi
sleep 1
i=$(($i+1))
done
echo -e "\n"
2cpu의 도움주신 많은 분들께 늘 감사드립니다.
☎ HP 010-9678-7900
ÀÌ°ÍÀº Syn Flooding µðµµ½º °ø°Ý¿¡ syn_recv °¡ ¾î¶»°Ô µé¾î¿À°í ÀÖ´ÂÁö
¿øÇÏ´Â ¹Ýº¹È½¼ö ¸¸Å¸¸ ·çÇÁ¸¦ µ¹¸®¸é¼ º¸¿©ÁÝ´Ï´Ù.
±âº» µðÆúÆ®°ªÀº 10ȸ ÀÌ°í
¿øÇϴ Ƚ¼ö¸¦ ÆĶó¹ÌÅÍ·Î ÀÔ·ÂÇÏ¸é µË´Ï´Ù.
./syn_loop_check.sh 100 ÀÌ·±½ÄÀ¸·Î...¤¾¤¾¤¾