¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 56°Ç
   
¼­ºñ½º Æ÷Ʈüũ ½ºÅ©¸³Æ®
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2010-10-06 (¼ö) 10:08 Á¶È¸ : 7440
±ÛÁÖ¼Ò :
                          

portcheck.sh (netcat ¼³Ä¡)

#!/bin/bash

while [ 1 ] ; do
NOW=`date +'%m%d-%H%M-%S'`
FILENAME=server.lists

###  "#" ÁÖ¼®Ã³¸®µÈ°Ç Á¦¿ÜÇÏ°í üũ
cat $FILENAME |grep -v "#" |while read a ; do

if nc -z -v -w 1 $a 80 2>&1 |grep -v 'open' ; then
echo "$a Service Port is not checked"
printf "\a\a"  ## ¾Ë¶÷
fi
done

sleep 30  ## üũÁÖ±â
done;


server.lists
192.168.0.11
192.168.0.12

¡Ø telnet À̳ª nmapÀº ¼­ºñ½º¸¦ üũÇϴµ¥ À־ ¿ÀŽÀÌ Àæ´Ù..

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.