¼¹ö¸¦ ÀÌÀüÇÏ¸é¼ 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");