>¤Î¡Ö1¥Ð¥¤¥ÈÌܤ¬F9¡×¤È¤¤¤¦µ½Ò¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤Î¤«¤Ê? ʸ»ú¥³¡¼¥Éɽ¤¯¤é¤¤¡¢¤É¤³¤«¤Ë¤¢¤ë¤À¤í¤¦¤È»×¤Ã¤Æ¡¢¸¡º÷¤·¤¿¤±¤É¡¢°Õ³°¤È¤Ê¤¤¤Ç¤¹¤Í¡£ ¥¦¥Á¤Î´Á»ú¥³¡¼¥Éɽ¤Ç¤Ï¡¢´Ö°ã¤¤¤Ê¤¯115¶è¤ÏFA¤Ë¤Ê¤Ã¤Æ¤Þ¤¹¡£ http://www.vector.co.jp/soft/win95/util/se102214.html >IBM³Èĥʸ»ú¶èÅÀ¥³¡¼¥É(´¹»»)¤Ç115¶è¡Á119¶è(FA40-FC4B) ¤È¤¤¤¦µ½Ò¤â¤¢¤ê¤Þ¤·¤¿¡£ ¤ä¤Ï¤ê¡¢ http://www2d.biglobe.ne.jp/~msyk/charcode/kisyuizon/115-116ku.html http://www2d.biglobe.ne.jp/~msyk/charcode/kisyuizon/117-118ku.html ¤Ï¡¢£±¤º¤Ä¤º¤ì¤Æ¤ë¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¤¡¡Ä http://www2d.biglobe.ne.jp/~msyk/charcode/kisyuizon/119-120ku.html ¤ÎFC¤ÏOK¤«¤Ê >Windows ¤òÆ°¤«¤¹¤È PC/AT µ¡¤ÈƱ¤¸¤Ê¤ó¤Ç¤·¤ç¤¦¤«¤Í¡£ ¤¦¡¼¤ó¡¢¤è¤¯Ê¬¤«¤ê¤Þ¤»¤ó¡Ê¶ì¾Ð¡Ë |
0xFA40¤È¤¤¤¦Ê¸»ú¤Ç¤¹¤¬¡¢»ä¤Î´Ä¶(PC/AT+Win95)¤Ç¤Ï¡¢ ¤³¤Î·Ç¼¨Èľå¤Ç¤Ï i ¤È¤Ïɽ¼¨¤µ¤ì¤º¡¢0xEDBE¤ÈƱ¤¸Ê¸»ú¤È¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹¡£ ƱÍÍ¤Ë viii ¤â0xEDC5¤ÈƱ¤¸¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤³¤Î·Ç¼¨ÈĤδÁ»ú¥³¡¼¥É¤ÏEUC¤Î¤è¤¦¤Ç¤¹¤¬¡¢EUC¤Î£²¥Ð¥¤¥È´Á»ú¤ÎÈÏ°Ï¤Ï JIS-X0208¤ÈƱ¤¸¤Ç¡¢¤³¤ì¤Ï¥·¥Õ¥ÈJIS¤Ç0xEFFC¤Þ¤Ç¤ËÂбþ¤·¤Æ¤¤¤ë¤Î¤Ç¡¢ ¤½¤ì°Ê¹ß¤Î¥·¥Õ¥ÈJIS¥³¡¼¥É¤ÏEUC¤ËÊÑ´¹¤Ç¤¤Þ¤»¤ó¡£ ¤¹¤ë¤È¤³¤Î¾ì¹ç¤Ï¡¢0xFA40¤È¤¤¤¦¥³¡¼¥É¤¬EUC¤ËÊÑ´¹¤µ¤ì¤º¤ËÁÇÄ̤ꤷ¤Æ ¤·¤Þ¤¤¡¢¤½¤ÎÂ裱¡¤£²¥Ð¥¤¥ÈÌܤΤ½¤ì¤¾¤ì¤Î¥È¥Ã¥×¥Ó¥Ã¥È¤ò¼è¤Ã¤¿ 0x7A40¤¬¤¿¤Þ¤¿¤Þ¥·¥Õ¥ÈJIS¤Î0xEDBE¤Ë°ìÃפ·¤Æ¤¤¤¿¤¿¤á¤È»×¤ï¤ì¤Þ¤¹¡£ |
>0x7A40¤¬¤¿¤Þ¤¿¤Þ¥·¥Õ¥ÈJIS¤Î0xEDBE¤Ë°ìÃפ·¤Æ¤¤¤¿¤¿¤á¤È»×¤ï¤ì¤Þ¤¹¡£ ¤Á¤ã¤ó¤ÈÍý²ò¤·¤Æ¤Þ¤»¤ó¤¬¡¢Shift-JIS¤Î0xEDBE¡ÊÆüÊФ˽դÎʸ»ú¡Ë¤Ï¡¢EUC¤Î¥½¡¼¥¹¾å¤Ç¤Ï¡¢ 0xFAC0¤Ë¤Ê¤Ã¤Æ¤Þ¤¹¤Í¡£ ¤³¤ì¤Ï¡¢0xFA40¤¬ÊÑ´¹¤µ¤ì¤º¤Ë¡¢Â裲¥Ð¥¤¥È¤ÎMSB¤¬Î©¤Ã¤¿¤À¤±¤Ã¤Æ¤³¤È¤«¤Ê¡© |
¤¤¤¨¡¢°ã¤¦¤È»×¤¤¤Þ¤¹¡ägoosan ¤³¤Î·Ç¼¨ÈĤǤϡ¢ÆþÎÏʸ»úÎó¤ò jcode::convert ¤ò»È¤Ã¤Æ EUC ¤Ë ÊÑ´¹¤·¡¢EUC ¥³¡¼¥É¤Çµ¡¼ï°Í¸ʸ»ú¤Î¥Á¥§¥Ã¥¯¤ò¤·¤Æ¤¤¤Þ¤¹¡£ ¤Ç¡¢jcode::convert ¤Ï¡¢SJIS ¤Î 0xFA40 (i) ¤ò 0xFAC0 ¤Ë ÊÑ´¹¤¹¤ë¤è¤¦¤Ç¤¹¤¬¡¢¤³¤ì¤Ï¿ʬ´Ö°ã¤Ã¤¿·ë²Ì¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡£ # EUC ¤Î°·¤¨¤ë JIS X 0208 ¤Ï 94¶è¤Þ¤Ç¤·¤«ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢ # ´Ö°ã¤Ã¤Æ¤¤¤ë¤È¤¤¤¦É½¸½¤ÏÉÔŬÀÚ¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡£ ¤Ç¡¢EUC ¤Î 0xFAC0 ¤Ï http://www2d.biglobe.ne.jp/~msyk/charcode/kisyuizon/89-90ku.html ¤Î `Æü½Õ' ¤È¤¤¤¦Ê¸»ú¤ËÁêÅö¤¹¤ë¤Î¤Ç¡¢¤½¤Îʸ»ú¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¡¢ ¤Ã¤Æ¤³¤È¤À¤È»×¤¤¤Þ¤¹¡£ ¤Ç¡¢mm ¤µ¤ó¤Ï¤½¤ì¤ò¥³¥Ô¡¼¤·¤Æ http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=666 ¤Ë½ñ¤«¤ì¤¿¤Î¤Ç¡¢`Æü½Õ'`¤¬¼«Æ°ÊÑ´¹¤µ¤ì¡¢¡Ö¢®¡×¤È¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿ ¤È¤¤¤¦¤³¤È¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£ ¤µ¤Æ¡¢º¤¤Ã¤¿¤Ê¤¡¡£SJIS ¤Ç 95¶è°Ê¹ß (JIS X 0208 ¤Ç µ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤Éôʬ) ¤ÎÆþÎϤ¬¤¢¤Ã¤¿¾ì¹ç¤É¤¦¤¹¤ë¤Ù¤¤«¡£ ¡Ä¤ÈǺ¤ó¤ÇÄ´¤Ù¤Æ¤ß¤¿¤È¤³¤í¡¢ http://www.opengroup.or.jp/jvc/cde/sjis-euc.html > Ãíµ: > ... > 3.NECÁªÄêIBM³Èĥʸ»ú¤Ï¡¤SJIS¤«¤éÆüËܸìEUC¤Ø¤ÎÊÑ´¹¤Ë¤ª¤¤¤Æ¤Ï¡¤ > ¡¡SJIS¤Ç¤¤¤Ã¤¿¤ó IBM³Èĥʸ»ú¤Ë ÊÑ´¹¤·¤Æ¤«¤éÆüËܸìEUC¤ËÊÑ´¹¤¹¤ë¡¥ http://www.opengroup.or.jp/jvc/cde/ibmext-table.html ¤Î¤è¤¦¤Ë¡¢Êä½õ´Á»ú (JIS X 0212) ¤ËÃÖ´¹¤¹¤ë¤Î¤â°ì¤Ä¤Î²ò¤Ê ¤è¤¦¤Ç¤¹¤Í¡£¤¿¤À¡¢¾¯¤Ê¤¯¤È¤â FreeBSD (X Window System) ¤Ç¤Ï JIS X 0212 ¥Õ¥©¥ó¥È¤Ï¥ª¥×¥·¥ç¥Ê¥ë¤Ç¤¹¤·¡¢Windows ¤Ç¤Ï¤Þ¤º JIS X 0212 ¤Ï»È¤¨¤Ê¤¤¤Ç¤·¤ç¤¦¤· (SJIS ¤Ç¤Ï JIS X 0212 ¤Ï »ÈÍѤǤ¤Ê¤¤)¡¢¸½¼ÂŪ¤Ç¤Ï¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ·ë¶É jcode.pl ¤ò½¤Àµ¤·¡¢¤µ¤é¤Ë¥Ö¥é¥¦¥¶¤¬ Windows ¤Ê¤é SJIS ¤Ç½ÐÎÏ¡¢UNIX ¤Ê¤é EUC ¤Ç½ÐÎÏ¡¢¤Ã¤Æ¤³¤È¤Ë¤Ê¤ë¤Î¤«¤Ê¤¡¡£ # ¡Ä¤Ê¤ó¤«¤É¤ó¤É¤ó¿¼¤ß¤Ë¤Ï¤Þ¤Ã¤Æ¤¤¤Ã¤Æ¤ë¤è¤¦¤Êµ¤¤¬ (¾Ð) ¤È¤³¤í¤Ç¡¢²¾¤Ë mm ¤µ¤ó¤¬ 91/92 ¶è¤Î i/viii ¤ò»È¤Ã¤Æ¤¤¤¿¤é ¼«Æ°ÊÑ´¹¤µ¤ì¤¿¤Ï¤º¤Ê¤Î¤Ç¤¹¤¬¡¢mm ¤µ¤ó¤¬¤ª»È¤¤¤Î IME ¤Ï ÉáÄÌ¤Ë i/viii ¤òÆþÎϤ¹¤ë¤È 115/116¶è¤Î¥³¡¼¥É¤Ë¤Ê¤Ã¤Æ ¤·¤Þ¤¦¤ó¤Ç¤·¤ç¤¦¤«? |
>ÉáÄÌ¤Ë i/viii ¤òÆþÎϤ¹¤ë¤È 115/116¶è¤Î¥³¡¼¥É¤Ë¤Ê¤Ã¤Æ >¤·¤Þ¤¦¤ó¤Ç¤·¤ç¤¦¤«? ÉáÄ̤«¤É¤¦¤«¤Ï¤è¤¯ÃΤé¤Ê¤¤¤ó¤Ç¤¹¤¬¡¢¡Ö¤¤¤Á¡×¤ò´Á»úÊÑ´¹¤·¤Æ¤â Âçʸ»ú¤ÎI¤·¤«½Ð¤ÆÍè¤Ê¤¤¤Î¤Ç¡¢MS-IME¤Î¡Ö´Á»ú¼Åµ¡×¤È¤¤¤¦¥¦¥¤¥ó¥É¥¦¤ò³«¤¤¤Æ¡¢ ¡ÖÆüìʸ»ú¡×¥¿¥°¤ÎÃ椫¤é¾®Ê¸»ú¤Î¥í¡¼¥Þ¿ô»ú¤òÁª¤Ö¤È115¶è¤ÎúÀ(i)¤¬ÆþÎϤµ¤ì¤Þ¤¹¡£ ¤³¤Î¡ÖÆüìʸ»ú¡×¥¿¥°¤Ï¡¢8¶è¤Î·ÓÀþ¤ä13¶è¤Îµ¹æ¤Î°ìÍ÷¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤ó¤Ç¤¹¤¬ ¡ÊÂçʸ»ú¤Î¥í¡¼¥Þ¿ô»ú¤â13¶è¤Î¤â¤Î¤Ç¤¹¡Ë¡¢¾®Ê¸»ú¤À¤±¤¬115¶è¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ʸ»ú¥³¡¼¥Éɽ¤È¤¤¤¦¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò»È¤¦°Ê³°¤Ë¡¢92¶è¤Îüñ¤òÆþÎϤ¹¤ëÊýË¡ ¤òÃΤê¤Þ¤»¤ó¡Ä¥Û¥ó¥È¤Ë»ä¤¬ÃΤé¤Ê¤¤¤À¤±¤«¤âÃΤì¤Þ¤»¤ó¤¬¡Ê¶ì¾Ð¡Ë >¤Ç¡¢mm ¤µ¤ó¤Ï¤½¤ì¤ò¥³¥Ô¡¼¤·¤Æ ¥Ô¥ó¥Ý¡Á¥ó¡ª ¸å¤ÇÄ´¤Ù¤è¤¦¤È»×¤Ã¤Æ¡¢Ëº¤ì¤Æ¤Þ¤·¤¿¡Ê¶ì¾Ð¡Ë >¤Ç¡¢jcode::convert ¤Ï¡¢SJIS ¤Î 0xFA40 (i) ¤ò 0xFAC0 ¤Ë >ÊÑ´¹¤¹¤ë¤è¤¦¤Ç¤¹¤¬¡¢¤³¤ì¤Ï¿ʬ´Ö°ã¤Ã¤¿·ë²Ì¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡£ jcode.pl ¤ÎÊÑ´¹Éôʬ¤Ã¤Æ¡¢ÇÁ¤¤¤¿¤³¤È¤Ê¤«¤Ã¤¿¡Ê¶ì¾Ð¡Ë |
¤½¤¦¤Ç¤¹¤Í¡£EUC¤À¤«¤éµÕ¤Ç¤¹¤Í¡£JIS¤Ë¤³¤À¤ï¤ê²á¤®¤Æ¤·¤Þ¤Ã¤¿¤è¤¦¤Ç¤¹¡£ >¤³¤Î·Ç¼¨ÈĤǤϡ¢ÆþÎÏʸ»úÎó¤ò jcode::convert ¤ò»È¤Ã¤Æ EUC ¤Ë >ÊÑ´¹¤·¡¢EUC ¥³¡¼¥É¤Çµ¡¼ï°Í¸ʸ»ú¤Î¥Á¥§¥Ã¥¯¤ò¤·¤Æ¤¤¤Þ¤¹¡£ ¥Õ¥©¡¼¥à¤¬Á÷½Ð¤·¤¿¥Ç¡¼¥¿¤¬¤É¤¦¤¤¤¦´Á»ú¥³¡¼¥É¤À¤Ã¤¿¤«¤È¤¤¤¦ÅÀ¤â µ¤¤Ë¤Ê¤ê¤Þ¤¹¡£°ìÈ̤ˤϥե©¡¼¥à¤Î¤¢¤ë¥Ú¡¼¥¸¤ÈƱ¤¸´Á»ú¥³¡¼¥É¤Ë ¤Ê¤ë¤³¤È¤¬Â¿¤¤¤è¤¦¤Ç¤¹¤¬¡¢²¾¤Ë¤½¤¦¤À¤È¤¹¤ë¤È¡¢¥¡¼¥Ü¡¼¥É¤«¤é ¥Õ¥©¡¼¥à¤ËÆþÎϤ·¤¿ºÝ¤Ë¤ÏSJIS¤À¤Ã¤¿¤Î¤¬¡¢¥Õ¥©¡¼¥à¤¬¥Ç¡¼¥¿¤ò Á÷½Ð¤¹¤ëºÝ¤Ë¤ÏEUC¤ËÊÑ´¹¤µ¤ì¡¢jcode'convert()¤¬ÆþÎÏ´Á»ú¥³¡¼¥É¤Î ¼«Æ°È½Äê¤ò¤¹¤ëºÝ¤Ë¿¿ô·è¤ÎÏÀÍý¤ÇEUC¤ÈȽÄꤵ¤ì¡¢»ä¤¬jcode.pl¤ò ¸«¤ë¸Â¤ê¤Ç¤ÏEUC->EUC¤Ç¤Ï¥«¥Ê¤ÎȾ³Ñ<->Á´³ÑÊÑ´¹¤ò¤·¤Ê¤¤¸Â¤ê¤Ï ²¿¤â¤·¤Ê¤¤¤è¤¦¤Ê¤Î¤Ç¡¢jcode.convert()¤ÇMSB¤¬Î©¤Ã¤¿¤³¤È¤Ï ͤêÆÀ¤Ê¤¤¤è¤¦¤Ç¤¹¡£ |
0xFA40¤¬EUC¤ËÊÑ´¹¤µ¤ì¤ëºÝ¤Ë¤É¤¦¤¤¤¦µóÆ°¤ò¤·¤¿¤«¤È¤¤¤¦ÅÀ¤â ÌäÂê¤Ç¤¹¡£½ñ¤Ëº¤ì¤Æ¤¤¤Þ¤·¤¿¡£ |
> Êä½õ´Á»ú (JIS X 0212) ¤ËÃÖ´¹¤¹¤ë¤Î¤â°ì¤Ä¤Î²ò¤Ê¤è¤¦¤Ç¤¹¤Í¡£ ¤ª¤Ã¤È¡¢Â礤ʴª°ã¤¤¡£ ¤³¤Î·Ç¼¨ÈÄ¤Ï (¤È¤¤¤¦¤è¤ê EUC-JP ¤Ï) 13,89¡Á92 ¶è¤ò°·¤¨¤Þ¤¹¤¬¡¢ 115¡Á119 ¶è¤Îµ¡¼ï°Í¸ʸ»ú¤ÏÁ´¤Æ13,89¡Á92 ¶è¤ÎÊý¤Ë¤â´Þ¤Þ¤ì¤Æ ¤¤¤ë¤Î¤Ç¡¢jcode.pl ¤ò¤¤¤¸¤Ã¤Æ¡¢SJIS ¤Î 115¡Á119¶è¤ò 13,89¡Á92¶è¤ËÊÑ´¹¤¹¤ë¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤ï¤±¤Ç¤¹¤Í¡£ > jcode::convert ¤Ï¡¢SJIS ¤Î 0xFA40 (i) ¤ò 0xFAC0 ¤Ë > ÊÑ´¹¤¹¤ë¤è¤¦¤Ç¤¹¤¬ ºòÆü¤Ï³Î¤«¤Ë¼ê¤â¤È¤Ç³Îǧ¤·¤¿¤Ä¤â¤ê¤À¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ º£Æü»î¤·¤Æ¤ß¤ë¤È jcode::convert(*,'euc') ¤Ç¡¢ SJIS ¤Î 0xFA40 ¤¬ 0x13C0 (¤¿¤Ö¤ó) ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£ > ¥Õ¥©¡¼¥à¤¬Á÷½Ð¤·¤¿¥Ç¡¼¥¿¤¬¤É¤¦¤¤¤¦´Á»ú¥³¡¼¥É¤À¤Ã¤¿¤« > ¤È¤¤¤¦ÅÀ¤âµ¤¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤³¤³¤â´Þ¤á¤ÆºÆÅÙ¥Á¥§¥Ã¥¯¤·¤Æ¤ª¤¤Þ¤¹¡£ > ÉáÄ̤«¤É¤¦¤«¤Ï¤è¤¯ÃΤé¤Ê¤¤¤ó¤Ç¤¹¤¬¡¢¡Ö¤¤¤Á¡×¤ò´Á»úÊÑ´¹¤·¤Æ¤â ¤Ê¤ë¤Û¤É¡£115¡Á119 ¶è¤Ø¤ÎÂбþ¤Ïɬ¿Ü¤Ç¤¹¤Í¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ > ´Ö°ã¤¤¤Ê¤¯115¶è¤ÏFA¤Ë¤Ê¤Ã¤Æ¤Þ¤¹¡£ ¤³¤ì¤Ï¸þ¤¦¤ËÏ¢Íí¤·¤Æ¤ª¤¤Þ¤¹¡£ |
>ºòÆü¤Ï³Î¤«¤Ë¼ê¤â¤È¤Ç³Îǧ¤·¤¿¤Ä¤â¤ê¤À¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢ >º£Æü»î¤·¤Æ¤ß¤ë¤È jcode::convert(*,'euc') ¤Ç¡¢ >SJIS ¤Î 0xFA40 ¤¬ 0x13C0 (¤¿¤Ö¤ó) ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£ »ä¤¬»î¤·¤Æ¤ß¤ë¤È¡¢0x13A1¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ 0xFA40¤¬¼«Æ°È½Äê¤ÇSJIS¤È¤µ¤ì¤ë¤Î¤Ï´Ö°ã¤¤¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£ >$re_sjis_c = '[\201-\237\340-\374][\100-\176\200-\374]'; ¤Ï0xFA40¤ò´Þ¤ß¤Þ¤¹¤«¤é¡£ °ìÊý¡¢ >$re_euc_c = '[\241-\376][\241-\376]'; ¤Ç¤Ï´Þ¤Þ¤ì¤Þ¤»¤ó¡£ |
¤¢¡¢¤½¤¦¤Ç¤¹¡£¥¹¥¯¥ê¥×¥È¤¬¼ê¸µ¤Ë¤Ê¤¤¤Î¤Ç¥¢¥ì¤Ç¤¹¤¬¡¢ ¿ʬ 0x13A1 ¤Ç¤·¤¿¡£¤Ï¤Æ¡¢ºòÆü¸«¤¿ 0xFAC0 ¤Ï¸¸¤Ç¤¢¤Ã¤¿¤«? °ìÈÖ´Êñ¤Ê¤Î¤Ï¡¢require 'jcode.pl' ¤·¤Æ¡¢jcode::init ¤Ç ½é´ü²½¤µ¤ì¤¿¸å¤Ë %jcode::s2e ¤Ë115¡Á119¶èÁêÅö¤Î¥Æ¡¼¥Ö¥ë¤ò Äɲ乤뤳¤È¤«¤Ê¤¡¡£ # jcode.pl ¤Ï¤¤¤¸¤ê¤¿¤¯¤Ê¤¤¤«¤é¤Ê¤ó¤À¤±¤É¡¢(¥³¡¼¥Ç¥£¥ó¥°ºîË¡ # ¤È¤·¤Æ¤Ï) ¤è¤¯¤Ê¤¤¡Ä¤Ç¤¹¤è¤Í¡£ |
»ä¤Î¾ì¹ç¡¢ --- #!/usr/local/bin/perl require "jcode.pl"; while(<>) { &jcode'convert(*_, "euc"); print; } --- ¤³¤ÎÄøÅ٤Υ¹¥¯¥ê¥×¥È¤Ç¤¹¡£ÍפÏÂ礷¤¿¤³¤È¤ä¤Ã¤Æ¤¤¤Þ¤»¤ó¡£(^^; ÆþÎϤ¬ 000000 FA 40 0A ¤Î»þ¤Ë¡¢¥¹¥¯¥ê¥×¥È̾ kconv.pl ¤È¤·¤Æ % ./kconv.pl test > test.e ¤È¤·¤¿·ë²Ì¡¢ 000000 13 A1 0A ¤È¤¤¤¦½ÐÎϤˤʤê¤Þ¤·¤¿¡£ |
ÃΤäƤ¤¤¿¤é¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¥·¥§¥ë¤ò»ÈÍѤ·¤Æ£Ó£Ñ£Ì£Ð£Ì£Õ£Ó¤Î¤ä¤êÊý¤Ë¤Ä¤¤¤Æ¤Ç¤¹¤¬¡¢ °Ê²¼¤Î(1)¤Î¥·¥§¥ë¤«¤é£ó£ñ£ì£ð£ì£õ£ó¤Ë¤Æ£Ï£Ò£Á£Ã£Ì£Å¤ËÀܳ¤· (2)¤Î¥Õ¥¡¥¤¥ë¤Î£ó£ñ£ìʸ¤ò¼Â¹Ô¤µ¤»¤¿¤¤¤Î¤Ç¤¹¤¬¡¢ ¤½¤Î»þ¤Ë(2)¤Î¾ò·ïʸ¤Î'xxxxxxx'¤ò(1)¤Î¥·¥§¥ë¤«¤é°ú¿ô¤È ¤·¤Æ(2)¤ËÅϤ·¤¿¤¤¤Î¤Ç¤¹¤¬¤É¤¦¤·¤¿¤éÎɤ¤¤«¤ï¤«¤ê¤Þ¤¹¤Ç ¤·¤ç¤¦¤«¡© ¤Þ¤¿¡¢(2)¤Î£ó£ñ£ìʸ¤Ë¤ÆÆÀ¤¿¾ðÊó¤ò(1)¤Î¥·¥§¥ë¤ËÍ¿¤¨¤ë¾ì¹ç ¤Ï¤É¤¦¤¹¤ì¤ÐÎɤ¤¤Ç¤¹¤«¡© (1)aaaa.sh¥Õ¥¡¥¤¥ë -------------------------------------------------- sqlplus user/passward @bbbb.sql -------------------------------------------------- (2)bbbb.sql¥Õ¥¡¥¤¥ë -------------------------------------------------- select item1 from use_table where item2 = 'xxxxxxx' --------------------------------------------------- |
¤³¤ì¤Ï SQL ¤ÎÏäǤ¹¤«? ¤Ê¤é¤ÐËͤˤϤ狼¤ê¤Þ¤»¤ó¡£ ¤¸¤ã¤Ê¤¯¤Æ¡¢¤¢¤ë¥Õ¥¡¥¤¥ë¤ÎÆâÍƤΰìÉô¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î°ú¿ô¤È¤·¤Æ ÅϤ·¤¿¤ê¡¢½ÐÎÏ·ë²Ì¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î°ú¿ô¤È¤·¤ÆÅϤ·¤¿¤ê¡¢¤È¤¤¤¦ ¤³¤È¤Ç¤¹¤«? ¤Ä¤Þ¤ê¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Î½ñ¤Êý¤ò¼ÁÌ䤷¤Æ¤¤¤ë¤Î¤Ç¤¹¤«? ¤â¤·¸å¼Ô¤Ê¤é¡¢¤Á¤ç¤Ã¤È°ÕÌ£¤¬ÄϤá¤Ê¤¤¤Ç¤¹¡£ ¡Ö¤â¤·¥Õ¥¡¥¤¥ë¤ÎÆâÍƤ¬ xxxxx ¤À¤È¤·¤¿¤é¡¢¤½¤ÎÃ椫¤é yyy ¤ÎÉôʬ¤Î¼è¤ê½Ð¤·¡¢ ºÇ½ªÅª¤Ë zzz user/passward @bbbb.sql xxxxx ¤È¤¤¤¦É÷¤Ë¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤¿¤¤¡× ¤Ê¤É¤ÈÎã¤ò½ñ¤¤¤Æ²¼¤µ¤¤¡£ > SJIS ¤Î 0xFA40 ¤Ç¤Ï¡¢¤Ê¤¼¥Õ¥¡¥¤¥ë¤Ë¤Ï 0xFAC0 ¤¬½ñ¤«¤ì¤Æ¤¤¤ë¤ó¤À¤í¤¦? |
µÕlink ¤è¤êÁ̤äÆÅо줵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ ¤É¤¦¤â...»²¹Í¤Ë¤Ê¤Ã¤Æ¤¦¤ì¤·¤¤¤Ç¤¹¡£¡ä»²¹Í¤Ë¤Ê¤Ã¤¿Êý ·É°¦¤¹¤ë¡¢68user ¤µ¤ó¤È¤³¤Î·Ç¼¨ÈÄ¤Ç URL ½ñ¤¤¤Æ¤¤¤¿¤À¤¤¤Æ´¶·ã¤Ç¤¹¡£ ¤¢¡¼¤È¡¢Í¼±¼Ô·Ï¤«¤é·ù¤ï¤ì¡¢UG ·Ï¤«¤é¤Ï¡¢¤â¤Ã¤È¡¢¤¢¤Ö¤Ê¤¤¾ðÊó¤ò ¤È¤ÎÀ¼¤ò¤¤¤¿¤À¤¯²æ¤¬ Web ¤Ç¤¢¤ê¤Þ¤¹(^^;;; ¤µ¤Æ¡¢jcode.pl ¤Ç¡¢sjis ¤È¡¡EUC ¤È¤ÎȽÊ̤ˤĤ¤¤Æ... ¤«¤Ä¤Æ¡¢È¾³Ñ¥«¥Ê¤ò jcode.pl ¤Ç°·¤¤¤¿¤¤¤¿¤«¤Ã¤¿¤Î¤Ç¡¢ ¤¤¤í¤¤¤í»î¹Ôºø¸í¤·¤¿·ë²Ì¤¬¡¢ http://www2d.biglobe.ne.jp/~gama/cgi/jcode/jcode.htm ¤Ë¤¢¤ê¤Þ¤¹¡£ ¼«Ê¬¾¡¼ê¤ËȽÊ̤¹¤ë¥ë¡¼¥Á¥ó¤ò ÊѤ¤·¤Æ¤¤¤Þ¤¹¡£ ¤´»²¹Í¤Ë¤Ê¤ì¤Ð¡¢¹¬¤¤¤Ç¤¹¡£ |
> ·É°¦¤¹¤ë¡¢68user ¤µ¤ó¤È¤³¤Î ¤â¤Á¤Ã¤È°Î¤¤¿Í¤ò·É°¦¤·¤Æ²¼¤µ¤¤ :-) > ¼«Ê¬¾¡¼ê¤ËȽÊ̤¹¤ë¥ë¡¼¥Á¥ó¤ò ÊѤ¤·¤Æ¤¤¤Þ¤¹¡£ ¤Ç¤ÏÁá®ÇÒ¸«¡Ä¤È»×¤Ã¤¿¤é¡¢getcode.pl ¤¬ not found ¤Ê¤è¤¦¤Ç¡Ä(^^; |
Á°¤Î¿Í¤Î FORM ÆâÍƤ¬»Ä¤Ã¤Æ¤·¤Þ¤¦¤Î¤È¡¢cookie ¤Î¥Ç¡¼¥¿¤¬ ´Ö°ã¤Ã¤Æ¤¿¤Î¤ò½¤Àµ¡£¤É¤¦¤«¤Ê? |
½é¤á¤Þ¤·¤Æ¡£CGI(perl¥¹¥¯¥ê¥×¥È)¤Î¤³¤È¤ÇÄ´¤Ù¤´¤È¤ò¤·¤Æ¤¤¤¿¤é¤¿¤É¤êÃ夤ޤ·¤¿¡£ ¤Ç¤¹¤¬´Î¿´¤Î¤½¤ÎÄ´¤Ù¤´¤È¤Ë¤Ä¤¤¤Æ¤Ï¤Ê¤«¤Ê¤«»×¤Ã¤¿¤è¤¦¤Ê¥Ú¡¼¥¸¤¬¸«¤Ä¤«¤é¤º¡¢¤Á¤ç¤Ã¤Èº¤¤Ã¤Æ¤ª¤ê¤Þ¤¹¡£ °ì¸«¤µ¤ó¤Ë¤Æ¶²½Ì¤Ç¤¹¤¬¡¢¤Ç¤¤¿¤é¤´½õ¸À²¼¤µ¤¤¡£ ²¿¤«¤È¤¤¤¦¤È¡¢¡ÖHTTP¤Î¡Ê¥ê¥¯¥¨¥¹¥È¡Ë¥Ø¥Ã¥À¡×¤Ë¤Ä¤¤¤Æ¤Ç¤¹¡£Ìõ¤¢¤Ã¤ÆWeb¥Ú¡¼¥¸¤ò¼èÆÀ¤¹¤ë¥¹¥¯¥ê¥×¥È¤ò¼«Á°¤Ç ÍÑ°Õ¤¹¤ëɬÍפ¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢¤Þ¤µ¤«Get¤À¤±Á÷¤ë¤Ã¤Æ¤¤¤¦²£Ë½¤Ê¤³¤È¤Ï¤µ¤¹¤¬¤Ë¤·¤¿¤¯¤Ê¤¤¤Î¤Ç¡£¡£¡£(--; ¡¦HTTP(Í×µá)¥Ø¥Ã¥À¤Î°ìÍ÷¡Ü²òÀâ ¡¦Ä̾ï¤Î¥Ö¥é¥¦¥¶¤¬Á÷¿®¤·¤Æ¤¤¤ë¥Ø¥Ã¥À¤Ë¤Ä¤¤¤Æ ¤È¤¤¤Ã¤¿¾ðÊ󤬵ºÜ¤µ¤ì¤Æ¤¤¤ë¥Ú¡¼¥¸¤òõ¤·¤Æ¤ª¤ê¤Þ¤¹¡£ ¤â¤Á¤í¤ócgi¤Ê¤É¤Ç´Ä¶ÊÑ¿ô°ìÍ÷¤òɽ¼¨¤µ¤»¤¿·ë²Ì¡Ê±þÅú¥Ø¥Ã¥À¡Ë¤È´ðËÜŪ¤ËÂ纹¤¬¤Ê¤¤¤³¤È¤Ï ¸¤¸¤Æ¤ª¤ê¤Þ¤¹¤¬¡¢¤ä¤Ï¤ê°ìÅÙ³Îǧ¤·¤Æ¤ª¤¤¿¤¤¤Î¤Ç¤¹¡£ ¤Þ¤¿¡¢¼êË¡¤òÊѤ¨¤Æ¡¢LWP¤Ê¤É¤Î¥â¥¸¥å¡¼¥ë¤Ç¥Ø¥Ã¥À¤ò¸ÄÊÌÀßÄê¤Ç¤¤ë¤«¤É¤¦¤«¤Ê¤É¤âÄ´¤Ù¤Æ¤ß¤ë¤Ä¤â¤ê¤Ç¤¹¡£ ¤³¤ÎÊդξðÊó¤Ç¤â¹½¤¤¤Þ¤»¤ó¤Î¤Ç¤ª´ê¤¤¤·¤Þ¤¹¡£ °Ê¾å¡¢ÂçÊѤ郎¤Þ¤Þ¤Ê¼ÁÌä¤Ç¤¹¤¬¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ ¡ôRFC¤ò¸«¤í¤Ã¤Æ¤¤¤¦¤Î¤Ï¤´´ªÊÛ²¼¤µ¤¤¡£(^^; |
> ¡¦Ä̾ï¤Î¥Ö¥é¥¦¥¶¤¬Á÷¿®¤·¤Æ¤¤¤ë¥Ø¥Ã¥À¤Ë¤Ä¤¤¤Æ http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=658 ¤ÇÍѤϤê¤Þ¤¹¤«? > ¡¦HTTP(Í×µá)¥Ø¥Ã¥À¤Î°ìÍ÷¡Ü²òÀâ RFC¡Ä¡£¤â¤·¶â¤òʧ¤Ã¤Æ¤â¤¤¤¤¤Ê¤é http://www.oreilly.co.jp/BOOK/webcli.htm > LWP¤Ê¤É¤Î¥â¥¸¥å¡¼¥ë¤Ç¥Ø¥Ã¥À¤ò¸ÄÊÌÀßÄê¤Ç¤¤ë¤«¤É¤¦¤« ¤È¤ê¤¢¤¨¤º perldoc LWP::UserAgent perldoc HTTP::Headers perldoc HTTP::Request perldoc URI::URL ¤ò¸æ°ìÆɲ¼¤µ¤¤¡£ |
>> ¼«Ê¬¾¡¼ê¤ËȽÊ̤¹¤ë¥ë¡¼¥Á¥ó¤ò ÊѤ¤·¤Æ¤¤¤Þ¤¹¡£ > ¤Ç¤ÏÁá®ÇÒ¸«¡Ä¤È»×¤Ã¤¿¤é¡¢getcode.pl ¤¬ not found ¤Ê¤è¤¦¤Ç¡Ä(^^; Link ľ¤·¤Þ¤·¤¿(^^;;; http://www2d.biglobe.ne.jp/~gama/cgi/jcode/jcode.htm |
http://www2d.biglobe.ne.jp/~gama/cgi/jcode/k-jis.htm ¤³¤Á¤é¤Î¥Ú¡¼¥¸¤Ê¤ó¤Ç¤¹¤¬¡¢JIS¤Ç8bit¤ÎȾ³Ñ¥«¥Ê¤ò»È¤Ã¤Æ¤¤¤ë ¤è¤¦¤Ç¤¹¤¬¡¢ESC ( I ¤Ç7bit¤Î¥«¥Ê¤ò»È¤¦¤Î¤¬ÉáÄ̤À¤È »×¤¦¤Î¤Ç¤¹¤¬¡£³Ø¹»¤ÎFreeBSD-3.3+NC4.7¤Ç¤ÏSJIS¤äEUC¤Î¥Ú¡¼¥¸¤Ï ¸«¤¨¤ë¤Î¤Ç¤¹¤¬(Ⱦ³Ñ¥«¥Ê¤â)¡¢¤³¤³¤À¤±²½¤±¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ ²È¤Î´Ä¶(Win95+NN3.04)¤Ç¤Ï¤³¤³¤âʸ»ú²½¤±¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢ ¥½¡¼¥¹¤ò¸«¤¿»þ¡¢È¾³Ñ¥«¥Ê¤ÎÉôʬ¤À¤±JIS¤¬²½¤±¤Æ¤¤¤Ê¤¤¤Î¤Ç µ¤¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡£ |
> ¤³¤Á¤é¤Î¥Ú¡¼¥¸¤Ê¤ó¤Ç¤¹¤¬¡¢JIS¤Ç8bit¤ÎȾ³Ñ¥«¥Ê¤ò»È¤Ã¤Æ¤¤¤ë > ¤è¤¦¤Ç¤¹¤¬¡¢ESC ( I ¤Ç7bit¤Î¥«¥Ê¤ò»È¤¦¤Î¤¬ÉáÄ̤À¤È > »×¤¦¤Î¤Ç¤¹¤¬¡£³Ø¹»¤ÎFreeBSD-3.3+NC4.7¤Ç¤ÏSJIS¤äEUC¤Î¥Ú¡¼¥¸¤Ï > ¸«¤¨¤ë¤Î¤Ç¤¹¤¬(Ⱦ³Ñ¥«¥Ê¤â)¡¢¤³¤³¤À¤±²½¤±¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ ¤¢¡¢¤Ê¤ë¤Û¤É¡¢¸½ºß¤Î¤Ï¼êµö¤Î Win95 ¾å¤Î¥¨¥Ç¥£¥¿¤Ç¥³¡¼¥ÉÊÑ´¹¤ò ½èÍý¤·¤¿·ë²Ì¤Ê¤Î¤Ç¡¢Â¿Ê¬È¾³Ñ¥«¥Ê¤¬ 8bit ¤Ê¤ó¤Ç¤¹¤Í¡£ ¤º¡¼¤Ã¤È¡¢¤½¤ì¤Ç¤¤¤¤¤È»×¤¤¤³¤ó¤Ç¤Þ¤·¤¿¡£ 7bit Ⱦ³Ñ¥«¥Ê¤È¤«¤¤¤¦¤È¡¢20 ǯ°Ê¾å¤¯¤é¤¤¤Îµ¬³Ê¤È¤¤¤¦»×¤¤¤³¤ß¤¬¤¢¤Ã¤¿ ¤ï¤±¤Ç¤¹¡£ > ²È¤Î´Ä¶(Win95+NN3.04)¤Ç¤Ï¤³¤³¤âʸ»ú²½¤±¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢ > ¥½¡¼¥¹¤ò¸«¤¿»þ¡¢È¾³Ñ¥«¥Ê¤ÎÉôʬ¤À¤±JIS¤¬²½¤±¤Æ¤¤¤Ê¤¤¤Î¤Ç µ¤¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡£ |
¥²¡¼¥à·Ï·Ç¼¨ÈĤòºî¤Ã¤Æ¤ß¤¿¤Î¤Ç»È¤Ã¤Æ¤ß¤Æ |
£Ð£Ã¾å¤Ç¡¢C++¤ÇºîÀ®¤·¤¿DLL¤ò¡¢UNIX¾å¤Ç»È¤¨¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¡£ ¤É¤Î¤è¤¦¤Ë¤·¤Æ¤¤¤±¤Ð¤è¤¤¤«¡¢¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ C++Æâ¤Ç¤É¤Î¤è¤¦¤ÊÊÑ´¹¤ò¹Ô¤¤¡¢UNIX¾å¤Ë¤Æ¥³¥ó¥Ð¡¼¥È¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«¡© |
¼ÁÌ䤬¤¢¤ê¤Þ¤¹¡£¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ %¡¡ls ¥Õ¥¡¥¤¥ë̾¡¡ ¤È¤·¤¿»þ¤Ë³ºÅö¥Õ¥¡¥¤¥ë¤¬Ìµ¤«¤Ã¤¿¾ì¹ç ls:No match. ¤È½Ð¤Þ¤¹¤¬¤³¤Î¥á¥Ã¥»¡¼¥¸¤ò½Ð¤µ¤Ê¤¤ÊýË¡¤¬ ¤¢¤ê¤Þ¤·¤¿¤é¶µ¤¨¤Æ²¼¤µ¤¤¡£ |
> C++¤ÇºîÀ®¤·¤¿DLL¤ò¡¢UNIX¾å¤Ç»È¤¨¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¡£ Windows ¤ÏÁ´¤¯ÃΤê¤Þ¤»¤ó¤¬ (DLL ¤Ã¤Æ¥é¥ó¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê ¤Ç¤¹¤è¤Í? ¤È¤¤¤¦¤¯¤é¤¤¤·¤«ÃΤé¤Ê¤¤)¡¢DLL ¤ò UNIX ¤Ë »ý¤Ã¤Æ¤¯¤ë¤Î¤Ï¤µ¤¹¤¬¤Ë̵Íý¤Ç¤·¤ç¤¦¡£ C++ ¤Î¥½¡¼¥¹¤ò»ý¤Ã¤Æ¤¤Æ¡¢ar ¤Ç¥¢¡¼¥«¥¤¥Öºî¤ë¤«¡¢ld ¤Ç ¥é¥ó¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê¤òºî¤ë¤Î¤¬¤Þ¤Ã¤È¤¦¤ÊÊýË¡¤À¤È»×¤¤¤Þ¤¹¡£ > ls:No match. > ¤È½Ð¤Þ¤¹¤¬¤³¤Î¥á¥Ã¥»¡¼¥¸¤ò½Ð¤µ¤Ê¤¤ÊýË¡ ¡ÖNo match¡×¤¬½Ð¤ë¤Î¤Ï ¡Ötcsh ¤Ç¡¢¥ï¥¤¥ë¥É¥«¡¼¥É¤ò»È¤Ã¤Æ¡¢¥Þ¥Ã¥Á¤·¤Ê¤«¤Ã¤¿¤È¤¡× ¤À¤È»×¤¤¤Þ¤¹¤¬¡¢ % (ls hoge* >/dev/tty) >& /dev/null ¤Ç¡¢É¸½à¥¨¥é¡¼½ÐÎϤò¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¤È¤«¡¢ % set nonomatch % ls hoge* ¤È¤·¤Æ¡¢¥Þ¥Ã¥Á¤·¤Ê¤«¤Ã¤¿¤È¤¤Ë¥¨¥é¡¼¤Ë¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤È¤«¡¢ % set noglob % ls hoge* ¤È¤·¤Æ¡¢ºÇ½é¤«¤é¥ï¥¤¥ë¥É¥«¡¼¥É¤òŸ³«¤µ¤»¤Ê¤¤¡¢¤Ê¤É¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ perl¤Ç¥á¡¼¥ë¤ò¼õ¿®¤¹¤ëÊýË¡¤òÄ´¤Ù¤Æ¤¤¤¿¤È¤³¤í¡¢¤³¤Á¤é¤Î·Ç¼¨ÈĤò ȯ¸«¤·¤Þ¤·¤¿¡£ ¤ª¿Ò¤Í¤·¤¿¤¤¤³¤È¤Ï¡¢pop3¥µ¡¼¥Ð¡¼¤«¤é¥á¡¼¥ë¤ò¼õ¿®¤·¡¢¤½¤Î¥á¡¼¥ë¤Î źÉÕ¥Õ¥¡¥¤¥ë¤òWindows¤Î¥Õ¥©¥ë¥À¤ËÊݸ¤¹¤ëÊýË¡¤Ç¤¹¡£ UNIX¤äCGI¤Î·Ð¸³¤¬Á´¤¯Ìµ¤¤Áǿͤʤâ¤Î¤Ç¡¢¤Ê¤«¤Ê¤«¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¡£ »²¹Í¤Ë¤Ê¤ëURL¤ä½ñÀÒÅù¤â¤¢¤ê¤Þ¤·¤¿¤é¶µ¤¨¤Æ¤¤¤¿¤À¤±¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£ OS¤ÏWindowsNT4.0Ëô¤ÏWindows95¤Ç¤¹¡£ µ¹¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
POP ¤Ø¤Î¥¢¥¯¥»¥¹¤Ï http://X68000.startshop.co.jp/~68user/net/ ¤òÆɤó¤Ç²¼¤µ¤¤¡£ multipart ¥á¡¼¥ë¤ò¥Ð¥é¤¹¤Î¤Ï¡¢perl ¤Î MIME-tools ¥â¥¸¥å¡¼¥ë¤Ç ¤Ç¤¤½¤¦¤Ê´¶¤¸¤Ç¤¹ (»î¤·¤¿¤³¤È¤Ê¤¤¤Î¤Ç)¡£¤ï¤«¤é¤Ê¤«¤Ã¤¿¤é ¤Þ¤¿¼ÁÌ䤷¤Æ²¼¤µ¤¤¡£ |
> multipart ¥á¡¼¥ë¤ò¥Ð¥é¤¹¤Î¤Ï¡¢perl ¤Î MIME-tools ¥â¥¸¥å¡¼¥ë¤Ç perl ¤Î MIME-tools¡¢IO-stringy¡¢MailTools ¥â¥¸¥å¡¼¥ë¤ò Æþ¤ì¤Æ¡¢perldoc MIME::Parser ¤Î¥µ¥ó¥×¥ëÄ̤ê¤ä¤Ã¤Æ¤ß¤¿¤é ¤¢¤Ã¤µ¤ê¤Ç¤¤Þ¤·¤¿¡£¥â¥¸¥å¡¼¥ë¤ËÍê¤ë¤È´Êñ¤À¤Ê¤¡¡£ |
: : ¿®¤¸¤é¤ì¤Ê¤¤¤±¤ÉËÜÅö¤ÎÏᣡ¡¡¡ : : »ä¤Ï¤¢¤ëÆüBBS¤Ç1000±ß¤¬200Ëü±ß¤Ë¡¢¡¢¡¢¤È¤«¤¤¤Æ¤¢¤ë¤Î¤ò¸«¤¿¡£ : : 200Ëü±ß¤â¤Î¤ª¶â¤¬Í¹Á÷¤µ¤ì¤Æ¤¯¤ë¤È½ñ¤¤¤Æ¤¢¤Ã¤¿¡£ : : ¤Þ¤µ¤«¡¢¤½¤ó¤Ê¤Ë¤Ï¡¢¡¢¡¢¤È»×¤Ã¤Æ¤Ï¤ß¤¿¤¬¡¢ : : ¤ä¤é¤Ê¤¤ã²¿¤â¤Ï¤¸¤Þ¤é¤Ê¤¤¡¢¤Þ¤¡¡¢²¿¤â¤Ê¤¯¤Æ1000±ß¤¯¤é¤¤¤Î»¤À¤·¡¢¡¢¡¢ : : ¤Þ¡¢¿ôËü¤¯¤é¤¤¤Ï¡¢¡¢¡¢¡¢¡£¤È¡¢»×¤Ã¤Æ¤¤¤¿¡£ : : (¥Û¥ó¥È¤Ë·Ú¤¤µ¤»ý¤Á¤Ç)¤À¤«¤é¡¢¤½¤ÎBBS¤Î¤È¤ª¤ê¤Ë¤ä¤Ã¤Æ¤ß¤¿¡£ : : »ä¤¬¤ä¤Ã¤¿¤³¤È¤Ï¡¢½ñ¤´¹¤¨¤¿¥Õ¥¡¥¤¥ë(¤³¤Îʸ½ñ¤Ç¤¹)¤ò : : ¥Ë¥å¡¼¥¹¥°¥ë¡¼¥×¤äBBS¤ÎÅŻҷǼ¨ÈĤʤɤË(¡ª¡ª½ÐÍè¤ë¤À¤±Â¿¤¯¤Î¡ª¡ª) : : ¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¡£ : : ¤½¤·¤Æ»ä¤Ï¤ª¶â¤¬Íè¤ë¤Þ¤Ç¤É¤¤É¤¤·¤Ê¤¬¤éÂԤäƤ¤¤¿¡£ : : »ä¤Ï10Ëü±ß¤ä15Ëü±ß¤°¤é¤¤Íè¤ë»þ¤·¤Þ¤¦¤È¤³¤í¤ò³ÎÊݤ·¤Æ¤¤¤¿¡£¡¡ : : ¤Ç¤â¡¢¡¢¡¢¡£¤ª¶â¤ÎÆþ¤Ã¤¿ÉõÅû¤¬¤É¤ó¤É¤ó͹Êؼõ¤±¤ËÆþ¤Ã¤Æ¤¯¤ë¤Î¤Ë¤Ï¡¢ : : ¶ÄÅ·¤·¤¿¡£¡ª¡ª¡¡¤µ¤Æ¡¢»ä¤Ë¤¤¤¯¤é¤ª¶â¤¬Á÷¤é¤ì¤Æ¤¤¿¤Ç¤·¤ç¤¦¡© : : 10Ëü¡©20Ëü¡©50Ëü¡©»ä¤Ï¹ç·×¡ª¡ª¡ªÌó200Ëü±ß¡ª¡ª¡ª±³¡¢¡¢¡¢¡¢¡¢¡£ : : ¤³¤Î¤ª¶â¤òÌܤˤ·¤Æ¤Þ¤À¤·¤ó¤¸¤é¤ó¤Ê¤¤¤Ã¤Æ´¶¤¸¡ª¡ª¡ª : : ¤µ¤Æ¡¢¤½¤Î¶ñÂÎŪ¤ÊÊýË¡¤ò½ñ¤¤Þ¤¹¡£¤Á¤ã¤ó¤È¥Õ¥¡¥¤¥ë¤ËÊݸ¤·¤Æ¤ª¤¯¤ÈÎɤ¤¤è¡£ : : ¤¢¤È¤ÇÌò¤ËΩ¤Á¤Þ¤¹¡£·¯¤¬Ê§¤ï¤Ê¤¯¤Æ¤Ï¤¤¤±¤Ê¤¤Êª¤Ï¡¢5Ëç¤ÎÀڼꡢÉõÅû¡¢1000±ß¡£ : : ¤½¤ì¤ò¡¢¥ê¥¹¥È¤Î5¿Í¤Ë¡¢¹çˡŪ¤Ë¸½¶â¤òÁ÷¤ëÊýË¡¤ÇÁ÷¤ë¡£¤½¤·¤Æ¡¢·¯¤Î̾Á°¤È : : ½»½ê¤¬½ñ¤¤¤Æ¤¢¤ëÊý¤Î¥Õ¥¡¥¤¥ë¤ò¤¤¤í¤¤¤í¤Ê¤È¤³¤í¤Ë¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¡£ : : ¤½¤¦¤·¤¿¤é¤¿¤Ã¤¿1000±ß¤¢¤²¤ë¤À¤±¤Ç150Ëü±ß¤«¤é250Ëü±ß¤ÎÌá¤ê¤¬3¡Á5½µ´Ö¤Ç : : ÆϤ¤Þ¤¹¡ª¡ª¡ª¡ª : : ¤Ç¤Ï¶ñÂÎŪ¤Ë¤É¤¦¤¹¤ì¤ÐÎɤ¤¤«¡© : : ¡ö ¡ö¡ö̾Á°¤È½»½ê¤Î¥ê¥¹¥È¤ÏºÇ¸å¤Ë¤¢¤ê¤Þ¤¹¡£¡ö¡ö¡ö : : ¤Þ¤º°ìËç¤Î»æ¤Ë¡Ö»ä¤ò¤¢¤Ê¤¿Êý¤Î¥ê¥¹¥È¤ËÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£¡×¤³¤ì¤ò½ñ¤¯¤³¤È¤Ë¤è¤ê¡¢ : : ¤³¤Î¥¹¡¼¥Ñ¡¼¥Þ¥Í¡¼¥·¥¹¥Æ¥à¤ÏÀ®¤êΩ¤Á¤Þ¤¹¡£(¹çË¡¤Ë¤Ê¤ê¤Þ¤¹¡£)¡¡ : : ¤¢¤Ê¤¿¤Ï200±ß¤ò¥é¥ó¥À¥à¤Ëʧ¤¦¤Î¤Ç¤Ï¤Ê¤¯¤³¤Î¥·¥¹¥Æ¥à¤Ëʧ¤¦¤Î¤Ç¤¹¡£ : : ¤½¤¦¤½¤¦¡¢»æ¤Ë¼«Ê¬¤Î̾Á°¤È½»½ê¤È¤¢¤Ê¤¿¤¬½Ð¤¹¿Í¤Ï¥ê¥¹¥È¤Î²¿ÈÖÌܤˤ¤¤¿¤«¤ò : : ½ñ¤¤Þ¤¹¡£ : : 1¡¥¡Ê¤¢¤Ê¤¿¤Ï¥ê¥¹¥È¤Ç¤Ï¡¢¡ûÈÖÌܤˤ¤¤Þ¤·¤¿¡Ë¤È¡¢½ñ¤¤Þ¤¹¡£ : : 2¡¥¡Ê1¡Ë¤Ç½ñ¤¤¤¿»æ¤ò200±ß¤Ë¤Þ¤¤Ä¤±¤Þ¤·¤ç¤¦¡£¤½¤·¤ÆÉõÅû¤ËÆþ¤ì¡¢ : : ¡¡¥ê¥¹¥È¤Ë½ñ¤¤¤Æ¤¢¤ë5¤Ä¤Î½»½ê¤ËÁ÷¤ë¡£¡¡»æ¤ò200±ß¤Ë´¬¤¤Ä¤±¤Æ¡¢¡¡¡¡ : : ¡¡200±ß¤ò¸«¤¨¤Ê¤¯¤¹¤ë¤Î¤Ë¤Ï¥ï¥±¤¬¤¢¤ê¤Þ¤¹¡£¡¡ : : ¡¡Í¹ÊؤǸ½¶â¤òÁ÷¤Ã¤Æ¤Ï¤¤¤±¤Ê¤¤¤Î¤À¡£Í¹Êضɤ˹ԤäÆ200±ß¤Î5Ëç¤Ë¤·¤Æ¤âÎɤ¤¡£ : : ¡¡¼ê¿ôÎÁ10±ß¡£¾®°ÙÂؤÀ¤Ã¤¿¤é¤Þ¤¯É¬Íפ¬¤Ê¤¤¤è¡ª : : ¡ö ¡ö¤³¤Î¥¹¥Æ¥Ã¥×¤Ï½ÅÍפǤ¹¡£¡ö¡ö : : 3¡¥¤µ¤Æ¡¢¤³¤³¤«¤é¤¬½ÅÍס£¤è¤¯Æɤó¤Ç¡¢¥·¥¹¥Æ¥à¤òÍý²ò¤·¤Æ¤Í¡£ : : ¡¡°ìÈÖ¾å¤Î¿Í¤ò¾Ã¤¹¡£¤½¤·¤Æ¾¤Î³§¤Î¥Ý¥¸¥·¥ç¥ó¤ò°ì¤Ä¤º¤Ä¾å¤²¤ë¡£ : : ¡¡¤Ä¤Þ¤ê¡¢¥Ý¥¸¥·¥ç¥ó2¤Î¿Í¤òP1¤Ë¡¢P3¤Î¿Í¤òP2¤Ë¡¢P4¤Î¿Í¤òP3¤Ë¡¢P5¤Î¿Í¤òP4¤Ë : : ¡¡¤«¤¨¤ë¤È¤¤¤¦¤³¤È¡£¤½¤·¤Æ¥Ý¥¸¥·¥ç¥ó5¤Ë·¯¤Î̾Á°¡¢½»½ê¡¢Í¹ÊØÈֹ桢¹ñ¤ò : : ¡¡½ñ¤¤³¤à¤ï¤±¡£ : : 4¡¥¤½¤·¤Æ¡Ê£³¡Ë¤ÇÊѤ¨¤¿¤³¤ì¤Î¥Õ¥¡¥¤¥ë¤ò¤¤¤í¤¤¤í¤Ê¤È¤³¤í¤Ë½ÐÍè¤ë : : ¡¡¤À¤±¤¿¤¯¤µ¤ó¥¢¥Ã¥×¥í¡¼¥É¤·¤Þ¤¹¡£¡¡¡¡ : : ¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¤Ö¤ó¼«Ê¬¤ËÄ·¤ÍÊ֤äƤ¤Þ¤¹¡£ : : ¼«Ê¬¤È¾¤Î4¿Í¤Ë¤â¤ª¶â¤¬Æþ¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ : : ¤µ¤Æ³§¤µ¤ó¡¢¥ê¥¹¥È¤Ë¤Ä¤¤¤Æ¤ÏÀµÄ¾¤Ë¤·¤Þ¤·¤ç¤¦¡ª¡ª¡¡ : : ±ø¤¤»ö¤·¤Ê¤¯¤Æ¤â¡¢¤ª¶â¤Ï¤¤¤Ã¤Ñ¤¤Æþ¤ë¤«¤é¡£¥¦¥½¤ÏÀäÂФ˼¤á¤Þ¤·¤ç¤¦¡£OK¡© : : 5¡¥¤³¤³¤Þ¤Ç¤¤¿¤é¤â¤¦¸å¤Ï¿ÍÀ¸³Ú¤·¤ß¤Þ¤·¤ç¤¦¡£ : : ¡¡¤ª¶â¤ÏÃ塹¤È·¯¤Î͹Êؼõ¤±¤ËÆþ¤Ã¤Æ¤¤Þ¤¹¡£ : : ½é¤á¤Æ2½µ´Ö¤¯¤é¤¤¤«¤é¤ª¶â¤¬Æþ¤ê¤Ï¤¸¤á¤Æ3¡Á4½µ´ÖÌܤˤϤª¶â¤ÎÂæÉ÷¤¬·¯¤Î : : ͹Êؼõ¤±¤ò½±¤¤¤Þ¤¹¡£¡¡¤Ó¤Ã¤¯¤ê¤·¤Æ¶«¤Ð¤Ê¤¤¤è¤¦¤Ë¤Í¡£ : : ¤ª¶â¤¬¤Ê¤¯¤Ê¤Ã¤Æ¤¤¿¤éËô´û¤Ë½ñ¤´¹¤¨¤¿¥Õ¥¡¥¤¥ë¤Ë¡Ê£´¡Ë¡Á¤Î¹ÔÄø¤ò·«¤êÊÖ¤·¤Þ¤·¤ç¤¦¡£ : : ÀäÂФˤ³¤Î¥Õ¥¡¥¤¥ë¤Ï¤Ê¤¯¤µ¤Ê¤¤¤è¤¦¤Ë¡£ : : ²¿Å٤Ǥâ»È¤¨¤ë¤«¤é¡£»²¹Í¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£ : : ̾Á°¤È½»½ê¤Î¥ê¥¹¥ÈÀµÄ¾¤¬¤³¤Î¥×¥í¥°¥é¥à¤òÀ®¸ù¤µ¤»¤ë¡ª¡ª¡ª : : 1¡¥ ²£»³Èþͳµª¡¡¢©193-0932ÅìµþÅÔȬ²¦»Ò»ÔÎÐÄ®401¡Ý105 : : 2¡¥ ÇÈ¿ÌÍü¡¡¢©860-0085·§Ëܸ©·§ËܻԹâÊ¿2-16-5 : : 3¡¥ ±ºÀ¾¹°ÌÀ¡¡¢©524¡¼0101¼¢²ì¸©¼é»³»Ôº£ÉÍÄ®2620-14-216 : : 4¡¥ ¼¾å·ò°ì¡¡¢©014-0722½©Åĸ©ÀçËÌ·´ÃæÀçÄ®ËÀî»ú²¼±ä17-2 : : 5. ¾®´Ø¥ê¥Î¡¡¢©080-0834Ë̳¤Æ»ÂÓ¹»Ô°ðÅÄÄ®À¾£±Àþ£µÈÖÃÏ£±£±£µ : : ¤¢¤Ê¤¿¤ËÁ´¤¯¥Þ¥¤¥Ê¥¹¤Ï¤¢¤ê¤Þ¤»¤ó¡ª¡ª¡ª¡ª : : ·¯¤Ë¤ª¶â¤òÁ÷¤Ã¤Æ¤¤¿¿Í¤Î̾Á°¤Ï¤Ê¤¯¤µ¤Ê¤¤¤è¤¦¤Ë¤·¤¿¤Û¤¦¤¬Îɤ¤¤Ç¤·¤ç¤¦¡£¡¡ : : ¤ß¤ó¤Ê¤Ç¸øÊ¿¤Ë¤³¤Î¥·¥¹¥Æ¥à¤ò»È¤¤¤Þ¤·¤ç¤¦¡£ : : ºÇ¸å¤Ë¡§ÀµÄ¾¤¬¤³¤Î¥·¥¹¥Æ¥à¤òÀ®¸ù¤µ¤»¤ë¤Î¤Ç¤¹¡ª¡ª¡ª : : ¤â¤·¤â¤¢¤Ê¤¿¤¬¤ª¶â¤ò¥ê¥¹¥È¤Î¸Þ¿Í¤Ë½Ð¤µ¤Ê¤¤Èܶ±¼Ô¤À¤Ã¤¿¤é¤¢¤Ê¤¿¤Ï¤¢¤Þ¤ê : : ¤ª¶â¤ò¤â¤é¤¨¤Ê¤¤¡£»ä¤Ï狼¤¬¤ª¶â¤ò¥ê¥¹¥È¤Î¸Þ¿Í¤ËÁ÷¤é¤Ê¤«¤Ã¤¿¤Î¤Ç3Ëü±ß¡Ê2¥ö·î¸å¤Ë¡Ë : : ¤·¤«¤â¤é¤¨¤Ê¤«¤Ã¤¿¤Î¤òÃΤäƤ¤¤ë¡£¤½¤ì¤«¤é¤ª¶â¤ò¥ê¥¹¥È¤Î5¿Í¤ËÁ÷¤Ã¤¿¤Î¤Ç¥ê¥¹¥È : : ¤Î¿Í¤¿¤Á¤ÏÈà¤ò¥ê¥¹¥È¤ËÆþ¤ì¤Æ¤¢¤²¤¿¡£¤½¤·¤Æ4¡Á5½µ´Ö¸å¤ËÈà¤Ï200Ëü±ß°Ê¾å¼ê¤ËÆþ¤ì¤¿¤Î¤Ç¤¹¡£¡¡ : : ¤³¤ì¤ÏËÜÅö¤ÎÏäǤ¹¤è¡ª¡ª¡ª¡¡¡Ê¤Á¤ç¤Ã¤È¤Ó¤Ã¤¯¤ê¡Ë : : ¤À¤Þ¤µ¤ì¤¿¤È»×¤Ã¤Æ1000±ß½Ð¤»¤Ð¤¹¤´¤¤Âç¶â¤¬¼ê¤ËÆþ¤ê¤Þ¤¹¡ª¡ª¡ª¡Ê¾åµ¤Î¤³¤È¤«¤é¡Ë : : ¡¡¤³¤Î¥Á¥ã¥ó¥¹¤òÂç»ö¤Ë¤·¤Þ¤·¤ç¤¦¡ª¡ª¡ª |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£Ta¤È¿½¤·¤Þ¤¹¡£ whois.cgi¤Ë´Ø¤·¤Æ¡¢¤ªÊ¹¤¤·¤¿¤¤¤³¤È¤¬¤¢¤ë¤Ç¤Î¤¹¤¬¡¢¤â¤·¤è¤«¤Ã¤¿¤é¶µ¤¨¤Æ²¼¤µ¤¤¡£ »ä¤ÎISP¤Ï¡¢LINUX(Redhat)¤ò»ÈÍѤ·¤Æ¤¤¤ë¤¿¤á¡¢68User¤¬ºî¤é¤ì¤¿cgi¤Î¥¹¥¯¥ê¥×¥È¤Î °ìÉô¤òÊѹ¹¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤Ëµ¤¤¬ÉÕ¤¤Þ¤·¤¿¡£ ¥ª¥ê¥¸¥Ê¥ë¤Ç¤Ï¡¢'whois -h whoisserver domain'¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢Linux¤Ç¤Ï¡¢whois ¥³¥Þ¥ó¥É¤Î¥Ñ¥é¥á¡¼¥¿¡¼¤¬°ã¤¦¤è¤¦¤Ç¡¢'whois domain\@whoiserver'¡Ê'whois domain@whoiserver'¤È¤¤¤¦¥Ñ¥é¥á¡¼¥¿¡¼¤â¸«¤¿¤³¤È¤¬¤¢¤ë¤ó¤Ç¤¹¤¬¡Ë¤È¤¤¤¦¤³¤È¤Ê¤Î¤Ç¡¢¥¹¥¯¥ê¥×¥ÈÆâ¤Î°Ê²¼¤ÎÉôʬ¤Î¤ß¤òÊѹ¹¤·¤Þ¤·¤¿¡£ ¡ôÊѹ¹Á° $ret = `$whois -h $nics{$nic} $domain`; ¡ôÊѹ¹¸å $ret = `$whois $domain\@$nics{$nic}`; ¤³¤ì¤Ë¥×¥é¥¹¤·¤Æ¡¢ÅöÊý¤ÎISP¤Ç¤Ï¡¢'whois'¤¬¡¢'/bin'¤Ë¤¢¤ë¤Î¤Ç¡¢'environment.pl'¤Î'$whois'¤Î¥Ñ¥¹¤â'/bin/whois'¤ËÊѹ¹¤·¤Þ¤·¤¿¡£ ¤È¤³¤í¤¬¡¢¥µ¡¼¥Ð¡¼¥¨¥é¡¼¤¬½Ð¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ISP¤ÇÍÑ°Õ¤·¤Æ¤¢¤ë¥Ç¥Ð¥Ã¥¯¤Îµ¡Ç½¡Êweb ¤«¤é¹Ô¤¦¡Ë¤òÍøÍѤ·¤Æ¤ß¤¿¤È¤³¤í¡¢°Ê²¼¤Î¤è¤¦¤Ê·ë²Ì¤¬¤Ç¤Þ¤·¤¿¡£ ----------------------------------- TEST 1: script and permissions Passed Test 1! TEST 2: script file format Passed Test 2! TEST 3: check perl path Passed Test 3! TEST 4: perl syntax String found where operator expected at t_whois.cgi line 45, near "print "" (Might be a runaway multi-line "" string starting on line 33) (Missing semicolon on previous line?) syntax error at t_whois.cgi line 45, near "print "" t_whois.cgi had compilation errors. Your script failed one or more of the tests and could not be automatically corrected. Please correct the errors listed above and try again. ----------------------------------- Ä´¤Ù¤Æ¤ß¤¿¤È¤³¤í¡¢¤ª¤½¤é¤¯¡¢Êѹ¹¤·¤¿Éôʬ¤Î¤¬´Ø·¸¤¹¤ë¤È»×¤¦¤Î¤Ç¤¹¤¬¡¦¡¦¡¦ ¸¶°ø¤¬¤è¤¯Ê¬¤«¤ê¤Þ¤»¤ó¡£ ¤â¤·¡¢²ò·èÊýË¡¤ò¤´Â¸ÃΤǤ·¤¿¤é¡¢¤´»ØƳ失¤ì¤Ð½õ¤«¤ê¤Þ¤¹¡£ Ta |
> (Might be a runaway multi-line "" string starting on line 33) > (Missing semicolon on previous line?) ¡Ö33¹ÔÌܤ«¤é»Ï¤Þ¤ë "" ¤¬ÊĤ¸¤Æ¤Ê¤¤¤Î¤Ç¤Ï¤Ê¤¤¤«?¡× ¡ÖÁ°¤Î¹Ô¤ÎºÇ¸å¤Ë¥»¥ß¥³¥í¥ó¤òÉÕ¤±Ëº¤ì¤Æ¤¤¤Ê¤¤¤«?¡× ¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¡£ > $ret = `$whois $domain\@$nics{$nic}`; ¤³¤ì¼«ÂΤÏÌäÂꤢ¤ê¤Þ¤»¤ó¡£ |
68User¤µ¤ó¡¢ÁᮤΤªÊÖ»öͤêÆñ¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¥¹¥¯¥ê¥×¥È¤Ï³Îǧ¤·¤¿¤È»×¤¦¤Î¤Ç¤¹¤¬¡¢ºÆÅÙ¡¢³Îǧ¤·¤Æ¤ß¤Þ¤¹¡£ ¤â¤·¡¢¤Þ¤¿Ê¬¤«¤é¤Ê¤¤¤³¤È¤¬¤¢¤ì¤Ð¡¢¤ªÊ¹¤¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¢ ¤è¤í¤·¤¯¤ª´ê¤¤Ãפ·¤Þ¤¹¡£ Ta |
ÅÙ¡¹¤¹¤¤¤Þ¤»¤ó¡£Ta¤Ç¤¹¡£¥¹¥¯¥ê¥×¥È¤Ë¥ß¥¹¤¬¤¢¤ê¤Þ¤·¤¿¡£¤½¤Î¸å¡¢¥Ç¥Ð¥Ã¥¯¤ò¤·¤Æ¤ß¤ë¤È¡¢Á´¤Æ¥Ñ¥¹¤·¤Þ¤·¤¿¡£ TEST 1: script and permissions Passed Test 1! TEST 2: script file format Passed Test 2! TEST 3: check perl path Passed Test 3! TEST 4: perl syntax t_whois.cgi syntax OK Passed Test 4! Your script has passed all 4 tests. If your script passes these tests, and still won't run, you might look for one or more of these common problems: 1) make sure it can find any files or external programs it needs 2) make sure any included perl programs also check out 3) make sure you are writing a "Content-type:" line at the beginning of your output Consult your favorite Perl/CGI book for more information. ¤³¤ì¤ÇÆ°¤¯¤«¤È»×¤Ã¤¿¤é¡¢Internal Server Error¡¦¡¦¡¦ ¤¦¡Á¤ó¡¢¤Ê¤ó¤Ç¤À¤«Ê¬¤«¤ê¤Þ¤»¤ó¡£environment.pl¤Ï¡¢$whois¤Î¥Ñ¥¹¤ò½¤Àµ¤¹¤ë¤À¤±¤Ç¡¢¤¤¤¤¤Ï¤º¤Ç¤¹¤è¤Í¡£ ²¿¤«¡¢¥Á¥§¥Ã¥¯¤·¤Æ¤ß¤ë¤È¤³¤í¤¬¤¢¤Ã¤¿¤é¶µ¤¨¤Æ²¼¤µ¤¤¡£ Ta |
¤È¤ê¤¢¤¨¤º¡¢ > open(STDOUT,"|$nkf -j"); open(STDOUT,"| /usr/local/bin/nkf -j"); > &put_header("whois¤·¤Æ¤ß¤è¤¦ -- $domain --"); print "Content-type: text/html\n\n"; print "<HTML>\n<HEAD><TITLE>whois¤·¤Æ¤ß¤è¤¦ -- $domain --</TITLE></HEAD>\n"; print "<BODY ...(ά)...>\n"; > &finish_work; print "</BODY>\n</HTML>\n"; ¤Ê¤É¤È½ñ¤´¹¤¨¤Æ¡¢environment.pl ¤Ê¤·¤ÇÆ°¤¯¤è¤¦¤Ë¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£ ¤½¤ì¤Ï¤½¤ì¤È¤·¤Æ ¤Ê¤¼Æ°¤«¤Ê¤¤¤«¤È¤¤¤¦¤È¡¢CGI ·Ðͳ¤Ç¼Â¹Ô¤·¤¿ºÝ¤Ë environment.pl ¤¬Æɤ߹þ¤á¤Æ¤¤¤ë¤«¤É¤¦¤«¤¬µ¤¤Ë¤Ê¤ê¤Þ¤¹¡£ if ( ! require 'environment.pl' ){ print "Content-type: text/plain\n\nCan't load environment.pl\n"; exit; } ¤Æ¤Ê´¶¤¸¤Ç¥Á¥§¥Ã¥¯¤¹¤ë¤È¤¤¤¤¤Ç¤·¤ç¤¦¡£ |
½é¤á¤Þ¤·¤Æ¡Ám(_ _)m ¤Á¤ç¤Ã¤Èʹ¤¤¿¤¤»ö¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢unix¤Çmo¤Ë¥Ç¡¼¥¿¤ò¥»¡¼¥Ö¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© ´Ä¶¤Ï¤¢¤ë¤ß¤¿¤¤¤Ê¤Î¤Ç¤¹¤¬¡¢¤ä¤êÊý¤¬Ê¬¤«¤ê¤Þ¤»¤ó¡£ °ø¤ß¤Ëroot¸¢¸Â¤Ï¤Ê¤¤¤Ç¤¹¡£ unix¤Ïsolaris¤Ç¤¹¡£ |
68User¤µ¤ó¡¢¿§¡¹¤È¥¢¥É¥Ð¥¤¥¹ÍÆñ¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤É¤¦¤·¤Æ¤â¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¡£'nkf'¤Î¥Ñ¥¹¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡© ¡Ê'environment.pl'¤ò»È¤ï¤Ê¤¤ÊýË¡¤Ç¹Ô¤Ã¤Æ¤ß¤Þ¤·¤¿¡Ë 'whois'¤â¡¢·ë¶É¡¢Ä´¤Ù¤¿¤È¤³¤í¡¢'/bin/whois'¤Ç¤·¤¿¤·¡¦¡¦¡¦ º£ÈÕ¡¢¤Þ¤¿Ä©À路¤Æ¤ß¤Þ¤¹¡£ |
¤Þ¤º¤Ï #!/usr/local/bin/perl $|=1; print "Content-type: text/plain\n\n"; print `/bin/whois yahoo.co.jp@whois.nic.ad.jp` ¤³¤³¤«¤é»Ï¤á¤Þ¤·¤ç¤¦¡£¤³¤ì¤Ç¥À¥á¤Ê¤é whois ¤ÎÌäÂê¤Ç¤¹¡£Æ°¤¤¤¿¤é #!/usr/local/bin/perl $|=1; open(STDOUT,"|/usr/local/bin/nkf -j"); print "Content-type: text/plain\n\n"; print `/bin/whois yahoo.co.jp@whois.nic.ad.jp` ¤È¤·¤Æ²¼¤µ¤¤¡£¤³¤ì¤Ç¥À¥á¤Ê¤é nkf ¤Î¥Ñ¥¹¤¬ÌäÂê¤Ç¤¹¡£ whois.nic.ad.jp ¤Ï JIS ¥³¡¼¥É¤òÊÖ¤·¤Þ¤¹¤¬¡¢whois.cgi ¤Ï EUC ¤Ç½ñ¤«¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢nkf ¤Çʸ»ú¥³¡¼¥É¤òÅý°ì¤·¤Æ¤¤¤Þ¤¹¡£ ¤Ê¤Î¤Ç¡¢ºÙ¤«¤¤»ö¤ò¸À¤¦¤È¾å¤ÎÎã¤Ç¤Ï nkf ¤ÏÍפê¤Þ¤»¤ó (¥¹¥¯¥ê¥×¥È¤¬ EUC ¤ò (¤È¤¤¤¦¤«¡¢ÆüËܸì¤ò) ½ÐÎϤ·¤Æ¤¤¤Ê¤¤¤«¤é)¡£ > unix¤Çmo¤Ë¥Ç¡¼¥¿¤ò¥»¡¼¥Ö¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© ¤³¤³¤é¤Ø¤ó¤¬¥Ò¥ó¥È¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¤«¡£ http://www.pfu.co.jp/x86/faq/ Ëͼ«¿È¤Ï·Ð¸³¤¬¤Ê¤¤¤Î¤Ç¤ï¤«¤ê¤Þ¤»¤ó¡£ |
¡ÖHTTP ¥¯¥é¥¤¥¢¥ó¥È¤òºî¤Ã¤Æ¤ß¤è¤¦¡×¤È¡¢2000/01/12(¿å) 20:56¤Î proxy¤Ë´Ø¤¹¤ë½ñ¤¹þ¤ß¤ò»²¹Í¤Ë¤·¤¿¤é¡¢´Êñ¤Êproxy¥µ¡¼¥Ð¡¼¤¬¡¢ ´Êñ¤Ëºî¤ì¤Þ¤·¤¿¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡ª ¡ô¡¡¤Ç¤â¡¢¿ô¹Ô¤ÎÄɲ两ãºÑ¤Þ¤Ê¤«¤Ã¤¿¤Ê¤¡¡£¤â¤Ã¤È½¤¹Ô¤¹¤ì¤Ð ¡ô¡¡½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤ë¤ó¤À¤í¤¦¤±¤É¡¦¡¦¡¦ |
¤Ê¤Ë¤ä¤é¤¤¤í¤¤¤íÂçÊѤ½¤¦¤Ç¤¹¤Í¡£ ¤È¤³¤í¤Ç·Ç¼¨ÈĤÎÏäʤó¤Ç¤¹¤¬¡Ä¡£ ¥í¥°¤Î´ÉÍý¤È¤«¡¢¤Ê¤ó¤«¤¤¤¤°ÆÉâ¤Ó¤Þ¤·¤¿¡© ²¶¤Ï¤¢¤ó¤Þ¹Í¤¨¤Æ¤Ê¤¤¤Ç¤¹¤±¤É¡£ ¤½¤ì¤È¤¦¤Á¤Î·Ç¼¨ÈÄ¡¢²áµî¥í¥°°ìÍ÷¤ò¤Á¤ç¤Ã¤È ʤÙÂؤ¨¤Æ¤ß¤Þ¤·¤¿¡Ê¤Ê¤Ë¤ä¤Ã¤Æ¤ó¤À¤«¡Ä¡Ë¡£ ¤â¤·¤è¤«¤Ã¤¿¤é»È¤Ã¤Æ¤ä¤Ã¤Æ²¼¤µ¤¤¡£ ¤½¤ì¤Ç¤Ï¤Þ¤¿¡£ |
> ¡ô¡¡¤Ç¤â¡¢¿ô¹Ô¤ÎÄɲ两ãºÑ¤Þ¤Ê¤«¤Ã¤¿¤Ê¤¡¡£ ¤½¤¦¤Ç¤·¤¿¤«¡£¼ÂºÝ¤Ëºî¤Ã¤Æ¤ß¤¿¤ï¤±¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢¤½¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤¿¤À¡¢¼ÂÍѤǻȤª¤¦¤È¤¹¤ë¤È¡¢¥Þ¥ë¥Á¥¹¥ì¥Ã¥É²½¤·¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¤¬¡¢ ¤½¤Î¾ì¹ç¤Ï·ë¹½¹Ô¿ô¤ÏÁý¤¨¤Þ¤¹¤Í¡£ > ¥í¥°¤Î´ÉÍý¤È¤«¡¢¤Ê¤ó¤«¤¤¤¤°ÆÉâ¤Ó¤Þ¤·¤¿¡© ¥í¥°¤ò1¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ë¤Þ¤È¤á¤ë¤«¡¢1.txt¡¦2.txt¡Ä¤Èʬ¤±¤ë¤«¡¢¤Ç¤¹¤«? ¼ÂºÝ¤Î¤È¤³¤í¡¢¤½¤ì¤¾¤ì¥á¥ê¥Ã¥È¡¦¥Ç¥á¥ê¥Ã¥È¤¬¤¢¤ê¤Þ¤¹¤«¤é¡¢Æñ¤·¤¤¤Ç¤¹¤Í¡£ # <Email ....> Êý¼°¤Ï¤ä¤á¤è¤¦¤È»×¤Ã¤Æ¤Þ¤¹¡£<Email>....</Email> ¥¹¥¿¥¤¥ë¤Ë # ¤¹¤ë¤Ä¤â¤ê¡£ ¤½¤ì¤Ï¤½¤ì¤È¤·¤Æ¡¢¸å¼Ô¤Î¥í¥°´ÉÍýÊý¼°¤Ë¤·¤Æ¤¯¤ì¡¢¤È¤¤¤¦¤³¤È¤Ê¤é ¤É¤Á¤é¤Ç¤âÁª¤Ù¤ë¤è¤¦¤Ë²þ¤¤·¤Þ¤¹¤±¤É ¤É¤¦¤·¤Þ¤¹? > ²áµî¥í¥°°ìÍ÷¤ò¤Á¤ç¤Ã¤ÈʤÙÂؤ¨¤Æ¤ß¤Þ¤·¤¿ ¸Ä¿ô¤¬Â¿¤¯¤Ê¤ë¤È¡¢¸«¤ä¤¹¤¤¤Ç¤¹¤Í¡£»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ ¤È¤³¤í¤Ç ML ¤Î·ï¤Ç¤¹¤¬¡¢has ¤Î¤È¤³¤í¤Ç¤ä¤Ã¤Æ¤â¤é¤¨¤Þ¤»¤ó? ¤¦¤Á¤Ï¸åǤ¤Î´ÉÍý¼Ô¤¬¤¤¤Ê¤¤¤Î¤Ç¡¢¤³¤Î»þ´ü¤Ë»Ï¤á¤ë¤Î¤Ï¤¢¤¤é¤á¤Þ¤·¤¿¡£ |
¤ä¤Ã¤È¡¢¼«ÎϤÇCGIÀßÃÖ½ÐÍè¤Þ¤·¤¿¡£ CGI¤ò¤ä¤í¤¦¤È¤·¤Æ¤«¤é¼Â¤ËÆóǯ¤â¤«¤«¤Ã¤Æ¤ë¤ó¤Ç¤¹¤±¤É ¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Èperl¤È¸À¤¦¸ÀÍդΰÕÌ£¤¬¤ä¤Ã¤Èʬ¤«¤ê¤Þ¤·¤¿ ¼¡¤Ï¼«ºî¤Ëdz¤¨¤Æµï¤¿¤é¡¢CGI ¥×¥í¥°¥é¥à¤Î¤Ï¤¸¤á¤Î°ìÊ⠤äƸÀ¤¦¥³¥ó¥Æ¥ó¥Ä¤¬ºß¤Ã¤¿¤Î¤Ç´ò¤·¤¤¤Ç¤¹¡£perl¥Ñ¥½¤ËÆþ¤ì¤Æ CGI¤ÎËÜÇã¤Ã¤Æ¤¤Þ¤¹¤è¡¼¡£¤Ê¤ó¤«¡¢CGIÀßÃ֤Ǥ¤¿¤Î¤¬ ´ò¤·¤¯¤Æ¡¢68user¤µ¤ó¤ËÊó¹ð¤¬¤·¤¿¤«¤Ã¤¿¤Î¤Ç¤¹¡¼ ¥Ò¥È¤Îºî¤Ã¤¿CGI¤¬¤¦¤´¤¤¤¿¤Ã¤Æ¤À¤±¤Ê¤ó¤Ç¤¹¤±¤É¡¢´ò¤·¤«¤Ã¤¿¤Ç¤¹¡£ |
> perl¥Ñ¥½¤ËÆþ¤ì¤Æ CGI¤ÎËÜÇã¤Ã¤Æ¤¤Þ¤¹¤è¡¼¡£ ¤½¤ì¤Ï¤è¤¤¤³¤È¤Ç¸æºÂ¤¤¤Þ¤¹¡£¤ä¤Ï¤ê¼«ºî¤¹¤ë¤Î¤¬°ìÈÖ³Ú¤·¤¤¤ï¤±¤Ç¡¢ ¤¼¤ÒÊÙ¶¯¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£ ¤¿¤À¤·¡¢Â¾¿Í¤Ëʹ¤¯Á°¤Ë¡Ö¤Þ¤ºËܤòÆɤࡢ¤Þ¤º¼«Ê¬¤ÇÄ´¤Ù¤ë¡×¤È¤¤¤¦ ¤³¤È¤Ïɬ¤º¹Ô¤¦¤è¤¦¤Ë¤·¤Æ²¼¤µ¤¤¡£¼«Ê¬¤ÇÄ´¤Ù¤é¤ì¤Ê¤¤¡¦¼«Ê¬¤Ç Ä´¤Ù¤ëµ¤¤Î¤Ê¤¤¿Í¤Ï¡¢¾å㤷¤Þ¤»¤ó¤«¤é¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¤¿¤Þ¤ê¤È¿½¤·¤Þ¤¹¡£ CGI¡¢ÆäËperl¤òÊÙ¶¯Ãæ¤Îʪ¤Ç¤¹¡£ ¡Ö¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°¤Î´ðÁÃÃμ±¡×¡¢ÌÇÃã¶ìÃ㻲¹Í¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¸½ºß¡¢68user¤µ¤ó¤Î¥¹¥¯¥ê¥×¥È¤ò»²¹Í¤Ë¡¢FTP¥¯¥é¥¤¥¢¥ó¥È¤ò½ñ¤¤¤Æ¤¤¤ë¤ó¤Ç¤¹¤¬¡¢ ¤É¤¦¤âSTOR¤¬¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¡£ ¥Õ¥¡¥¤¥ë¤¬Á÷¿®¤·½ª¤ï¤ë¤Þ¤Ç¤ËÀܳ¤òÀÚ¤é¤ì¤Æ¤·¤Þ¤¤¡¢FTPd¤¬¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò ²òÊü¤·¤Ê¤¤¤è¤¦¤Ê¾õÂ֤ˤʤäƤ·¤Þ¤¤¤Þ¤¹¡£ ÅöÊý¤Î´Ä¶¤Ï¤È¤¤¤¦¤È¡¢Windows98 + ActivePerl build 521 + TinyFTPDaemon Ver 0.51¤Ç¤¹¡£ HD¤ÎžÁ÷®ÅÙ¤¬Äɤ¤¤Ä¤«¤Ê¤¤¤Î¤«¤Ê¤È»×¤¤¡¢°Ê²¼¤Î¤è¤¦¤Ë¥¦¥§¥¤¥È¤òÆþ¤ì¤Æ¤ß¤Æ¤â ¤À¤á¤Ç¤·¤¿¡£ while (<IN>) { print DATA $_; $i = 10000; while ($i) {$i--;} } ¾åµ¤Î¥³¡¼¥É¤ÏPassive¥â¡¼¥É¤Ç¥µ¡¼¥Ð¤¬³«¤¤¤¿DATA¥Ý¡¼¥È¤ËIN¥Õ¥¡¥¤¥ë¤òPUT¤·¤Æ ¤¤¤ëÉôʬ¤À¤È¤ª¹Í¤¨²¼¤µ¤¤¡£ ·ë²Ì¤È¤·¤ÆžÁ÷®Å٤ϳΤ«¤Ë²¼¤¬¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò²òÊü¤·¤Ê¤¤ (¡áFTPd¤¬¡Ö¼õ¿®¤¬´°Î»¤·¤Þ¤·¤¿¡×¤È¸À¤ï¤Ê¤¤¡×)¤È¤¤¤¦¾É¾õ¤Ï²þÁ±¤µ¤ì¤Þ¤»¤ó¡£ ¤Ê¤ª¡¢´Ä¶¤ÎÀ©¸Â¤Ë¤è¤ê¡¢¥·¥ó¥°¥ë¥¹¥ì¥Ã¥É¤Ç½ñ¤¤¤Æ¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢´Ä¶¤Ë¤è¤ë¸¶°ø¤¬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡© ¤½¤ì¤È¤â¥³¡¼¥Ç¥£¥ó¥°¾å¤ÎÌäÂ꤬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«¡© ¤è¤í¤·¤±¤ì¤Ð¤´¶µ¼¨²¼¤µ¤¤¡£ |
> ¥Õ¥¡¥¤¥ë¤¬Á÷¿®¤·½ª¤ï¤ë¤Þ¤Ç¤ËÀܳ¤òÀÚ¤é¤ì¤Æ¤·¤Þ¤¤ ²¿¥Ð¥¤¥ÈÁ÷¤Ã¤¿¤éÀÚ¤ì¤ë¡¢¤Ê¤É¤È¤¤¤¦ºÆ¸½À¤Ï¤¢¤ê¤Þ¤¹¤«? 1¥Ð¥¤¥È¤º¤ÄÁ÷¤Ã¤Æ¤ß¤ë¤È¤É¤¦¤Ç¤·¤ç¤¦¡£¤Þ¤¿¡¢ÀÚ¤ì¤ë¤Î¤Ï ¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤Ç¤¹¤«? ¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤Ç¤¹¤«? > FTPd¤¬¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò²òÊü¤·¤Ê¤¤¤è¤¦¤Ê¾õÂÖ ¤È¤¤¤¦¤Î¤Ï¶ñÂÎŪ¤Ë¤Ï¤É¤¦¤¤¤¦¾õÂ֤Ǥ¹¤«? ¤³¤ì¤â¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤«¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤«¤ò¶µ¤¨¤Æ²¼¤µ¤¤¡£ ¤¢¤È¡¢¤³¤Î¥³¡¼¥É¤ÎÁ°¸å¿ô¹Ô¤ò¸«¤»¤Æ¤â¤é¤¨¤Þ¤¹¤«? > HD¤ÎžÁ÷®ÅÙ¤¬Äɤ¤¤Ä¤«¤Ê¤¤¤Î¤«¤Ê¤È»×¤¤ ¤³¤ì¤Ï¤µ¤¹¤¬¤Ë¤Ê¤¤¤È»×¤¤¤Þ¤¹¤è¡£Windows ¤È¤¤¤¨¤É¤â OS ¤Ç¤¹¤«¤é¡¢ ¤½¤³¤é¤Ø¤ó¤Ï¤¤Ã¤Á¤ê¤ä¤Ã¤Æ¤¯¤ì¤ë¤Ç¤·¤ç¤¦¡£ ¤Á¤ç¤Ã¤ÈµÞ¤¤¤Ç¤¤¤ë¤Î¤Ç¡¢¤³¤ÎÊդǡ£ |
> ¤³¤ì¤Ï¤µ¤¹¤¬¤Ë¤Ê¤¤¤È»×¤¤¤Þ¤¹¤è¡£ ²¾¤Ë HDD ¤¬¤È¤Æ¤âÃÙ¤«¤Ã¤¿¤È¤·¤Æ¤â¡¢ >> while (<IN>) { ¤Ç¥Ö¥í¥Ã¥¥ó¥°¤¹¤ë¤À¤í¤¦¤«¤é¡¢Æɤá¤Ê¤«¤Ã¤¿¤±¤É½èÍý¤¬ Àè¤Ë¿Ê¤à¤Ê¤ó¤Æ¤³¤È¤Ï¤Ê¤¤¤È»×¤¦¡¢¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ # ¤³¤³¤Ç¥Ö¥í¥Ã¥¥ó¥°¤·¤Æ¤¯¤ì¤Ê¤¤¤È¡¢OS ¤Î°ÕÌ£¤¬¤Ê¤¤¡£ |
½é¤á¤Þ¤·¤Æ¡¢¥»¥¬£Â£Â£Ó¤Î²áµî¥í¥°À¨¤¤¤Ç¤¹¡¢ ¤´¶ìÏ«ÍͤȤ·¤«¸À¤¨¤Þ¤»¤ó¡¢ ¤Þ¤¿¡¢¤¸¤Ã¤¯¤ê¸«¤µ¤»¤Æ¤â¤é¤¤¤Ë¤¤Þ¤¹¡¢ ¡Êº£¤«¤é¤ß¤ë¤ó¤À¤±¤É¡¢¡¢¡¢¡Ë |
> ²¿¥Ð¥¤¥ÈÁ÷¤Ã¤¿¤éÀÚ¤ì¤ë¡¢¤Ê¤É¤È¤¤¤¦ºÆ¸½À¤Ï¤¢¤ê¤Þ¤¹¤«? ºÆ¸½À¤Ï¤Ê¤¤¤è¤¦¤Ç¤¹¡£ Àܳ¤¬ÀÚ¤é¤ì¤¿»þÅÀ¤Ç¤Î¥µ¥¤¥º¤ÏÉÔÄê¤Ç¤·¤¿¡£ > 1¥Ð¥¤¥È¤º¤ÄÁ÷¤Ã¤Æ¤ß¤ë¤È¤É¤¦¤Ç¤·¤ç¤¦¡£ ¤¨¤Ã¤È¡¢¶ñÂÎŪ¤Ë¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© read¤Ç1¥Ð¥¤¥È¤º¤ÄÆɤó¤Ç¤¤¤¯¤Î¤Ç¤·¤ç¤¦¤«¡£¤Á¤ç¤Ã¤È»î¤·¤Æ¤ß¤Þ¤¹¡£ > ¤Þ¤¿¡¢ÀÚ¤ì¤ë¤Î¤Ï¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤Ç¤¹¤«? ¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤Ç¤¹¤«? ¤¹¤¤¤Þ¤»¤ó¡¢ÀâÌÀ¤¬Â¤ê¤Ê¤«¤Ã¤¿¤è¤¦¤Ç¡£ ¤É¤¦¤ä¤éQUIT¤ÏÁ÷¿®¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ê¤Î¤Ç¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤¬ÀÚ¤é¤ì¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¡£ >> FTPd¤¬¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò²òÊü¤·¤Ê¤¤¤è¤¦¤Ê¾õÂÖ FTPd¤¬µ¯Æ°Ãæ¤Ï¥¨¥¯¥¹¥×¥í¡¼¥é¤«¤é¤â¥Õ¥¡¥¤¥ë¤Îºï½üÅù¤¬¤Ç¤¤Þ¤»¤ó¡£ ¤â¤Á¤í¤ó¥¹¥¯¥ê¥×¥È¤¬½ªÎ»¤·¤Æ¤¤¤Æ¤â¡¢¤Ç¤¹¡£ FTPd¤ò½ªÎ»¤µ¤»¤ë¤È¡¢Á÷¿®¤·¤¿¥Õ¥¡¥¤¥ë¤¬¸µ¥µ¥¤¥º°Ê²¼(ÉÔÄê)¤Ç¤¢¤ë¤È¤¤¤¦´¶¤¸¤Ç¤¹¡£ ¤½¤¦¤Ê¤ë¤Èºï½üÅù¤â²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£ ¡Ö¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤«¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤«¡×¤È¤¤¤¦¤Î¤Ï¼«Ê¬¤Ë¤Ï¤ï¤«¤ê¤Þ¤»¤ó¡£ > ¤¢¤È¡¢¤³¤Î¥³¡¼¥É¤ÎÁ°¸å¿ô¹Ô¤ò¸«¤»¤Æ¤â¤é¤¨¤Þ¤¹¤«? °Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤Û¤È¤ó¤Éftptrans.pl¤òήÍѤµ¤»¤ÆÌã¤Ã¤Æ¤Þ¤¹(^^; if ($mode eq 'put') { &send_command(COMMAND, "STOR $target_file\r\n"); } elsif ($target_file =~ m|/$|) { &send_command(COMMAND, "LIST $target_file\r\n"); } else { &send_command(COMMAND, "RETR $target_file\r\n"); } &client_work(DATA, $data_connection_host, $data_connection_port); open(IN, $infile) || die "$infile: $!"; binmode(IN); while (<IN>) { print DATA $_; } close(IN) || die "close: $!"; &read_response(COMMAND); close(DATA) || die "close: $!"; &send_command(COMMAND, "QUIT$CRLF"); &read_response(COMMAND); close(COMMAND) || die "close: $!"; > # ¤³¤³¤Ç¥Ö¥í¥Ã¥¥ó¥°¤·¤Æ¤¯¤ì¤Ê¤¤¤È¡¢OS ¤Î°ÕÌ£¤¬¤Ê¤¤¡£ Åö¤Æ¤¬¤Ï¤º¤ì¤Æ¤¿¤è¤¦¤Ç¤¹¤Í(^^; ¼ÂºÝ²þÁ±¤µ¤ì¤Ê¤«¤Ã¤¿¤Ç¤¹¤·¡£ ¥Õ¥¡¥¤¥ë¤¬Á÷¿®¤·½ª¤ï¤ëÁ°¤ËQUIT¤¬Á÷¿®¤µ¤ì¤Æ¤ë¤È¸À¤¦¤³¤È¤Ï¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤¬ ÀÚÃǤµ¤ì¤ëÁ°¤Ë¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤¬ÀÚÃǤµ¤ì¤ë¤È¸À¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡© ³Î¤«FTP¤Ã¤Æ¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤ÎÀÚÃÇ¡á¥Ç¡¼¥¿¤Î½ª¤ï¤ê¤Ç¤·¤¿¤è¤Í¡© ¤Ç¤âclose¤Ç¤Ï»à¤ó¤Ç¤Ê¤¤¤è¤¦¤À¤·¡¦¡¦¡¦ ¤È¤ê¤¢¤¨¤º1¥Ð¥¤¥È¤º¤Ä¤ò»î¤·¤Æ¤ß¤Þ¤¹¡£ |
¤¢¡¢¤¹¤¤¤Þ¤»¤ó¡¢ÄûÀµ¤Ç¤¹ > &send_command(COMMAND, "QUIT$CRLF"); &send_command(COMMAND, "QUIT\r\n"); ¤Ç¤¹¡£ # ÉáÃÊ$CRLF="\r\n";¤Ç¤ä¤Ã¤Æ¤ë¤â¤Î¤Ç(^^; |
> ¥á¥ê¥¯¥ê¥¦¥¹¤µ¤ó ¥á¡¼¥ë¤ÎÊÖ»ö¤ò¤³¤³¤Ç¤µ¤»¤Æĺ¤¤Þ¤¹¤¬¡¢¿Í¤Î¿¤¤¤È¤³¤í¤«¤é ¥ê¥ó¥¯¤·¤Á¤ã¥À¥á¤Ê¤Î¤Ï¡¢¤ªÆù¤µ¤ó¤Î¤È¤³¤í¤Ç¤¹¡£¤¦¤Á¤Ï ¤É¤³¤«¤é¥ê¥ó¥¯¤·¤Æ¤â¹½¤¤¤Þ¤»¤ó¤Ç¤¹¡£ > FTPd¤¬µ¯Æ°Ãæ¤Ï¥¨¥¯¥¹¥×¥í¡¼¥é¤«¤é¤â¥Õ¥¡¥¤¥ë¤Îºï½üÅù¤¬¤Ç¤¤Þ¤»¤ó¡£ FTPd ¤¬ STOR Àè¤Î¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·Â³¤±¤Æ¤¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¤Í¡£ Ææ¤Ç¤¹¤Í¡£ ¤³¤Á¤é¤Ë¤Ï Windows ´Ä¶¤¬¤Ê¤¤¤Î¤Ç¡¢¤½¤Î¤â¤Î¤º¤Ð¤ê¤ÎÅú¤¨¤Ï ¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢»×¤¤¤Ä¤¯¤Þ¤Þ¤Ë¡£ 1. ¤Þ¤º¤Ï¾®¤µ¤Ê¥Õ¥¡¥¤¥ë¤Ç¤ä¤Ã¤Æ¤ß¤Æ²¼¤µ¤¤¡£ 2. sub client_work ¤ÎºÇ¸å¤Ç¡¢SOCK ¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ò OFF ¤Ë¤·¤Æ¤¤¤ë ¡¡($|=1) ¤Î¤Ïºï¤Ã¤Æ¤Þ¤»¤ó¤è¤Í? 3. QUIT Á÷¿®¤ÎÁ°¤Ë &read_response(COMMAND) ¤¬°ì¤Ä¤ê¤Æ¤Ê¤¤¤ó¤¸¤ã¤Ê¤¤ ¡¡¤Ç¤¹¤«? ¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤¬³ÎΩ¤·¤¿¤é¡¢ ¡¡¡¡150 Binary data connection for test/hogemoge (127.0.0.1,33299). ¡¡¤È¤¤¤¦¥ì¥¹¥Ý¥ó¥¹¡¢¤µ¤é¤ËžÁ÷¤¬´°Î»¤·¤¿¤é ¡¡¡¡226 Transfer complete. ¡¡¤È¤¤¤¦¥ì¥¹¥Ý¥ó¥¹¤¬Ê֤äƤ¤Þ¤»¤ó¤«? ¡¡(¤Ç¤â¤³¤ì¤¬¸¶°ø¤¸¤ã¤Ê¤¤¤È»×¤¦¡£¥ì¥¹¥Ý¥ó¥¹¤òÆɤޤʤ¯¤Æ¤âžÁ÷¤Ï¤Ç¤¤ë¤Ï¤º) 4. $verbose=1 ¤Ë¤·¤Æ¡¢¥×¥í¥È¥³¥ëį¤á¤Æ¤Þ¤¹¤è¤Í? 5. passive ¤Ê¤é¡¢telnet ¥³¥Þ¥ó¥É¤À¤±¤ò»È¤Ã¤ÆÁ÷¿®¤·¤Æ¤ß¤ë¤Î¤â¤¤¤¤¤«¤â¡£ 6. ftp ¤Ë¥Ç¥Ð¥Ã¥°¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æ¡¢¥×¥í¥È¥³¥ë¤ò´Ñ»¡¤·¤Æ¤ß¤Æ¤Ï¡£ >> 1¥Ð¥¤¥È¤º¤ÄÁ÷¤Ã¤Æ¤ß¤ë¤È¤É¤¦¤Ç¤·¤ç¤¦¡£ > ¤¨¤Ã¤È¡¢¶ñÂÎŪ¤Ë¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤ó¤Ç¤·¤ç¤¦¤«¡© Î㤨¤Ð¤³¤ó¤Ê´¶¤¸¤Ç¤¹¡£ &send_command("STOR $target_file\r\n"); &client_work(DATA,$data_connection_host,$data_connection_port); &read_response(COMMAND); use IO::File; sysopen(IN,$infile,O_RDONLY); binmode(IN); # sysopen ¤Ê¤éÉÔÍפ«¤Ê? while (1){ $nread = sysread(IN,$buf,1); $read_size += $nread; last if ( $nread == 0 ); print "$read_size read "; print DATA $buf || die "$!"; # À®¸ù¤·¤¿¤«¤É¤¦¤«¥Á¥§¥Ã¥¯ print "$read_size send.\n"; } close(DATA); close(IN); &read_response(COMMAND); &send_command("QUIT$CRLF"); &read_response(COMMAND); close(COMMAND); ¤È¤ê¤¢¤¨¤º¡¢²¿¥Ð¥¤¥ÈÌܤǤ³¤±¤Æ¤¤¤ë¤Î¤«¤ÏÄ´¤Ù¤é¤ì¤ë¤Ç¤·¤ç¤¦¡£ ¤¿¤À¤·¡¢¥Ñ¥±¥Ã¥È¥ì¥Ù¥ë¤Ç 1¥Ð¥¤¥È¤º¤Ä¤Î¥Ç¡¼¥¿¤¬Á÷¤é¤ì¤ë¡¢¤È¤¤¤¦ ÊݾڤϤ¢¤ê¤Þ¤»¤ó¡£ Ç°¤Ë¤ÏÇ°¤òÆþ¤ì¤Æ¡¢print DATA ¤ÎÂå¤ï¤ê¤Ë syswrite(DATA,...) ¤ò »È¤Ã¤Æ¤ß¤ë¤Î¤â¤¤¤¤¤«¤â¡£ # syswrite ¡á select(DATA);$|=1;binmode(DATA);print DATA ¤È # Ʊ¤¸¤Ï¤º¤À¤È»×¤¦¤ó¤Ç¤¹¤¬¡¢°ã¤¤¤Þ¤·¤¿¤Ã¤±¡£ Solaris ¤Î ftpd Áê¼ê¤Ë»î¤·¤Æ¤¤¤Æ»×¤Ã¤¿¤ó¤À¤±¤É¡¢ http://X68000.startshop.co.jp/~68user/net/ftp-5.html > ¼¡¤Î¥¢¥¯¥·¥ç¥ó¤Ï > ¡¡¥Ç¡¼¥¿¥³¥Í¥¯¥·¥ç¥ó¤Î³ÎΩ¤Ê¤Î¤« > ¡¡¥³¥Þ¥ó¥É¥³¥Í¥¯¥·¥ç¥ó¤«¤é¤Î¥¨¥é¡¼¥ì¥¹¥Ý¥ó¥¹¤Ê¤Î¤« > ¤Î¤É¤Á¤é¤Ê¤Î¤«¤¬ ¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤¹¡£ ¤³¤ó¤ÊÊѤʻÅÍͤϡ¢¤â¤·¤«¤·¤Æ FreeBSD ¤Î ftpd ¤À¤±¤«¤â¤·¤ì¤Ê¤¤¡Ä¡£ Ä´¤Ù¤Æ¤ª¤«¤Í¤Ð¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£¥²¡¼¥à¤Ç¤ï¤«¤é¤Ê¤¤»ö¤¬¤¢¤Ã¤¿¤Î¤Ç¡¢Ã¯¤«¶µ¤¨¤Æ²¼¤µ¤¤¡£ ¡Ö¼·¥ÄÉ÷¤ÎÅç ʪ¸ì¡×¤È¤¤¤¦¥²¡¼¥à¤Ê¤Î¤Ç¤¹¤¬¡¦¡¦¡¦ ¡ÊÃΤäƤ¤¤ë¿Í¡¢¤¤¤ë¤«¤Ê¤¡¡¦¡¦¡¦¡Ë Â裱£±¾Ï ¡Ø¾®¤µ¤¯¤Æ¥¥ì¥¤¤Êʪ¡Ù¡¦¡¦¡¦¤Ç¡¢¤É¤¦¤·¤¿¤é¤¤¤¤¤Î¤«¡¢¤ï¤«¤ê¤Þ¤»¤ó¡£ ¤¢¤Ã¤¿»ö¤È¤¤¤¨¤Ð¡¢Çò¥¬¥é¥¹¤Î¥Ò¥å¡¼¤È¡¢¥«¥ó¤¾¤¦¤Ë²ñ¤Ã¤¿»ö¤Ç¤¹¡£¤Ç¤¤ì¤Ð¡¢¤ï¤«¤ë¿Í¡¢¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ |
ÊÖ»ö¤¬ÃÙ¤¯¤Ê¤Ã¤Æ¿½¤·Ìõ¤Ê¤¤¤Ç¤¹¡£ ¤³¤³ÆóÆü¤Û¤É¿§¡¹¤¢¤Ã¤Æ²¿¤â¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿(^^; > FTPd ¤¬ STOR Àè¤Î¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·Â³¤±¤Æ¤¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¤Í¡£ ¤Ç¤¹¡£FTPd¦¤ÎÌäÂê¤È¤¤¤¦²ÄǽÀ¤â̵¤¯¤Ï¤Ê¤¤µ¤¤â¤·¤Þ¤¹¤¬(⤷¡¢ÉáÄ̤Π¥¯¥é¥¤¥¢¥ó¥È¤ò»ÈÍѤ·¤¿¾ì¹ç¤ÏÅöÁ³¤Ê¤¬¤é¤¦¤Þ¤¯Á÷¿®¤Ç¤¤Þ¤¹) ¤Þ¤º¡¢ÀèÄø»î¤·¤Æ¤ß¤¿·ë²Ì¤«¤é¡£ ¤É¤¦¤ä¤é¸¶°ø¤Ï > 3. QUIT Á÷¿®¤ÎÁ°¤Ë &read_response(COMMAND) ¤¬°ì¤Ä¤ê¤Æ¤Ê¤¤ ¤À¤Ã¤¿¤è¤¦¤Ç¤¹¡£ ¤³¤ì¤òÆþ¤ì¤¿¤é¤Þ¤È¤â¤ËÆ°¤¤¤Æ¤¯¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£ Ç°¤Î¤¿¤á¡¢¾Ü¤·¤¤Êó¹ð¤â > 1. ¾®¤µ¤Ê¥Õ¥¡¥¤¥ë(¿ôKBÄøÅÙ)¤Ç¤âƱÍͤǤ·¤¿ > 2. ºï¤Ã¤Æ¤¤¤Þ¤»¤ó¡£ > 4. ¤È¤ê¤¢¤¨¤º¤Þ¤È¤â¤ËÆ°¤¯¤è¤¦¤Ë¤·¤è¤¦¤È¨¶½¤Çºî¤Ã¤Æ¤¤¤¿¤Î¤Ç$verbose=1¤ÎÉôʬ¤Ï ºï¤Ã¤Æ¤Þ¤·¤¿(^^; ËÜÍè¤Ï¤½¤¦¤¤¤¦¤È¤¤³¤½ºÙ¤«¤¯¥Ç¥Ð¥Ã¥°¤¹¤Ù¤¤Ê¤ó¤Ç¤·¤ç¤¦¤±¤É¡¦¡¦¡¦ > 5. 6. telnet¤äftp¤ò»È¤¨¤ÐÌäÂê¤Ê¤¯Á÷¿®¤Ç¤¤Þ¤¹¡£ ¤Ê¤ª¡¢1¥Ð¥¤¥È¤º¤ÄÆɤó¤Ç¤¤¤¯ÊýË¡¤Ç¤¹¤¬¡¢ print DATA $buf || die "$!"; ¤Ç¤Ï¥Ç¡¼¥¿Åª¤Ë0x30¡¢¤Ä¤Þ¤ê'0'¤Î¤È¤³¤í¤Ç¤Ê¤¼¤«die¤¹¤ë¤è¤¦¤Ç¤¹¡£ print DATA $buf; ¤Î¤è¤¦¤Ë¤¹¤ë¤È¤¦¤Þ¤¯¤¤¤¤Þ¤·¤¿¡£ ¤Þ¤¿¡¢syswrite¤Ë´Ø¤·¤Æ¤Ï»È¤Ã¤¿¤³¤È¤¬¤Ê¤¤¤Î¤Ç¤¢¤Þ¤ê¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢ °ú¿ô¤Ïsysread¤ÈƱÍͤʷÁ¤Ç¼è¤Ã¤Æ¡¢ÊÖ¤êÃͤϽñ¤¹þ¤ó¤À¥Ð¥¤¥È¿ô¤Î¤è¤¦¤Ç¤¹¡£ ¤Þ¤¿¡¢binmode¤Ïsysopen¤ÇO_BINARY¤ò»ØÄꤷ¤Æ¤ª¤±¤ÐÉÔÍפ«¤È»×¤¤¤Þ¤¹¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
> ¤Ï¤¸¤á¤Þ¤·¤Æ¡£¥²¡¼¥à¤Ç¤ï¤«¤é¤Ê¤¤»ö¤¬¤¢¤Ã¤¿¤Î¤Ç¡¢Ã¯¤«¶µ¤¨¤Æ²¼¤µ¤¤¡£ ¤³¤³¤Ë¤Ï¥²¡¼¥à¤Ë¾Ü¤·¤¤¿Í¤Ï¤¢¤Þ¤ê¤¤¤Ê¤¤¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¡Ä¡£ > ¤É¤¦¤ä¤é¸¶°ø¤Ï >> 3. QUIT Á÷¿®¤ÎÁ°¤Ë &read_response(COMMAND) ¤¬°ì¤Ä¤ê¤Æ¤Ê¤¤ > ¤À¤Ã¤¿¤è¤¦¤Ç¤¹¡£ ¤Ê¤ë¤Û¤É¡£¤Á¤ç¤Ã¤ÈÉÔ¿ÆÀÚ¤Ê ftpd ¤Ç¤¹¤Í (¤ÈËͤϻפ¦)¡£ > ¤Ç¤Ï¥Ç¡¼¥¿Åª¤Ë0x30¡¢¤Ä¤Þ¤ê'0'¤Î¤È¤³¤í¤Ç¤Ê¤¼¤«die¤¹¤ë¤è¤¦¤Ç¤¹¡£ ¤Ê¤ó¤Ç¤Ç¤·¤ç¤¦¡£Ä´¤Ù¤Æ¤ß¤è¤¦¡£ > ¤Þ¤¿¡¢binmode¤Ïsysopen¤ÇO_BINARY¤ò»ØÄꤷ¤Æ¤ª¤±¤ÐÉÔÍפ«¤È»×¤¤¤Þ¤¹¡£ ¤¢¤¢¤½¤¦¤«¡£(C¤Ç¤¤¤¦¤È¤³¤í¤Î) open ¤Ç¤â²þ¹Ô¥³¡¼¥ÉÊÑ´¹¤Ç¤¤ë¤ó¤Ç¤¹¤Í¡£ > ¤³¤ó¤ÊÊѤʻÅÍͤϡ¢¤â¤·¤«¤·¤Æ FreeBSD ¤Î ftpd ¤À¤±¤«¤â¤·¤ì¤Ê¤¤¡Ä¡£ > Ä´¤Ù¤Æ¤ª¤«¤Í¤Ð¡£ ¤³¤ì¤Ï Solaris ¤Î ftpd ¤Ç¤âƱ¤¸¤Ç¤·¤¿¡£ÊѤʤΡ£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¥Ï¥ê¡¼¤È¿½¤·¤Þ¤¹¡£ ¼Â¤Ïº£¡¢K¥·¥§¥ë¤òºî¤Ã¤Æ¤¤¤ë¤ó¤Ç¤¹¤¬¡¢¥·¥§¥ëÆâ¤Ç export¥³¥Þ¥ó¥É¤òÂǤäƴĶÊÑ¿ô¤òÊѹ¹¤·¤è¤¦¤È¤· ¤Æ¤â¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿¡£ÉáÄ̤Ëexport¥³¥Þ¥ó¥É¤òÂÇ ¤Ã¤Æ¤â¥À¥á¤Ê¤ó¤Ç¤¹¤«¡©¤½¤ì¤È¤â½ÐÍè¤Ê¤¤¤Î¤Ç¤¹¤«¡© ¥·¥§¥ë½é¿´¼Ô¤Ê¤Î¤Ç¡¢¤è¤¯¤ï¤«¤ê¤Þ¤»¤ó¡£ ¤è¤í¤·¤¯¡¢¤ª´ê¤¤¤·¤Þ¤¹¡£ |
export HOGE=FUGA ¤Ç ¤Ç¤¤Þ¤»¤ó¤«¡£ |
¤Ï¤¤¡£ ¥·¥§¥ë¤ÎÃæ¤Çenv¤òÂǤĤÈÊѹ¹¤·¤¿´Ä¶ÊÑ¿ô¤ËÊѤï¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬ ¥·¥§¥ë¤¬½ª¤Ã¤Æ¤â¤¦°ìÅÙ¡¢env¤ò᤯¤È¸µ¤ËÌá¤Ã¤Æ¤¤¤Þ¤¹¡£ |
»Ò¥×¥í¥»¥¹¤Ç¤¤¤¯¤é´Ä¶ÊÑ¿ô¤ò¤¤¤¸¤Ã¤Æ¤â¡¢¿Æ¥×¥í¥»¥¹¤Ë¤Ï ±Æ¶Á¤·¤Þ¤»¤ó¡£¤³¤ì¤Ï¤É¤ó¤Ê¥·¥§¥ë¤Ç¤âƱ¤¸¤Ç¤¹¡£ ¶ñÂÎŪ¤Ë²¿¤ò¤·¤¿¤¤¤Î¤«¤¬¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢ ¤É¤¦¤·¤Æ¤â¤ä¤ê¤¿¤±¤ì¤Ð¡¢eval ¤ò»È¤¦¤·¤«¤Ê¤¤¤Ç¤¹¡£ |
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ ¤ä¤Ã¤Æ¤ß¤Þ¤¹¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¤Ä¤ë¤È¿½¤·¤Þ¤¹¡£ ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤Æ¤Î¼ÁÌä¤Ê¤Î¤Ç¤¹¤¬¡¢ º£¡¢¤¤¤í¤¤¤í¤È»ö¾ð¤¬¤¢¤Ã¤Æ ¤³¤³¤Î¥Ú¡¼¥¸¤ò»²¹Í¤Ë¥×¥í¥¥·¤Î¤è¤¦¤Ê¥µ¡¼¥Ð¥×¥í¥°¥é¥à¤ò ºîÀ®¤·¤Æ¤ª¤ê¤Þ¤¹¡£ ¤Ê¤Ë¤ò¤¹¤ë¥µ¡¼¥Ð¤«¤È¤¤¤¦¤È¡¢¥Ö¥é¥¦¥¶¤«¤é¤Î¥ê¥¯¥¨¥¹¥È¤ò¼õ¤±¼è¤ê ¤½¤Î¥ê¥¯¥¨¥¹¥È(GET,POST)¤ò¾¤ÎWeb¥µ¡¼¥Ð¤Ë¤½¤Î¤Þ¤ÞÁ÷¤ê¤Ä¤± ¤½¤ÎWeb¥µ¡¼¥Ð¤«¤é¤Î¥ì¥¹¥Ý¥ó¥¹¡ÊHTML)¤ò¼õ¤±¼è¤ê¡¢ ¥Ö¥é¥¦¥¶¤ËÊÖ¤·¤Æ¤ä¤ë¥µ¡¼¥Ð¤Ç¤¹¡£ ¤³¤Î¥Ú¡¼¥¸¤Î¥½¡¼¥¹¤ò»²¹Í¤Ë¤·¤Æ¤¤¤Þ¤¹¡£ ¥µ¡¼¥ÐÉôʬ¤Ïecho-server.pl¤ò http¥ê¥¯¥¨¥¹¥ÈÉôʬ¤Ïhttp-client.pl¤òÍøÍѤ·¤Þ¤·¤¿¤¬¡¢ Web¥µ¡¼¥Ð¤Þ¤Ç¤Ï¥ê¥¯¥¨¥¹¥È¤¬¹Ô¤Ã¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¤¬ ¥ì¥¹¥Ý¥ó¥¹¤¬¤¦¤Þ¤¯É½¼¨¤µ¤ì¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¸¶°ø¤¬¤ï¤«¤ê¤Ë¤Ê¤ë¤è¤¦¤Ç¤·¤¿¤é ¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ |
¥½¡¼¥¹¤Ï¤³¤ó¤Ê´¶¤¸¤Ç¤¹¡£ #!/usr/local/bin/perl -w use Socket; $server_port = 4989; # ¥½¥±¥Ã¥ÈÀ¸À® socket(CLIENT_WAITING,PF_INET,SOCK_STREAM,0) || die "¥½¥±¥Ã¥È¤òÀ¸À®¤Ç¤¤Þ¤»¤ó¡£$!"; # ¥½¥±¥Ã¥È¥ª¥×¥·¥ç¥óÀßÄê setsockopt(CLIENT_WAITING,SOL_SOCKET,SO_REUSEADDR,1) || die "setsockopt ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£$!"; # ¥½¥±¥Ã¥È¤Ë¥¢¥É¥ì¥¹(¡á̾Á°)¤ò³ä¤êÉÕ¤±¤ë bind(CLIENT_WAITING,sockaddr_in($server_port,INADDR_ANY)) || die "bind ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£$!"; # ¥Ý¡¼¥È¤ò¸«Ä¥¤ë listen(CLIENT_WAITING,SOMAXCONN) || die "listen: $!"; print "¥Ý¡¼¥È $server_port ¤ò¸«Ä¥¤ê¤Þ¤¹¡£\n"; # while(1)¤¹¤ë¤³¤È¤Ç¡¢1¤Ä¤ÎÀܳ¤¬½ª¤Ã¤Æ¤â¼¡¤ÎÀܳ¤ËÈ÷¤¨¤ë while (1){ accept(CLIENT,CLIENT_WAITING); # HTTP ¥×¥í¥È¥³¥ë¤ò»È¤¦ $port = getservbyname('http','tcp'); # ¥Û¥¹¥È̾¤ò¡¢IP ¥¢¥É¥ì¥¹¤Î¹½Â¤ÂΤËÊÑ´¹ $iaddr = inet_aton("xxx.xxx.xxx.xxx") || die "[xxx.xxx.xxx.xxx]¤Ï¸ºß¤·¤Ê¤¤¥Û¥¹¥È¤Ç¤¹¡£\n"; # ¥Ý¡¼¥ÈÈÖ¹æ¤È IP ¥¢¥É¥ì¥¹¤ò¹½Â¤ÂΤËÊÑ´¹ $sock_addr = sockaddr_in($port,$iaddr); # ¥½¥±¥Ã¥ÈÀ¸À® socket(SERVER,PF_INET,SOCK_STREAM,0) || die "¥½¥±¥Ã¥È¤òÀ¸À®¤Ç¤¤Þ¤»¤ó¡£\n"; # »ØÄê¤Î¥Û¥¹¥È¤Î»ØÄê¤Î¥Ý¡¼¥È¤ËÀܳ connect(SERVER,$sock_addr) || die "[xxx.xxx.xxx.xxx]¤Î¥Ý¡¼¥È$port¤ËÀܳ¤Ç¤¤Þ¤»¤ó¡£\n"; # ¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë SERVER ¤ò¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤·¤Ê¤¤ select(SERVER); $|=1; select(STDOUT); # ¥¯¥é¥¤¥¢¥ó¥È¤ËÂФ·¤Æ¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤·¤Ê¤¤ select(CLIENT); $|=1; select(STDOUT); # WWW¥µ¡¼¥Ð¤ËHTTP¥ê¥¯¥¨¥¹¥È¤òÁ÷¤ë while (<CLIENT>){ print SERVER "$_"; print "$_"; } # ¥Ø¥Ã¥ÀÉôʬ¤ò¼õ¤±¼è¤ë while (<SERVER>){ # ²þ¹Ô¤Î¤ß¤Î¹Ô¤Ê¤é¥ë¡¼¥×¤òÈ´¤±¤ë m/^\r\n$/ && last; } # ¥Ü¥Ç¥£Éôʬ¤ò¼õ¤±¼è¤ê¡¢É½¼¨ while (<SERVER>){ print CLIENT "$_"; print "$_"; } close(CLIENT); } ¤È¤ê¤¢¤¨¤º¡¢¥µ¥ó¥×¥ë¤ò¤½¤Î¤Þ¤ÞÍøÍѤµ¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤ª¤ê¤Þ¤¹¡£ ¤ª¤«¤·¤¤¤È¤³¤í¤¬¤¢¤ì¤Ð¤´»ØŦ²¼¤µ¤¤¡£ perl½é¿´¼Ô¤Î¤â¤Î¤Ç¤¹¤ß¤Þ¤»¤ó¡£ |
´Êñ¤Ë¸À¤¦¤È¡¢HTTP proxy ¤È¤Ï 1. proxy ¥µ¡¼¥Ð¤¬ localhost:8080 ¤ò listen ¤¹¤ë¡£ 2. ¥Ö¥é¥¦¥¶¤Î proxy ¤ÎÀßÄê¤ò localhost:8080 ¤Ë¤¹¤ë¡£ 3. ¥Ö¥é¥¦¥¶¤¬ http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi ¤òÆɤà¤È¤¡¢ ¡¡GET http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi HTTP/1.0 ¡¡Host: X68000.startshop.co.jp ¡¡User-Agent: .... ¤È¤¤¤¦¥ê¥¯¥¨¥¹¥È¤ò proxy °¸¤ËÁ÷¤ë¡£ 4. proxy ¤Ï X68000.startshop.co.jp:80 ¤ËÀܳ¤·¡¢ ¡¡GET /~68user/cgi-bin/wwwboard.cgi HTTP/1.0 ¡¡¡¡Host: X68000.startshop.co.jp ¡¡¡¡User-Agent: .... ¡¡¤È¤¤¤¦¥ê¥¯¥¨¥¹¥È¤òÁ÷¤ë¡£ 5. X68000.startshop.co.jp ¤«¤é (proxy ¤Ë) ÊÖ»ö¤¬Ê֤äƤ¤¿¤é¡¢ ¤½¤Î¤Þ¤Þ¥Ö¥é¥¦¥¶¤ËÅϤ¹¡£ ¤ò¹Ô¤¦¥×¥í¥°¥é¥à¤Ç¤¹¡£¤È¤ê¤¢¤¨¤º GET ¤òÃæ·Ñ¤Ç¤¤ë¤è¤¦¤Ë ¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£ |
¤Ä¤ë¤Ç¤¹¡£ ÁᮤΤªÊÖ»ö¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ »ÅÁȤߤϤÀ¤¤¤¿¤¤¤ï¤«¤ë¤Î¤Ç¤¹¤¬ ¼ÂºÝ¤Ëºî¤Ã¤Æ¤ß¤ë¤È¤Ê¤ë¤È¡¦¡¦¡¦¡£ ¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥à½é¿´¼Ô¤Ë¤Ï ¤«¤Ê¤ê¥¥Ä¥¤¤Ç¤¹¡£ |
> »ÅÁȤߤϤÀ¤¤¤¿¤¤¤ï¤«¤ë¤Î¤Ç¤¹¤¬ ¤³¤¦¸À¤Ã¤Á¤ã¤Ê¤ó¤Ç¤¹¤¬¡¢¼«Ê¬¤Ç¤Ï¤ï¤«¤Ã¤Æ¤¤¤ë¤Ä¤â¤ê¤Ç¤â¡¢ ¤ï¤«¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¡£ ¥¯¥é¥¤¥¢¥ó¥È¤«¤é¤Î¥Ç¡¼¥¿¤òÆɤޤʤ¤¤È¡¢proxy ¥µ¡¼¥Ð¤¬ ¤É¤³¤ËÀܳ¤·¤¿¤é¤è¤¤¤«¤ÏȽÃǤǤ¤Ê¤¤¤Î¤Ë¡¢Àè¤ËÀܳ ¤·¤è¤¦¤È¤·¤Æ¤¤¤Þ¤¹¤·¡¢ GET http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi HTTP/1.0¡¡ ¡¡ ¤ò GET /~68user/cgi-bin/wwwboard.cgi HTTP/1.0 ¤ËÊÑ´¹¤¹¤ë½èÍý¤â¤ä¤Ã¤Æ¤Þ¤»¤ó¡£ ¤Á¤ç¤Ã¤È¤º¤Äºî¤Ã¤Æ¤ß¤Æ²¼¤µ¤¤¡£ |
¤Ä¤ë¤Ç¤¹¡£ ¤¹¤¤¤Þ¤»¤ó¡£ ÀâÌÀÉÔ¤Ǥ·¤¿¡£ >¥¯¥é¥¤¥¢¥ó¥È¤«¤é¤Î¥Ç¡¼¥¿¤òÆɤޤʤ¤¤È¡¢proxy ¥µ¡¼¥Ð¤¬ >¤É¤³¤ËÀܳ¤·¤¿¤é¤è¤¤¤«¤ÏȽÃǤǤ¤Ê¤¤¤Î¤Ë¡¢Àè¤ËÀܳ >¤·¤è¤¦¤È¤·¤Æ¤¤¤Þ¤¹¤·¡¢ ¼Â¤Ï¡¢ÀܳÀè¤Ï¸ÇÄê¤Ç¤¹¡£(IP¥¢¥É¥ì¥¹»ØÄê¤Ç¤¹¡£¡Ë ÆÃÄê¤Î¥³¥ó¥Æ¥ó¥Ä¥µ¡¼¥Ð¤ËÀܳ¤·¤è¤¦¤È¤·¤Æ¤Þ¤¹¡£ >GET /~68user/cgi-bin/wwwboard.cgi HTTP/1.0 >¤ËÊÑ´¹¤¹¤ë½èÍý¤â¤ä¤Ã¤Æ¤Þ¤»¤ó¡£ ¥Ö¥é¥¦¥¶¤«¤é¤Î¥ê¥¯¥¨¥¹¥È¤Ï GET /~68user/cgi-bin/wwwboard.cgi HTTP/1.0 ¡¦¡¦¡¦ ¤Î¤è¤¦¤ËÍè¤ë¤è¤¦¤Ë¤·¤Æ¤Þ¤¹¡£ ¤½¤·¤Æ¡¢¤½¤Î¥ê¥¯¥¨¥¹¥È¤ò ¤½¤Î¤Þ¤Þ¡ÊÁàºî̵¤·¤Ç¡Ë ÀܳÀèWeb¥µ¡¼¥Ð¤ËžÁ÷¤·¤è¤¦¤È¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¦¡¦¡¦¡£ ¤¹¤¤¤Þ¤»¤ó¡¢ÀâÌÀÉÔ¤ǡ¦¡¦¡£ ¤È¤ê¤¢¤¨¤º¡¢¤â¤¦¤Á¤ç¤Ã¤È¤¬¤ó¤Ð¤Ã¤Æ¤ß¤Þ¤¹¡£ »²¹Í¤Ë¤¹¤ë¤È¤è¤¤¥Ú¡¼¥¸¤¬¤¢¤Ã¤¿¤é ¶µ¤¨¤Æ¤¯¤À¤µ¤ë¤È¹¬¤¤¤Ç¤¹¡£ ¤´ÌÂÏǤò¤ª¤«¤±¤·¤Þ¤¹¡£ |
¤È¤ê¤¢¤¨¤º 2¡Á3ÆüǺ¤ó¤Ç¤ß¤Æ²¼¤µ¤¤¡£¤½¤ì¤Ç¤â ¤ï¤«¤é¤Ê¤«¤Ã¤¿¤é¤Þ¤¿¼ÁÌ䤷¤Æ²¼¤µ¤¤¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡£ Solaris¤Înfs¤Ç¼ÁÌ䤷¤¿¤¤¤Î¤Ç¤¹¤¬¡£ .nfsAA5A ¡Ê²¼£´·å¤Ï¥æ¥Ë¡¼¥¯¤ÊÈÖ¹æ¤ËÊѲ½¤¹¤ë¡Ë ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ò¸«¤¿¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¤«¡© ¥¯¥é¥¤¥¢¥ó¥È¥Þ¥·¥ó¤«¤é¤¢¤ë¥·¥§¥ë¤òµ¯Æ°¤¹¤ë¤È ¾¡¼ê¤Ë½ÐÍè¤Æ¤·¤Þ¤Ã¤Æ¡¢º¤¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥µ¡¼¥Ð¥Þ¥·¥ó¾å¤Ç¤Ï½ÐÍè¤Ê¤¤¤Î¤Ç¤¹¤¬¡£ ¿´Åö¤¿¤ê¤¬¤¢¤ì¤Ð¡¢¤Ê¤ó¤Ç¤âÎɤ¤¤Î¤Ç¶µ¤¨¤Æ²¼¤µ¤¤¡£ |
> .nfsAA5A ÀÎ ¾Ã¤»¤Ê¤¯¤Æº¤¤ê¤Þ¤·¤¿¤¬¡¢´ÉÍý¼Ô¤Ëʹ¤¤¤¿¤é NFS ¤Ç ¥È¥é¥Ö¥ë¤¬¤¢¤Ã¤¿ºÝ¡¢ºîÀ®¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤À¤½¤¦¤Ç¤¹¡£ ¤·¤Ð¤é¤¯¤¹¤ì¤Ð¾¡¼ê¤Ë¾Ã¤¨¤ë¤È¤«¡£ ¤¿¤À¤·¡¢ËÜÅö¤«¤É¤¦¤«¤ÏÃΤê¤Þ¤»¤ó¤·¡¢¤É¤¦¤¤¤¦¥È¥é¥Ö¥ë¤¬ ¤¢¤Ã¤¿¤éºîÀ®¤µ¤ì¤ë¤Î¤«¤âÃΤê¤Þ¤»¤ó¡£ |
¤â¤· FreeBSD ¤È Solaris ¤ÎNFS ¤Þ¤ï¤ê¤Î¥³¡¼¥É¤¬¤¢¤ë ÄøÅÙƱ¤¸¤Ê¤é (¸µ¤ÏƱ¤¸¤Ï¤º¤Ç¤¹¤è¤Í)¡¢ http://www.jp.FreeBSD.org/cgi/cvsweb.cgi/src/sys/nfs/nfs_vnops.c?rev=1.150 /* * Silly rename. To make the NFS filesystem that is stateless look a little * more like the "ufs" a remove of an active vnode is translated to a rename * to a funny looking filename that is removed by nfs_inactive on the * nfsnode. There is the potential for another process on a different client * to create the same funny name between the nfs_lookitup() fails and the * nfs_rename() completes, but... */ static int nfs_sillyrename(dvp, vp, cnp) ... ¤¢¤¿¤ê¤Î¤è¤¦¤Ç¤¹¡£ |
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¸½ºß¡¢NFS & NIS ¤ÎÀßÄ꤬¤¦¤Þ¤¯¤¤¤Ã¤Æ¤Ê¤¤¤½¤¦ ¤Ê¤Î¤Ç¡¢¤½¤ÎÊդαƶÁ¤«¤Ê¡© ¤Þ¤º¤Ï¡¢¤Á¤ã¤ó¤ÈÀßÄꤹ¤ë¤è¤¦¤¬¤ó¤Ð¤ê¤Þ¤¹¡£(^^; |
¤¤¤Ä¤âÇÒ¸«¤µ¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤Þ¤¹ º££ã¸À¸ì¤Çcgi¤Î¥×¥í¥°¥é¥à½ñ¤¤¤Æ¤ë¤ó¤Ç¤¹¤¬ hoge.exe?data1=aa&data2=bb ¤ß¤¿¤¤¤Ë°ú¿ô¤òÅϤ·¤Æ¥×¥í¥°¥é¥à¤òľÀܸƤӤ¿¤¤¤Î¤Ç¤¹¤¬¡¢¤¦¤Þ¤¯¥Ç¡¼¥¿¤¬ÅϤ»¤Þ¤»¤ó Form¤«¤é¤À¤ÈÀµ¾ï¤ËÆ°ºî¤¹¤ë¤ó¤Ç¤¹¤¬¥µ¡¼¥Ð¡¼¤ÎÀßÄ꤬´Ø·¸¤·¤Æ¤¤¤ë¤ó¤Ç¤·¤ç¤¦¤« ¥µ¡¼¥Ð¡¼¤Ïwindows nt + iis¤Ç¤¹ apach¤À¤È¤½¤Î¤è¤¦¤Ê»ö¤Ï¤Ê¤¤¤Ç¤¹¤«¡© |
> hoge.exe?data1=aa&data2=bb ¾ðÊó¤¬ÉÔ¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤ï¤«¤ê¤Þ¤»¤ó¡£ ¡ÖFORM ¤«¤é¤À¤ÈÀµ¾ï¤ËÆ°ºî¤¹¤ë¡×¤È¤¤¤¦¤Î¤Ï¡¢¤É¤¦¤¤¤¦ ¤Õ¤¦¤Ë¸Æ¤Ó½Ð¤·¤Æ¤¤¤ë¤ó¤Ç¤¹¤«? ¡Ö°ú¿ô¤òÅϤ·¤Æ¥×¥í¥°¥é¥à¤ò ľÀܸƤӤ¿¤¤¤Î¤Ç¤¹¤¬¡×¤È¤Ï¤É¤¦¤¤¤¦¤Õ¤¦¤Ë¸Æ¤Ó½Ð¤½¤¦¤È ¤·¤Æ¤¤¤ë¤ó¤Ç¤¹¤«? |
¤¤¤Ä¤âÊÙ¶¯¤µ¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤Þ¤¹¡£¤¢¤¿¤·¤â¤¬¤ó¤Ð¤ê¤Þ¤¹¡£ |
Âç¹¾»³¤È¸À¤¦Æ¸Íؤ«²Î¤Î²Î»ìÃΤê¤Þ¤»¤ó¤«¡© |
¥¹¥ß¥Þ¥»¥ó¤Ç¤·¤¿... hoge.exe¤ÏÆüÉÕÅù¤ò¼õ¤±¼è¤êlog¤ò½¸·×¤·¤ÆÊÖ¤¹¥×¥í¥°¥é¥à¤Ç¤¹ ¤Þ¤ºÁ÷¿®¥Õ¥©¡¼¥à¤Îhtml¤Ï¤³¤ó¤Ê´¶¤¸¤Ç¤¹ < form method=post action="cgi-bin/hoge.exe" > < select name="data1" size="1" > < option selected value="aa"> aa < /option > < option value="bb" > bb< /option > < /select > < INPUT TYPE="SUBMIT" VALUE="Á÷¿®" > < /form > ¤³¤ì¤ò < A HREF=hoge.exe?data1=cc&data2=dd > hoge < /a > ¤Î¤è¤¦¤Ë¥ê¥ó¥¯¤«¤é¸Æ¤ó¤Ç·è¤Þ¤Ã¤¿½èÍý¤ò¤µ¤»¤¿¤¤¤ó¤Ç¤¹¤±¤É¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó ¤ª¼ê¿ô¤Ç¤¹¤¬¾ðÊ󤪻ý¤Á¤Ç¤·¤ç¤¦¤« |
¤Þ¤¿¥¹¥ß¥Þ¥»¥ó.... <>¤Î½ñ¤Êý¤ò´Ö°ã¤¨¤Æ¤·¤Þ¤¤¤Þ¤·¤¿ |
FORM ¤Ï POST ¤ÇÁ÷¤Ã¤Æ¤¤¤ë¤ï¤±¤Ç¤¹¤Í? ¤Ç¡¢ > <A HREF=hoge.exe?data1=cc&data2=dd> hoge </a> ¤À¤È GET ¤Ë¤Ê¤ë¤ï¤±¤Ç¤¹¡£hoge.exe ¤Ï POST ¤Ç¥Ç¡¼¥¿¤ò ¼õ¤±¤Æ¤¤¤ë¤Î¤Ç¡¢É¸½àÆþÎϤòÆɤó¤Ç¤¤¤ë¤Ï¤º¤Ç¤¹¤è¤Í¡£ ¤â¤·GET ¤Ë¤âÂбþ¤·¤¿¤¤¤Ê¤é´Ä¶ÊÑ¿ô QUERY_STRING ¤ò ¸«¤ë¤è¤¦¤Ë¤·¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£ C ¤Ê¤é getenv("QUERY_STRING") ¤Ç¤â¤¤¤¤¤·¡¢ main(int argc,char *argv,char *envp) ¤È¤·¤Æ envp ¤ò¸«¤Æ¤â¤è¤¤¤Ç¤·¤ç¤¦¡£ |
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹ if(0 == strcmp("POST",getenv("REQUEST_METHOD"))) { /* POST¤Î¾ì¹ç */ if(fgets(buf, len+1, stdin) == NULL) { return 1; } } else { /* GET¤Î¾ì¹ç */ strncpy(buf, getenv("QUERY_STRING"), sizeo(buf)-1); } ¤³¤ó¤Ê´¶¤¸¤Ç¤¦¤Þ¤¯¤¤¤¤Þ¤·¤¿ POST ¤È GET ¤¼¤ó¤¼¤ó°Õ¼±¤·¤Æ¤Þ¤»¤ó¤Ç¤·¤¿¡Ê¤è¤¯Ä´¤Ù¤Þ¤¹¡Ë ¤Û¤ó¤È¤Ë¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ |
prompt¤ÎÀâÌÀʸ¤ÎÃæ¤ËHTML¥¿¥°¤¬É½¼¨¤µ¤ì¤Æ¤Þ¤·¤¿¤è % set prompt="%Sabc%s%Bdef%b%Ughi%u:" abc<b>def</b><u>ghi</u>: |
¤ªµ×¤·¤Ö¤ê¤Ç¤¹¡¢°ÊÁ°¤¯¤À¤é¤Ê¤¤¼ÁÌä¤Ð¤«¤ê¤·¤Æ¤¤¤¿¤â¤Î¤Ç¤¹(^^; CGI¤Ç¥µ¡¼¥Ð¡¼¤ÎÉé²ÙΨ¤òÄ´¤Ù¤¿¤¤¤Î¤Ç¤¹¤¬²¿¤«¤è¤¤ÊýË¡¤Ï̵¤¤¤Ç¤·¤ç¤¦¤«¡© °ì±þ top ¤Îɽ¼¨¤Î¥Ø¥Ã¥À¡¼Éôʬ¤Ëɽ¼¨¤µ¤ì¤ë¿ôÃͤò¼è¤ê½Ð¤·²Ã¹©¤·¤è¤¦¤È ¤â¤¯¤í¤ó¤À¤Î¤Ç¤¹¤¬¸«»ö¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£ open(SYS, "top|"); ¤ä¤Ï¤ê´Å¤«¤Ã¤¿¡£¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç top > hoge.txt ¤È¤·¤Æ¤â¼è¤ì¤Ê¤¤¤Î¤Ç top ¤«¤é¼è¤ê¹þ¤à¤Î¤ÏÂÌÌܤߤ¿¤¤¤Ç¤¹¤Í¡£ ¥ª¥×¥·¥ç¥ó¤Ë¤â¤½¤ì¤é¤·¤¤¤â¤Î¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£ FreeBSD¤ÎÆüËܸì¥Þ¥Ë¥å¥¢¥ë¤ò¸«¤ë¸Â¤ê¤Ï¤É¤¦¤â¸ß´¹À¤Ê¤µ¤½¤¦¤Ç¤¹¡£ ÌÌÅݤʤó¤Ç»î¤·¤Æ¤¤¤Þ¤»¤ó¤¬¡¢°ìÄê¤Î½èÍý¤Ë¤«¤«¤Ã¤¿»þ´Ö¤ò¬Äꤷ¤Æ Éé²Ù¤òÄ´¤Ù¤è¤¦¤«¤È»×¤¦¤Î¤Ç¤¹¤¬¡¦¡¦¡¦ ¤³¤ì¤â¤¤¤Þ¤¤¤ÁÀµ³Î¤µ¤Ë·ç¤±¤½¤¦¤À¤·¡£²¿¤è¤ê¤á¤ó¤É¤¦¤À¤·(^^; ¤¢¤Ã°ø¤ß¤Ë¤½¤ì¤Û¤É¤ÎÀµ³Î¤µ¤Ïµá¤á¤Æ¤¤¤Þ¤»¤ó¡¢¤½¤â¤½¤â¤½¤ó¤Ê¤ËÀµ³Î¤Ë ¿ôÃͤò¼è¤ì¤Ê¤¤¤È»×¤Ã¤Æ¤Þ¤¹¤«¤é¡£ ²¿¤«ÊýË¡¤òÃΤäƤ¤¤Þ¤·¤¿¤é¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ OS¤ÏVineLinux¤Ç¤¹¡£ |
> prompt¤ÎÀâÌÀʸ¤ÎÃæ¤ËHTML¥¿¥°¤¬É½¼¨¤µ¤ì¤Æ¤Þ¤·¤¿¤è ¤É¤¦¤â¤Ç¤¹¡£Ä¾¤·¤Æ¤ª¤¤Þ¤¹¡£ # ¼Â¤Ïµ¤¤Å¤¤¤Æ¤¤¤¿¤ó¤À¤±¤É¡¢¼«ºî¤ÎÊÑ´¹¥Õ¥£¥ë¥¿¤ò¤É¤¦ # ľ¤»¤Ð¤è¤¤¤Î¤«¤ï¤«¤é¤¯¤ÆǺ¤ó¤Ç¤¤¤ë¤È¤³¤í¤Ç¤¹¡£ > CGI¤Ç¥µ¡¼¥Ð¡¼¤ÎÉé²ÙΨ load average ¤òµá¤á¤¿¤¤¤Ê¤é uptime ¤ä rup localhost ¤Ê¤É¤¬»È¤¨¤ë¤È»×¤¤¤Þ¤¹¡£ > open(SYS, "top|"); ÆþÎÏ¤Ë tty ¤òÆɤó¤Ç¤ë¤Î¤Ê¤é¡¢top < /dev/null ¤Ç ¤¤¤±¤ë¤«¤â¤·¤ì¤Þ¤»¤ó (¥À¥á¤«¤â)¡£ ¤Ê¤ª load average ¤Ï¡¢°ã¤¦¥Þ¥·¥ó¤ä OS ¤ÈÈæ³Ó¤Ï°ÕÌ£¤¬ ¤¢¤ê¤Þ¤»¤ó¡£¤ï¤«¤Ã¤Æ¤ª¤é¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¢Ç°¤Î¤¿¤á¡£ |
uptime¤Î¾ðÊ󤢤꤬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¤Ê¤ë¤Û¤É¤³¤ì¤Ê¤é²¿¤È¤«¤Ê¤ê¤½¤¦¤Ç¤¹¡£ ¼ê»ý¤Á¤Î¥³¥Þ¥ó¥É¥ê¥Õ¥¡¥ì¥ó¥¹¤Ë¤Ï¡¡uptime ¤Î¤³¤È¤¬ºÜ¤Ã¤Æ¤¤¤Þ¤»¤ó ¤Ç¤·¤¿¤¬¡¢man ¤Ë¤Ï·ÇºÜ¤µ¤ì¤Æ¤¤¤¿¤Î¤Ç¡¢¤³¤ì¤Ç¤¦¤Þ¤¯¤¤¤¤½¤¦¤Ç¤¹¡£ /usr/bin/ ¤ä /usr/local/bin/ ¤Ë¤¢¤ë¥³¥Þ¥ó¥É¤ò°ì¤Ä¤Å¤ÄÄ´¤Ù¤ë¤Î¤â ¤¢¤Þ¤ê¤Î¿ô¤Ë¼ê¤ò¾Æ¤¤¤Æ¤¤¤¿¤È¤³¤í¤Ê¤Î¤Ç½õ¤«¤ê¤Þ¤·¤¿¡£ ¡äÆþÎÏ¤Ë tty ¤òÆɤó¤Ç¤ë¤Î¤Ê¤é¡¢top < /dev/null ¤Ç ¤ä¤Ã¤Æ¤ß¤Þ¤·¤¿¤¬ÂÌÌܤǤ·¤¿¡£ ¡ä¤Ê¤ª load average ¤Ï¡¢°ã¤¦¥Þ¥·¥ó¤ä OS ¤ÈÈæ³Ó¤Ï°ÕÌ£¤¬ ¡ä¤¢¤ê¤Þ¤»¤ó¡£¤ï¤«¤Ã¤Æ¤ª¤é¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¢Ç°¤Î¤¿¤á¡£ ¤¹¤¤¤Þ¤»¤ó¡¢°ÕÌ£¤¬¤è¤¯¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢¡Ö¤³¤Î·ë²Ì¤ò¸µ¤Ë ¤Û¤«¤Î¥µ¡¼¥Ð¡¼¤ÈÈæ³Ó¤¹¤ë¤Ë¤Ï°ÕÌ£¤¬Ìµ¤¤¡×¤È¸À¤¦°ÕÌ£¤Ç¤·¤ç¤¦¤«¡£ ñ½ã¤Ë¡¢¥Þ¥·¥ó¤ÎÈ¿±þ¤¬ÃÙ¤¤»þ¤Î¸¶°ø¤¬¡¢²óÀþ¤Î±Æ¶Á¤«¥µ¡¼¥Ð¡¼¤ÎÉé²Ù ¤«¤òÄ´¤Ù¤ëÍÑÅӤ˻Ȥ¦¤Ä¤â¤ê¤Ç¤¹¡£ ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ |
> ¡Ö¤³¤Î·ë²Ì¤ò¸µ¤Ë¤Û¤«¤Î¥µ¡¼¥Ð¡¼¤ÈÈæ³Ó¤¹¤ë¤Ë¤Ï°ÕÌ£¤¬Ìµ¤¤¡× ¤½¤¦¤Ç¤¹¡£¡ÖPentium133+FreeBSD ¤È Pentium166+FreeBSD¡×¤È¤«¡¢ ¡ÖPentium133+FreeBSD ¤È Pentium133+Linux¡×¤Ê¤É¤Î load average ¤ò Èæ³Ó¤¹¤ë¤Î¤Ï°ÕÌ£¤¬¤Ê¤¤¤Ç¤¹¡£¤Þ¤¿¡¢load average ¤¬2ÇܤÀ¤«¤é ¤È¸À¤Ã¤Æ¡¢Éé²Ù¤¬2ÇܤȤ«Â®ÅÙ¤¬1/2 ¤È¤¤¤¦¤³¤È¤â¤Ê¤¤¡¢¤È¤¤¤¦ °Õ¿Þ¤Ç½ñ¤¤Þ¤·¤¿¡£ > ñ½ã¤Ë¡¢¥Þ¥·¥ó¤ÎÈ¿±þ¤¬ÃÙ¤¤»þ¤Î¸¶°ø¤¬¡¢²óÀþ¤Î±Æ¶Á¤«¥µ¡¼¥Ð¡¼¤ÎÉé²Ù > ¤«¤òÄ´¤Ù¤ëÍÑÅӤ˻Ȥ¦¤Ä¤â¤ê¤Ç¤¹¡£ ¤È¤¤¤¦¤³¤È¤Ç¤¢¤ì¤Ð¡¢load average ¤Ç¤¤¤¤¤È»×¤¤¤Þ¤¹¡£ > /usr/bin/ ¤ä /usr/local/bin/ ¤Ë¤¢¤ë¥³¥Þ¥ó¥É¤ò°ì¤Ä¤Å¤ÄÄ´¤Ù¤ë¤Î¤â > ¤¢¤Þ¤ê¤Î¿ô¤Ë¼ê¤ò¾Æ¤¤¤Æ¤¤¤¿¤È¤³¤í¤Ê¤Î¤Ç½õ¤«¤ê¤Þ¤·¤¿¡£ `load average' ¤È¤¤¤¦¥¡¼¥ï¡¼¥É¤òÃΤäƤ¤¤ì¤Ð¡¢ % strings -f /usr/bin/* | grep -i 'load average' ¤Ê¤É¤È¤¹¤ë¤Î¤â°ì¤Ä¤Î¼ê¤Ç¤¹¤Í¡£ |
¤³¤Î´Ö¼¨º¶¤·¤Æ夤¤¿¡¢¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤Î´ØϢʸ½ñ¤òÄ´¤Ù¤ëĹι¤Ë½Ð¤¿ ¤È¤³¤í¡¢68user¤µ¤ó¤Î¤È¤³¤í¤Ë¤¢¤ë¤Ç¤Ï¤Ê¤¤¤Ç¤¹¤«(echo´ØÏ¢)¡£ÅôÂæ²¼ °Å¤·¡¦¡¦¡¦¡¡¸æÃѤº¤«¤·¤¤¡£ ¤¿¤À¡¢°Ê²¼¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤¬½Ð¤¿¤Î¤Ç¡¢¤É¤¦¤âËͤδĶ(¸å½Ò)¤Ç¤Ï ÉÔ²Äǽ¤ß¤¿¤¤¤Ç¤¹¡£ The Unsupported function fork function is unimplemented at echo.pl line 36. °ø¤ß¤Ëperl -v¤Î·ë²Ì¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£ version 5.005_03 built for MSWin32-x86-object ÌÜŪ¤¬¥Æ¥¥¹¥ÈÊÑ´¹¤Ê¤Î¤Ç¡¢delegate¤ß¤¿¤¤¤Ê·Á¼°(/-_-)¤ÇÂбþ¤·¤è¤¦¤«¤Ê¡¢ ¤½¤ì¤È¤âjava¤Ç¤â»È¤Ã¤Æ¤ß¤è¤¦¤«¤Ê¡¢¤½¤ì¤È¤âPC¤ËUnix¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤è¤¦ ¤«¤Ê¡¢¤ÈǺ¤ó¤Ç¤¤¤ë¤È¤³¤í¤Ç¤¹(¤Ê¤ó¤«¤É¤ì¤â¼Â¹Ô¤·¤Ê¤µ¤½¤¦¤Ç¤¹¤¬)¡£ |
> ¤É¤¦¤âËͤδĶ(¸å½Ò)¤Ç¤ÏÉÔ²Äǽ¤ß¤¿¤¤¤Ç¤¹¡£ Windows ¤Ç¤Ï fork ¤Ï»È¤¨¤Þ¤»¤ó¤Î¤Ç¡¢select ¤ò»È¤¦¤·¤« ¤Ê¤¤¤Ç¤¹¤Í¡£ IO::Socket ¤È IO::Select ¤ò»È¤Ã¤Æ http://X68000.startshop.co.jp/~68user/tmp/bogus-proxy.pl ¤³¤ó¤Ê´¶¤¸¤Ç¤·¤ç¤¦¤«¡£ËÜÅö¤Ë¼ÂÍÑÃʳ¬¤Þ¤Ç»ý¤Ã¤Æ¤¯¤Ë¤Ï ¤Þ¤À¤Þ¤Àµ¡Ç½ÄɲᢥХ°¼è¤ê¤ò¤·¤Ê¤¤ã¤¤¤±¤Þ¤»¤ó¤¬¡£ ¥Ý¥¤¥ó¥È¤Ï¡¢Á´¤Æ¤Î¥½¥±¥Ã¥È¤«¤é¤Î¥Ç¡¼¥¿¤ò select ·Ðͳ¤Ç ¼õ¤±¼è¤ë¤³¤È¡£º£¤Ï¤½¤¦¤Ê¤Ã¤Æ¤Þ¤»¤ó¤Î¤Ç¡¢1¤Ä¤Î¥½¥±¥Ã¥È ¤«¤é¤Î¥Ç¡¼¥¿¤¬ÃÙ¤ì¤ë¤È¡¢¤½¤³¤¬¥Ü¥È¥ë¥Í¥Ã¥¯¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ |
> Windows ¤Ç¤Ï fork ¤Ï»È¤¨¤Þ¤»¤ó¤Î¤Ç cygwin¤ËÆþ¤Ã¤Æ¤¤¤ëPerl¤Ïfork¤¬»È¤¨¤ë¤½¤¦¤Ç¤¹¡£(»î¤·¤Æ¤¤¤Þ¤»¤ó¡£) http://sourceware.cygnus.com/cygwin/ |
68userÍÍ¡¨ ¤É¤¦¤â¸æ¶µ¼ø¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ¸½ºß¡¢¼¨¤·¤Æ夤¤¿¥¹¥¯¥ê¥×¥È¤òÍý²ò¤·¤è¤¦¤ÈÊÙ¶¯¤·¤Æ¤¤¤Þ¤¹¡£¤·¤«¤·¡¢ Íý²ò¤·¤¿¾å¤Ç²þ¤¤¹¤ë¤Þ¤Ç¤Ë¡¢¤Á¤ç¤Ã¤È»þ´Ö¤¬¤«¤«¤ê¤½¤¦¤Ê¤Î¤Ç(¢¨)¡¢ Àè¤Ë¤ªÎé¤ò¿½¤·¾å¤²¤Þ¤¹¡£ ¢¨¡¡->¤È¤«¡¢select¤È¤«¤Î³µÇ°¤¬¤Þ¤À̵¤¤¤Î¤Ç¡¢¥¢¥ë¥´¥ê¥º¥à¤¬¤Þ¤À Íý²ò¤Ç¤¤º¤ËÄä»ß¤·¤Æ¤¤¤Þ¤¹¡£ ¤Þ¤¿¡¢¿ÊĽ¤¬¤¢¤Ã¤¿¤é¡¢¤´Êó¹ð¤·¤Þ¤¹¡£ËÜÅö¤Ë¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ # http://X68000.startshop.co.jp/~68user/tmp/bogus-proxy.pl ¤Ï¡¢ # ¤Ò¤ç¤Ã¤È¤·¤Æ¡¢ËͤμÁÌä¤Î¤¿¤á¤Ëºî¤Ã¤Æ夤¤¿¤â¤Î¤Ç¤¹¤«¡© # ¤À¤È¤·¤¿¤é¡¢Âç´¶·ã¤Ç¤¹¡ª¡¡¢«°ã¤Ã¤Æ¤¤¤¿¤é¤¹¤¤¤Þ¤»¤ó¡£ YuukiÍÍ¡¨ ¤É¤¦¤âµ®½Å¤Ê¾ðÊ󡢤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ ÁᮥÀ¥¦¥ó¥í¡¼¥É¤·¤Æ¡¢68user¤µ¤ó¤Îecho.pl¤ò¼Â¹Ô¤·¤¿¤é¡¢¤È¤ê¤¢¤¨¤ºfork¤Ï ¤¹¤ë¤ß¤¿¤¤¤Ê¤Î¤Ç¤¹¤¬¡¢»ÄÇ°¤Ê¤³¤È¤Ë¡¢fork¤·¤¿¤È¤¿¤ó¤Ë¡¢»Ò¥×¥í¥»¥¹¤¬°ìÈÌÊÝ¸î °ãÈ¿¤òµ¯¤³¤·¤Æ¤·¤Þ¤¦(kernel32.dll)¤ß¤¿¤¤¤Ç¤¹¡£Â¿Ê¬¡¢ËͤδĶ¤¬°ìÈÌŪ¤¸¤ã ¤Ê¤¤¤Î¤Ç¡¢¤½¤ì¤¬¸¶°ø¤¸¤ã¤Ê¤¤¤«¤Ê¡¢¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡£¸½ºß¡¢²òÀÏÃæ¤Ç¤¹(¢«»þ´Ö ¤¬¤«¤«¤ê¤½¤¦¤Ç¤¹¤¬¡¦¡¦¡¦)¡£ °ø¤ß¤Ëcygwin32¤ÏB20(full.exe¤Î¤Û¤¦)¤Ç¤¹¡£perl -v¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£ This is perl, version 5.005_62 built for cygwin À޳ѾðÊó¤ò夤¤¿¤Î¤Ë¡¢À¸¤«¤»¤Ê¤¯¤Ã¤Æ¡¢¿½¤·Ìõ¤Ê¤¤¤Ç¤¹¡£ |
> select¤È¤«¤Î³µÇ°¤¬¤Þ¤À̵¤¤¤Î¤Ç¥¢¥ë¥´¥ê¥º¥à¤¬¤Þ¤À > Íý²ò¤Ç¤¤º¤ËÄä»ß¤·¤Æ¤¤¤Þ¤¹¡£ ¹Í¤¨Êý¤Ï http://X68000.startshop.co.jp/~68user/net/echo-4.html ¤È Ʊ¤¸¤Ç¤¹¡£¥â¥¸¥å¡¼¥ë¤ò»È¤¦¤³¤È¤Ç¡¢¤Á¤ç¤Ã¤È¤À¤±¤¹¤Ã¤¤ê¤È½ñ¤±¤Þ¤¹¡£ ¤³¤³¤é¤Ø¤ó¤Ï¡¢¤½¤Î¤¦¤Á web ¤Ç²òÀâ¤ò½ñ¤¯¤Ä¤â¤ê¤Ç¤¹¡£ > ¤Ò¤ç¤Ã¤È¤·¤Æ¡¢ËͤμÁÌä¤Î¤¿¤á¤Ëºî¤Ã¤Æ夤¤¿¤â¤Î¤Ç¤¹¤«¡© ¼«Ê¬¤Ç»È¤ª¤¦¤È»×¤Ã¤Æ¡¢¤¿¤Þ¤¿¤Þºî¤Ã¤Æ¤Þ¤·¤¿ :-) °ì±þ¡¢GET ¤À¤±¤Ï¤Ç¤¤ë¥ì¥Ù¥ë¤Î¤â¤Î¤òÃÖ¤¤¤Æ¤ª¤¤Þ¤¹¡£ http://X68000.startshop.co.jp/~68user/tmp/1st-proxy.pl shutdown ¤¢¤¿¤ê¤¬ ¤È¤Æ¤â¤¢¤ä¤·¤¤¡£ > cygwin¤ËÆþ¤Ã¤Æ¤¤¤ëPerl¤Ïfork¤¬»È¤¨¤ë¤½¤¦¤Ç¤¹¡£ ¤¢¡¢¤½¤¦¤Ê¤ó¤Ç¤¹¤«¡£Windows ´Ä¶¤Ç perl ¤òÆ°¤«¤·¤¿ ¤³¤È¤¬¤Ê¤¤¤Î¤Ç¡¢Å¬Åö¤Ë½ñ¤¤¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£ |
http proxy ¤Ï·ë¹½Æñ¤·¤¤¤Ç¤¹¤Í¡£¥·¥°¥Ê¥ë¤¬Èô¤ó¤Ç¤¤¿¤ê¡¢ ¥³¥Í¥¯¥·¥ç¥ó¤òÀÚÃǤǤ¤Ê¤«¤Ã¤¿¤ê¡¢¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤¬ ²òÊü¤µ¤ì¤Ê¤«¤Ã¤¿¤ê¡Ä¤È¤¤¤Ã¤¿¥Ð¥°¤Ë¶ì¤·¤ß¤Ê¤¬¤é¤â¡¢3Æü¤«¤«¤Ã¤Æ ¤ä¤Ã¤È½ñ¤¾å¤²¤Þ¤·¤¿ (¤Ç¤â HTTP/1.1 ¤Ë¤Ï̤Âбþ)¡£ # perl ¤¬ panic ¤ÇÍî¤Á¤ë¤Î¤ò½é¤á¤Æ¸«¤¿¡£ ¤Ç¤â¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°¤Ë´Ø¤¹¤ëÍý²òÎϤò»î¤¹¤Ë¤Ï¡¢ Àä¹¥¤ÎÎãÂ꤫¤È»×¤¤¤Þ¤¹¤Î¤Ç¡¢¤¼¤Ò¥Á¥ã¥ì¥ó¥¸¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£ # ¤È¤¤¤¦¤ï¤±¤Ç¡¢´°À®ÈǤϽФ·¤Þ¤»¤ó :-) |
¤¤¤í¤¤¤í¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ÁᮥÀ¥¦¥ó¥í¡¼¥É¤·¤Æ²òÀϤ·¤Æ¤Þ¤¹¡£ ¤Þ¤À¤Þ¤À¡¢Ê¬¤«¤é¤Ê¤¤¤³¤È¤Ð¤«¤ê¤Ç¤¹¤¬¡¢²¿¤È¤«¤Õ¤ó¤Ð¤Ã¤Æºî¤Ã¤Æ¤ß¤Þ¤¹¡£ ¤Ç¤â¡¢68user¤µ¤ó¤¬3Æü¤«¤«¤Ã¤Æºî¤ê¾å¤²¤¿¤Ã¤Æ¤³¤È¤Ï¡¢ËͤϤɤΤ¯¤é¤¤ ¤«¤«¤ë¤Î¤«¡¢¹Í¤¨¤¿¤À¤±¤Ç¤â¶²¤í¤·¤¯¤Ê¤ê¤Þ¤¹¡£¤¤¤Ä¤Ë¤Ê¤ë¤ä¤é¡¦¡¦¡¦ ¤â¤Ã¤È¤â¡¢»î¹Ôºø¸í¤·¤Æ¼«ºî¤¹¤ë¤Î¤Ï·ë¹½³Ú¤·¤¤¤Î¤Ç¡¢°Ê²¼¤Î¡¢ >¤Ç¤â¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°¤Ë´Ø¤¹¤ëÍý²òÎϤò»î¤¹¤Ë¤Ï¡¢ >Àä¹¥¤ÎÎãÂ꤫¤È»×¤¤¤Þ¤¹¤Î¤Ç¡¢¤¼¤Ò¥Á¥ã¥ì¥ó¥¸¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£ ># ¤È¤¤¤¦¤ï¤±¤Ç¡¢´°À®ÈǤϽФ·¤Þ¤»¤ó :-) ¤Ï¡¢³Ú¤·¤ß¤¬»Ä¤Ã¤Æ´ò¤·¤¤¤Ç¤¹¡£ >web ¤Ç²òÀâ¤ò½ñ¤¯¤Ä¤â¤ê¤Ç¤¹¡£ ³Ú¤·¤ß¤Ë¤ªÂÔ¤Á¿½¤·¾å¤²¤Þ¤¹ :> # ># perl ¤¬ panic ¤ÇÍî¤Á¤ë¤Î¤ò½é¤á¤Æ¸«¤¿¡£ # Ëͤ⸫¤é¤ì¤ì¤Ð¤¤¤¤¤Ê¤¡¡¢¤ÈÌÑÁÛ¤·¤Æ¤Þ¤¹¡¦¡¦¡¦ |
¤ß¤Ê¤µ¤ó¤Ï¤¸¤á¤Þ¤·¤Æ¤³¤ó¤Ë¤Á¤Ï¡£ º£Æü¤Ï¤¸¤á¤Æ¤³¤Î¥Ú¡¼¥¸¤ò¸«¤¿¤Î¤Ç¤¹¤¬¡¢¤¤¤ä¤Ï¤äÁÇÀ²¤é¤·¤¤ÆâÍƤǤ¹¤Í¡¦¡¦ ¤µ¤ó¤¶¤ó¶ìÏ«¤·¤Æ¿§¡¹¤Ê¤È¤³¤í¤ÇÆÀ¤¿Ãμ±¡Ê+¦Á¡Ë¤¬¤³¤³¤Ë¡¦¡¦¡¦¡Ê¾Ð »ä¤ÏºÇ¶áWin¤Ç¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥à¤Ë¶Å¤Ã¤Æ¤¤¤ë¤â¤Î¤Ç¤¹¡£ ´Êñ¤ÊHTTP¤äSMTP¡¢POP3¥¯¥é¥¤¥¢¥ó¥È¤ÏBorland C++ Builder¤ÇWinsock¤ò»È¤¤ºîÀ®¤·¤¿¤³¤È¤â¤¢¤ê¤Þ¤¹¡£ ¤µ¤Æ¼Â¤Ï¼ÁÌ䤬¤¢¤ë¤Î¤Ç¤¹¤¬¡¦¡¦¡¦ ¸½ºßDNS¥µ¡¼¥Ð¡¼¤«¤é¤ÎMX¥ì¥³¡¼¥É¤Î¼èÆÀ¤Î¥×¥í¥°¥é¥à¤òºî¤Ã¤Æ¤¤¤Þ¤¹¡£¡Ê¥ê¥¾¥ë¥Ð¤â¤É¤¡©¡Ë ¥á¡¼¥ë¥¢¥É¥ì¥¹¤ËÂФ·Á÷¿®Àè¤ÎSMTP¥µ¡¼¥Ð¡¼¤Î¥¢¥É¥ì¥¹¤òÄ´¤Ù¤ë´Êñ¤Ê¥¯¥é¥¤¥¢¥ó¥È¤Ç¤¹¡£ ¤µ¤Æ¤½¤³¤ÇÌäÂê¤È¤Ê¤ë¤Î¤¬Ì䤤¹ç¤ï¤»¤ò¹Ô¤¦DNS¥µ¡¼¥Ð¡¼¤Ç¤¹¡£ »ä¤Ï¥À¥¤¥¢¥ë¥¢¥Ã¥×¤Ç¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ËÀܳ¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢Àܳ¤·¤¿¾õÂÖ¤Çwinipcfg¤ò¼Â¹Ô¤¹¤ë¤È ¡ÖDNS¥µ¡¼¥Ð¡¼¡×¤ÎÍó¤ËDNS¥µ¡¼¥Ð¡¼¤ÎIP¥¢¥É¥ì¥¹¤¬Æþ¤ê¤Þ¤¹¡£ ¥À¥¤¥¢¥ë¥¢¥Ã¥×¤ò½ªÎ»¤¹¤ë¤È¤³¤Îɽ¼¨¤¬¾Ã¤¨¤Þ¤¹¡ÊÅö¤¿¤êÁ°¤«¤â¤·¤ì¤Þ¤»¤ó¡Ë¡£ ¤³¤ÎDNS¥µ¡¼¥Ð¡¼¤Î¥¢¥É¥ì¥¹¤ò¥×¥í¥°¥é¥àÆâ¤Ç¼èÆÀ¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¦¡¦¡¦°ìÂΤɤ¦¤ä¤ì¤ÐÎɤ¤¤Î¤Ç¤·¤ç¤¦¤«¡£ ¤â¤·²¿¤«¤·¤é¤´Â¸¤¸¤Ç¤·¤¿¤é¤ª¶µ¤¨Äº¤±¤ë¤È¤¢¤ê¤¬¤¿¤¤¤Ç¤¹¡£ |
> ¤³¤ÎDNS¥µ¡¼¥Ð¡¼¤Î¥¢¥É¥ì¥¹¤ò¥×¥í¥°¥é¥àÆâ¤Ç¼èÆÀ¤·¤¿¤¤ ¤³¤ì¤Ð¤Ã¤«¤ê¤Ï OS ¤Ë¿Ò¤Í¤ë¤«¡¢ÀßÄê¥Õ¥¡¥¤¥ë¤ò¸«¤ë¤«¡¢ ¥æ¡¼¥¶¤Ë¼êÆ°¤ÇÆþÎϤµ¤»¤ë¤«¡¢¤¯¤é¤¤¤Î¼ê¤·¤«¤Ê¤¤¤ó¤¸¤ã ¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£ winipcfg ¤Î½ÐÎϤò¸«¤ë¤Ã¤Æ¤Î¤Ï¥À¥á¤Ç¤¹¤«? # Èþ¤·¤¯¤Ê¤¤¤Ç¤¹¤±¤É¡£ |
¤³¤ó¤Ë¤Á¤Ï¡£¤¤¤Ä¤âÊÙ¶¯¤µ¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤¤¤Þ¤¹¡£ > DNS¥µ¡¼¥Ð¡¼¤Î¥¢¥É¥ì¥¹¤ò¥×¥í¥°¥é¥àÆâ¤Ç¼èÆÀ¤·¤¿¤¤¤Î¤Ç¤¹¤¬ RasGetEntryProperties ¤Ç¼èÆÀ¤Ç¤¤ë¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¡£ RASENTRY ¹½Â¤ÂΤΠipaddrDns ¤¬¡¢ > Specifies the IP address of the DNS server to be used while > this connection is active. ¤À¤½¤¦¤Ç¤¹¡£ NT ¤Ç̵»ö¤Ë¼èÆÀ¤Ç¤¤¿³Ð¤¨¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢¤«¤Ê¤êÀΤΤ³¤È¤Ê¤Î¤Ç µ²±¤¬Û£Ëæ¤Ç¤¹¡£ |
68user¤µ¤ó¡¢kuw¤µ¤ó¡¢¤ªÊÖ»ö¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£ >¥æ¡¼¥¶¤Ë ½ÐÍè¤ì¤Ð»È¤¦¿Í¤ËDNS¥µ¡¼¥Ð¡¼¤ò°Õ¼±¤µ¤»¤Ê¤¤¤Ç¡ÊÀßÄê¤ÎɬÍפʤ·¤Ë¡Ë Æ°¤«¤·¤¿¤«¤Ã¤¿¤Î¤Ç¤¹¡£¡£ >RasGetEntry ¤ª¤ª¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¤½¤¦¤«¡¢¤³¤¦¤¤¤¦¤Î¤¬¤¢¤Ã¤¿¤Î¤«¡¦¡¦¡¦¤È¥Ø¥ë¥×¤ò¸«¤Þ¤·¤¿¤¬¡¢ NT¤Î¤ß¤È¤Î¤³¤È¡¦¡¦¡ÊÎÞ ¼Â¤Ï¥À¥¤¥¢¥ë¥¢¥Ã¥×¤Ç¤Ê¤¤¡¢LANÆâ¤ÎüËö¤Ç¤â»È¤¤¤¿¤¤¤È¤¤¤¦´õ˾¤â¤¢¤ë¤ó¤Ç¤¹¡£ ¤ª¤È¤Ê¤·¤¯¤¢¤¤é¤á¤Æ¥æ¡¼¥¶¤ËÀßÄꤷ¤Æ¤â¤é¤ª¤¦¤«¤Ê(^-^;; ËÜÅö¤Ë¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£ CGI¤Îperl¥¹¥¯¥ê¥×¥È¤Ê¤É¤Ë¤Ä¤¤¤Æ¤â¤³¤³¤ÇÊÙ¶¯¤µ¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£ ¤½¤ì¤Ç¤Ï¼ºÎéÃפ·¤Þ¤¹¡£ |
Windows ¤ÏÁ´¤¯ÃΤé¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢ open(IN,"winipcfg|"); while (<IN>){ last if ( ($ip_addr) = m/(\d+\.\d+\.\d+\.\d+)/ ); } ¤Æ¤Ê´¶¤¸¤Ç¼èÆÀ¤Ç¤¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«? |
¥ê¥ê¥£¤µ¤ó¡¢Î¤Î»û¤ÎÃæ¤Ë¡¢±£¤·ÄÌÏ©¤¬¤¢¤Ã¤Æ¡¢¤½¤Î±ü¤ËÊõÈ¢¤¬£²¤Ä¤¢¤Ã¤Æ¡¢¤½¤ÎÆâ¤Î£±¤Ä¤ËÈâ¤ò³«¤±¤ë¤¿¤á¤Î¡¢¡ØÂ礤ʸ°¡Ù¤¬¤¢¤ê¤Þ¤¹¤è¡£ |
Windows ¤â UNIX ¤â Perl ¤âÃæÅÓȾü¤Ë¤·¤«ÃΤé¤Ê¤¤¤Î¤Ç¡¢ ¸í²ò¤·¤Æ¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢¡¢¡¢ winipcfg ¤Ï ɸ½à½ÐÎϤ˷ë²Ì¤òÅǤ½Ð¤¹¤Î¤Ç¤Ï¤Ê¤¯¤Æ¡¢ ¥¦¥£¥ó¥É¥¦¤¬½Ð¤Æ¤¤Þ¤¹¡£ ¤·¤«¤â¡¢¤½¤Î¥¦¥£¥ó¥É¥¦¤Ç¡¢[¾ÜºÙ¥Ü¥¿¥ó]¤ò¥¯¥ê¥Ã¥¯¤·¤Æ ¤Ï¤¸¤á¤Æ DNS ¥µ¡¼¥Ð¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ ¤Ç¤¹¤Î¤Ç¡¢winipcfg ¤Î·ë²Ì¤«¤é DNS ¥µ¡¼¥Ð¤ò¼èÆÀ¤¹¤ë ¤Î¤ÏÍưפǤϤʤ¤µ¤¤¬¤·¤Þ¤¹¡£ # ÉÔ²Äǽ¤Ç¤Ï¤Ê¤¤¤Î¤À¤í¤¦¤±¤É¡£ |
¤Ï¤¸¤á¤Þ¤·¤Æ¡¦¡¦¡¦ ¤³¤Á¤é Âçºå¤Î¥Ò¥È¤Ç¤¹¡£ ÆÍÁ³¤Ç¤¹¤¬ ºÇ¶á ÆüÍËÆü¤ÎÌëÃæ¤Ë¡Ö¥Ë¥¡¼¥¿¡×¤ÎTVÈǤò¤ß¤Æ ¤Ï¤Þ¤ê¤Þ¤¯¤Ã¤Æ¤Þ¤¹¡£ ¤Ç ¡Ö¥Ë¥¡¼¥¿¡×¾ðÊó¤òÃΤꤿ¤¯¤Æ ¸¡º÷¤·¤¿¤Î¤Ç¤¹¤¬¡¦¡¦¡¦ ¤É¤Ê¤¿¤« TVÈǡ֥˥¡¼¥¿¡×¤Ë¤Ä¤¤¤Æ ¶µ¤¨¤Æ²¼¤µ¤¤!!! ¤ª¼ÙË⤷¤Þ¤·¤¿ ¡ù |