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

´Ð³×ÀÓ

npnglife

À̸ÞÀÏ

yeountae02@naver.com

Á¦¸ñ

cgi µ¥ÀÌÅͺ£À̽º º¹±¸½ÃÅ°·Á¸é?
³»¿ë

¼­¹ö¸¦ ÀÌÀüÇϸ鼭 cgi·Î ±¸ÇöµÈ ¼îÇθôÀÌ Çϳª Àִµ¥¿ä.

µ¥ÀÌÅͺ£À̽º°¡ mysql, oracle °°Àº °ü°èÇü DB°¡ ¾Æ´Ï¶ó ¸®´ª½º ÀÚü DBMÀ» »ç¿ëÇÏ°í ÀÖ½À´Ï´Ù.

µû¶ó¼­ µ¥ÀÌÅ͸¦ ±×³É ¿Å±ä´Ù°í Çؼ­ µÇ´Â°Ô ¾Æ´Ï°í ¼îÇθô ¼Ö·ç¼ÇÀ» ¼³Ä¡ÇØÁà¾ß ÇÕ´Ï´Ù.

ÇÏÁö¸¸ ¼Ö·ç¼ÇÀ» Á¦°øÇß´ø ȸ»ç°¡ Áö±ÝÀº ¾îµð¿¡¼­µµ ã¾Æº¼ ¼ö ¾ø¾î¼­

¾ÆÁÖ ³­°¨ÇÑ »óȲÀÔ´Ï´Ù.

Âü°í·Î ¾îµð¼±°¡ ¹æ¹ýÀ» Çϳª ã±â´Â  Çߴµ¥..

¾Æ¹«¸® ÀоîºÁµµ ÀÌÇØ°¡ Àß ¾ÈµË´Ï´Ù. Á» µµ¿ÍÁÖ¼¼¿ä~ 

 

--------------------------------------------------------------------------------------------------------

[¹æ¹ý]
1. 20¼­¹ö¿¡¼­ conf.cgi¸¦ ¿­¾î .configÀÇ ³»¿ëÀ» È®ÀÎÇÑ´Ù.
   (¼öÁ¤ÇÒ »çÇ×Àº configview.txt ÆÄÀÏÀ» ¿­¾î ¸ñ·Ï³»¿ëÀ» conf.cgi ÆÄÀÏ¿¡ º¹»çÇÏ¿© ºÙ¿©³Ö±â ÇØÁØ´Ù.)
  
2. 204¼­¹ö¿¡¼­ Æнº¿öµå ÇÊ¿ä¾øÀÌ °ü¸®ÀÚ ÆÄÀÏ¿¡ Á¢±ÙÇÒ ¼ö ÀÖµµ·Ï ¼öÁ¤ÇØÁØ´Ù.
   ¨ç db_list.cgi ÆÄÀÏ(admin_index.cgi ÆÄÀÏ) ¼öÁ¤
      - if ($ADMIN_PASSWORD eq $PASSWORD) {   
        eq -> ne
        ne -> eq
        ¹Ù²ÛµÚ admin.cgi ÆÄÀÏ¿¡ Á¢±Ù°¡´ÉÇÏ°Ô ÇØÁØ´Ù
       
   ¨è conf.cgi ÆÄÀÏ ¼öÁ¤
      - $PASSWORD="1234";
  $ADMIN_PASSWORD="1234";

  if($in{'PASSWORD'} eq ''){ print "Location: error.cgi \n\n";
  }else{
  dbmopen(%item,"./data/$DB/.config",0777);
               #$ADMIN_PASSWORD=$item{'ADMIN_PASSWORD'};
 
 ¼³Á¤ÀÌ ¿Ï·áµÇ¾úÀ¸¸é admin.cgi·Î µé¾î°¡¼­, configÆÄÀÏÀÇ ³»¿ëÀ» º»´Ù.

3. ÀÌÁ¦ config µðºñ¸¦ ÀԷ½ÃŲ´Ù.
   junput_form.html¸¦ ÅëÇØÇؼ­ , 20¼­¹öÀÇ conf.cgi ³»¿ëÀ» º¸°í ÀԷ½ÃŲ´Ù...
  
4. 2¹ø¿¡¼­ ¼öÁ¤Çß´ø °ÍÀ» ¿ø»óº¹±¸ ½ÃŲ´Ù.

 

5 . modify.cgi, junput.cgi¸¦ ÅëÇØ .list µðºñ¸¦ ¸¸µé¾îÁØ´Ù.

http://192.168.10.114/oyster/shop/modify.cgi?DB=

--------------------------------------------------------------------------------------------------------

(192.168.10.114)
1.modify.cgi - µðºñ³»¿ëº¸±â
 - http://192.168.10.114/shop/modify.cgi?DB=³ëÆ®ºÏ
 ÇØ´ç µðºñ¸íÀ» ½áÁØ´Ù.

 

2.junput.cgi - µðºñÀÔ·ÂÇϱâ
 - http://192.168.10.114/shop/junput.cgi
 ÆÄÀϼöÁ¤

  ¨ç$DB="³ëÆ®ºÏ";
  ¨è$number="2";
  ¨é$line=join("::","NT-P40/W162G","rmadmsehd","0","NT-P40/W162G","SAMSUNG","5","NT-
  P40_W162GL.gif","NT-P40_W162GS.gif","","","","","","NT-P40/W162G","","","","",""
  ,"1","","","","1801500","","","","","0","0");

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
HappyCGI 2007-12-18 00:33:47
´ä±Û

¸®´ª½º ÀÚü DMB ¶ó¸é ¹öŬ¸® DB³ª ÀÌ¿Í À¯»çÇÑ DBÀÏ°Ì´Ï´Ù.
php°¡ ¿ø·¡ perl(cgi)ÀÇ Àڽľð¾îÀ̹ǷΠphpµµ À§ DB¿¡ Ä¿³ØÆÃÇÏ´Â ÇÔ¼ö°¡ ÀÖÀ»°ÍÀ̱¸¿ä. ¿ì¼± php·Î ÀÌ ÇÔ¼ö¿¡ Á÷Á¢ Á¢±ÙÇؼ­ À̸¦ ¿¢¼¿·Î º¯È¯ ȤÀº sqlÀÇ insert ¹®À¸·Î ¹Ù·Î ¹Ù²Ù½Ã´Â°Ô ÀÛ¾÷ÀÌ ¼öÈÎÇÒ°Í °°½À´Ï´Ù.

HappyCGI 2007-12-18 00:34:46
´ä±Û

¿¹¸¦ µé¸é ¿¹Àü Å©·¹ÀÌÁöº¸µå ó·³ DBÀ̱ä ÇÑÅ× À¯´Ð½º¿¡¼­ Áö¿øÇÏ´Â ¹ÙÀ̳ʸ® ÆÄÀÏ DB ÀÔ´Ï´Ù. Å©·¹ÀÌÁöº¸µåÀÇ º¯È¯±â¸¦ Âü°íÇϼŵµ µµ¿òÀÌ µÉ°Í °°³×¿ä.

ÀÌÀü°Ô½Ã±Û ¾Æ¸£¹ÙÀÌÆ® ÇϽǺРã½À´Ï´Ù. 2007-12-05 01:05:02
´ÙÀ½°Ô½Ã±Û À©µµ¿ì»ó¿¡¼­ C·Î CGI±¸Çö¿¡ °üÇÑ Áú¹®ÀÔ´Ï´Ù. 2007-12-14 12:51:17