|
|
Ŭ¶ó¿ìµåű×
javascript PHP ASP CSS HTML mysql jquery image API Mobile ¸Þ´º slide °Ô½ÃÆÇ
|
|
|
ÇöÀçÁ¢¼ÓÀÚ ¸í |
|
|
|
|
|
|
|
onelinechat V2 |
|
|
|
|
¼Ò½ººÐ·ù |
À¥´ëȹæ |
|
|
´Ù¿î·Îµå Ƚ¼ö |
933 ȸ |
|
|
|
°£´Ü¼³¸í |
Ç÷¡½Ã¿Í PerlÀ» ¿¬µ¿ÇÏ¿© ¸¸µç ¿Â¶óÀÎ ÇÑ Á٠äÆà ÇÁ·Î±×·¥ |
|
|
|
|
|
###################################################################
# #
# README #
# onelinechat V2 #
# #
# Author: Seungho Choo #
# EMail: choo_sh@yahoo.com #
# URL: http://tangible.new21.org #
# #
###################################################################
#License
»ó¾÷ÀûÀÎ ¿ëµµ¿ÜÀÇ ¼öÁ¤ ¹× ¹èÆ÷´Â °¡´ÉÇÕ´Ï´Ù.
¼öÁ¤¹èÆ÷ÇÏ½Ç °æ¿ì ¿øÀúÀÛÀÚÀÇ À̸§°ú À̸ÞÀÏ ÁÖ¼Ò¸¦ ³²°ÜÁֽñ⠹ٶø´Ï´Ù.
#±â´É
- ÇöÀç Á¢¼ÓÀÚ¼ö
- ¼¹ö½Ã°£
- ÇÑÁÙ ¸Þ¼¼Áö º¸À̱â
#ÁÖÀÇ»çÇ×
ÀÚ½ÅÀÇ À¥¼¹ö³ª À¥°èÁ¤¿¡¼ perl½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÒ ¼ö ÀÖ¾î¾ß ÇÕ´Ï´Ù.
¸¸¾à °Ô½ÃÆÇÀ̳ª ¹æ¸í·Ï µîÀ» ¼³Ä¡ÇÒ ¼ö ¾ø´Ù¸é, Ä«¿îÅÍ ¿ª½Ã ¼³Ä¡ ÇÒ ¼ö ¾ø½À´Ï´Ù.
flash5 Ç÷¯±×ÀÎÀÌ ¼³Ä¡µÈ À¥ºê¶ó¿ìÁ®¿¡¼¸¸ º¼ ¼ö ÀÖ½À´Ï´Ù.
#¼³Ä¡¼³¸í
1. unzip
- onelinechat.fla : Ç÷¡½¬ 5 ÆíÁýÆÄÀÏ
- onelinechat.swf : shockwave file complied with flash 5
- logs/onelinechat.log : µ¥ÀÌŸ ÆÄÀÏ
- onelinechat.cgi : perl script
- README(korea).txt : Áö±Ý Àаí ÀÖ´Â ÆÄÀÏ
2. logs¶õ À̸§ÀÇ Æú´õ¸¦ ¸¸µé°í, Æ۹̼ÇÀ» 777·Î
3. ¼¹ö¿¡ ¾÷·Îµå(¼öÁ¤ÈÄ)
onelinechat.swf
logs/onelinechat.log
onelinechat.cgi - cgi-binµîÀÇ Æ¯Á¤directory¿¡¼¸¸ Çã¿ëµÉ °æ¿ì ÀÚ½ÅÀÇ ¼¹öȯ°æ¿¡ ¸ÂÃç ¾÷·ÎµåÇÕ´Ï´Ù.
4. permission
onelinechat.log -> chmod 766 (µ¥ÀÌŸ ÆÄÀÏ)
onelinechat.cgi -> chmod 755 (½ÇÇà°¡´ÉÇÑ ÆÄÀÏ)
#¼öÁ¤
1.flash5·Î ÆíÁýÀÌ °¡´ÉÇÒ °æ¿ì
ù¹ø° ÇÁ·¹ÀÓ¿¡¼
cgilocation = http://localhost/cgi-bin/memo/onelinechat.cgi;
¾ÕºÎºÐÀÇ //¸¦ Á¦°ÅÇϽðí cgilocationÀº ÀÚ½ÅÀÇ ¼¹ö¿¡ onelinechat.cgi ÆÄÀÏÀÇ °æ·Î¿Í À̸§¿¡ µû¶ó º¯°æÇØ ÁÖ½Ã¸é µË´Ï´Ù.
2. flash5 ÆíÁýÀÌ ºÒ°¡´ÉÇÒ °æ¿ì
onelinechat.swf¸¦ ±×³É »ç¿ëÇÏ½Ç °æ¿ì, cgi°æ·Î¸¦ swf·Î Àü´ÞÇϱâ À§ÇØ htmlű׿¡¼ ¾Æ·¡ÀÇ 2ºÎºÐÀ» ¼öÁ¤ÇÏ½Ã¸é µË´Ï´Ù.
//////¼öÁ¤ÇϽŠµÚ htmlÆäÀÌÁö¿¡ copy&pasteÇϼ¼¿ä.//////////////////////////////////
3. cgiÆÄÀÏ ¼öÁ¤
-cgiÆÄÀÏÀÇ Ã¹¹ø° ¶óÀÎ
#!/usr/bin/perl
ÀÚ½ÅÀÇ ¼¹ö¿¡ ¼³Ä¡µÈ perlÀÇ °æ·Î¿¡ ¸ÂÃç¼ º¯°æ
-log_file °æ·Î
$log = "Àý´ë°æ·Î/logs" ¶Ç´Â "»ó´ë°æ·Î/logs";
ÀÌ °æ·Î´Â urlÀÌ ¾Æ´Ï¶ó ¼¹öÀÇ Àý´ë°æ·ÎÀÔ´Ï´Ù.
telnetÀ̳ª ftp¸¦ Çؼ º¸ÀÌ´Â °æ·Î°¡ ¹Ù·Î Àý´ë °æ·ÎÀÔ´Ï´Ù. ÀÚ½ÅÀÇ Àý´ë°æ·Î¸¦ ¸ð¸¦ °æ¿ì ¼¹ö°ü¸®ÀÚ¿¡°Ô ¹°¾îº¸½Ã±â ¹Ù¶ø´Ï´Ù.
http://·Î ½ÃÀÛÇؼ´Â ¾ÈµË´Ï´Ù.
# ½ÇÇàÇϱâ
ÇÑ ½ºÅÜÀÌ ¿Ï¼ºµÇ¸é ´ÙÀ½ ½ºÅÜÀ» Å×½ºÆ®Çغ¸¼¼¿ä.¹Ù·Î Ç÷¡½¬ ¹«ºñ·Î È£ÃâÇϽøé, ¹®Á¦¸¦ ã±â Èûµì´Ï´Ù.
1. cgiÆÄÀÏÀ» Á÷Á¢ À¥ºê¶ó¿ìÁ®¿¡¼ È£ÃâÇغ¾´Ï´Ù.
À̶§ ¿¡·¯¸Þ¼¼Áö°¡ º¸À̸é,
cgiÆÄÀÏÀÇ Æ۹̼ÇÀÌ Àß ¸øµÇ¾úÀ» ¼ö ÀÖ½À´Ï´Ù.
2. ÀÔ·ÂÅ×½ºÆ®
À̹ø¿£ http://yourcgiurl?message=test ¸¦ ºê¶ó¿ìÁ®¿¡¼ ½ÇÇàÇغ¾´Ï´Ù. ÀÌ°ÍÀº Ç÷¡½¬ ¹«ºñ°¡ cgi¸¦ È£ÃâÇÏ´Â °Í°ú ¶È°°Àº °ÅÁÒ.
ºê¶ó¿ìÁ®¿¡ ³ªÅ¸³ °á°ú°¡ °è¼Ó °°Àº °ª¸¸ º¸ÀÌ°í, »õ·Î¿î ¸Þ¼¼Áö°¡ ÀԷµÇÁö ¾Ê´Â´Ù¸é, logÆÄÀÏÀÇ °æ·Î³ª Æ۹̼ÇÀÌ À߸ø µÇ¾úÀ» ¼ö ÀÖ½À´Ï´Ù.
3. flash¹«ºñ ½ÇÇà
µ¥ÀÌŸ°¡ °»½Å µÇÁö ¾Ê´Â´Ù¸é cgilocation°ªÀÌ Àß ¸ø µÇ¾úÀ» °¡´É¼ºÀÌ °¡Àå ³ô½À´Ï´Ù.
#bug report
¸¸¾à ¹ö±×¸¦ ¹ß°ßÇϽøé, choo_sh@yahoo.comÀ¸·Î À̸ÞÀÏÀ» Áֽñ⠹ٶø´Ï´Ù.
|
|
³×ƼÁð ÀÇ°ß ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.) |
|