½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 137 | Á¶È¸¼ö 1,449 | µî·ÏÀÏ 2003-04-21 16:30:00

´Ð³×ÀÓ

vitpurun

À̸ÞÀÏ

ditpurun@korea.com

Á¦¸ñ

[Áú¹®] cgi·Î shell ÇÁ·Î±×·¥ ½ÇÇà
³»¿ë

¾È³çÇϼ¼¿ä..

cgi·Î sh ÆÄÀÏÀ» ½ÇÇà ½ÃÅ°°íÀÚ ÇÕ´Ï´Ù.

a. cgi ´Â ´ÙÀ½°ú °°½À´Ï´Ù.

#!/bin/sh

system("./test.sh");

...

test.sh ÆÄÀÏÀº ¿À¶óŬÀ» Á¢¼ÓÇÏ¿© ÀÛ¾÷ÇÏ´Â ½ºÅ©¸³Æ®·Î Â¥¿©Á® ÀÖ½À´Ï´Ù.

°¢°¢ÀÇ Æ۹̼ÇÀº 7777·Î ÁÖ¾ú½À´Ï´Ù. (ÇØ´ç µð·ºÅ丮µµ 777·Î ÁÖ¾ú½À´Ï´Ù.)

±×¸®°í À¥ÆäÀÌÁö¿¡¼­ a.cgi ¸¦ È£ÃâÇϸé " Internal Server Error "°¡ ¹ß»ýÇÕ´Ï´Ù.

a.cgi³ª test.sh¸¦ ¼­¹ö¿¡¼­ Á÷Á¢ ½ÇÇàÇϸé ÀÛ¾÷ÀÌ Á¤»óÀûÀ¸·Î ½ÇÇà µË´Ï´Ù.

a.cgi¸¦ ¾Æ·¡¿Í °°ÀÌ º¯°æÇÏ°í,

#!/bin/sh

./test.sh (ȤÀº test.sh)

...

À¥ÆäÀÌÁö¿¡¼­ ½ÇÇàÇϸé, ¿¡·¯ ¸Þ¼¼Áö´Â ³ª¿ÀÁö´Â ¾ÊÁö¸¸, ½ºÅ©¸³Æ® ÀÛ¾÷ÀÌ ÀÌ·ç¾îÁöÁö ¾Ê½À´Ï´Ù.

¾ÆÆÄÄ¡ ¼­¹öÀÇ httpd.conf ÆÄÀÏÀº ¾Æ·¡¿Í °°ÀÌ ¼³Á¤µÇ¾î ÀÖ½À´Ï´Ù.

ScriptAlias /cgi-bin/ "/home3/test/"
 
<Directory "/home3/test/">
      AllowOverride None
      Order allow,deny
      Allow from all
      Options ExecCGI
</Directory>

¾î¶² ¹®Á¦ÀÎÁö °í¼ö´ÔµéÀÇ Á¶¾ðÀÌ ÇÊ¿äÇÕ´Ï´Ù.

³Ê¹« ¸ô¶ó¼­ ´ä´äÇϱº¿ä.. µµ¿Í ÁÖ¼¼¿ä..

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
HappyCGI 2003-04-22 09:03:11
´ä±Û

content type¸¦ ÁöÁ¤ÇØÁÖÁö ¾ÊÀ¸¸é À¥»ó¿¡¼­´Â ¿À·ù°¡ Ãâ·ÂÀÌ µÇ°í
½©¿¡¼­´Â ¿À·ù°¡ ¾Èº¸ÀÌ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
content type ÀÌ Àß ÂïÇôÀÖ³ª È®ÀÎÇغ¸¼¼¿ä.

ÀÌÀü°Ô½Ã±Û [Áú¹®]ssang_calender¿¡¼­ writeÇÏ·Á°í Çϸé error°¡... 2003-04-20 22:40:00
´ÙÀ½°Ô½Ã±Û µ·¹ú¸é¼­ °øºÎÇսôÙ^^ È­ÆÃ! 2003-04-21 23:11:34