µî·ÏÀÏ | 2005-03-21 10:42:18 | Á¶È¸¼ö | 208 |
ÀÛ¼ºÀÚ | dlgustjd | µµ¸ÞÀÎ | www.leehyunsung.com |
Á¦¸ñ | µµ¿ò ºÎŹ µå¸³´Ï´Ù. | ||
¾È³çÇϼ¼¿ä. ´Ù¸§ÀÌ ¾Æ´Ï¶ó cgi¸¦ »ç¿ëÇؼ À¥¿¡¼ ¸ÞÀÏÀ» º¸³¾ ¼ö ÀÖ´Â°É Á¦ÀÛÇߴµ¥¿ä(http://www.leehyunsung.com/sms), ÅÚ³ÝÀ» ÀÌ¿ëÇؼ ½ÇÇàÇϱ⠱ÇÇѺο©µµ ÇÏ°í ´Ù Çߴµ¥ º¸³»±â ¹öÆ°¸¸ ´©¸£¸é ÀÚ²Ù "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@wo.to and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log." ÀÌ·± ¸Þ¼¼Áö°¡ ³ª¿É´Ï´Ù. Á¦°¡ »ç¿ëÇÑ cgi´Â sms/cgi-binÆú´õ¿¡ ÀÖÀ¸¸ç ³»¿ëÀº #!/bin/sh if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING=$REPLY fi if [ "$QUERY_STRING" !=""]; then eval `echo $QUERY_STRING | sed -e 's/'"'"'/%27/g'|\ awk "BEGIN{RS="&";FS="="} $1~/^[a-zA-Z][a-zA-Z0-9_]*$/ { print $0 ]'` fi temp_string=`echo \"$name\" | sed "s/+/ /g" | sed 's/%/\\\\x/g'` temp_string=`echo "echo | awk '{ print $temp_string }' " ` name=`eval $temp_string` temp_string=`echo \"$message\" | sed "s/+/ /g" | sed 's/%/\\\\x/ g'` Text="" for i in `echo $temp_string`; do command="echo | awk '{printf\"$i \"}'" Text=$Text`eval $command` done message="$Text" cat<<EOF> /tem/tem_$PPID $name $message EOF cmd="echo \"To: korea@bcc.com.uz\";echo \"From: web\";echo \"Subject: $name \";cat /tem/tem_$PPID;" eval $cmd | /usr/lib/sendmail -t echo Content-tupe: text/html;echo cat succeed.htm fi ....ÀÔ´Ï´Ù. È®ÀκÎŹµå¸³´Ï´Ù.^^ |