KENT-WEB ¥µ¥Ý¡¼¥È¥³¡¼¥Ê¡¼ ²áµî¥í¥° [ 0327 ]


µ­»öNo¡§ 5890
Åê¹ÆÆü¡§ 2009/05/30(Sat) 10:55:53
¥¿¥¤¥È¥ë¡§ Web Protect¤Ë¤Ä¤¤¤Æ
ID¾ðÊó¡§ nod1222
Åê¹Æ¼Ô¡§ natsuki
URL¡§ http://www.morinaga-natsuki.com/

¤ªÀ¤ÏäˤʤäƤª¤ê¤Þ¤¹¡£

¥í¥°¥¤¥ó¤ò¤¹¤ë¤Èǧ¾Ú¥È¥Ã¥×¥Ú¡¼¥¸¤Îsecret.html¤ËÈô¤Ó¤Þ¤¹¤¬¡¢
secret.html¤Ë¤Ï¤È¤Ð¤º¡¢°ã¤¦±£¤·¥Ú¡¼¥¸¤òɽ¼¨¤¹¤ë¤³¤È¤Ï²Äǽ¤Ç¤·¤ç¤¦¤«¡©¤â¤·²Äǽ¤Ê¤é¡¢¥¢¥É¥ì¥¹¤Ê¤É¤Î½ñ¤­¹þ¤ßÎã¤ò¤´¶µ¼ø¤¤¤¿¤À¤±¤ë¤È¹¬¤¤¤Ç¤¹¡£

ÄÉ¿­¡§£Ã£Ç£É¤Ë°ìÅÙÈô¤Ö¤È¡¢±£¤·¥Ú¡¼¥¸¤ËÌá¤ì¤º¡¢Ç§¾Ú¥¨¥é¡¼¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£


µ­»öNo¡§ 5899
Åê¹ÆÆü¡§ 2009/06/01(Mon) 22:41:42
¥¿¥¤¥È¥ë¡§ Re: Web Protect¤Ë¤Ä¤¤¤Æ
ID¾ðÊó¡§ teketen
Åê¹Æ¼Ô¡§ ¤Æ¤±¤Æ¤ó

> secret.html¤Ë¤Ï¤È¤Ð¤º¡¢°ã¤¦±£¤·¥Ú¡¼¥¸¤òɽ¼¨¤¹¤ë¤³¤È¤Ï²Äǽ¤Ç¤·¤ç¤¦¤«¡©

ÀßÃÖ¹½À®¤ò¥Ñ¥¿¡¼¥ó2¤Ç¹Ô¤Ã¤Æ¤¤¤Æ¡¢secret.html¤ËľÀÜ¥¢¥¯¥»¥¹¤·¤ÆÍߤ·¤¯¤Ê¤¤¤«¤é¡¢Ê̤Î̾Á°¤Ë¤·¤¿¤¤¤È¤¤¤¦¤³¤È¤Ç¤¹¤«¡©
¤½¤ì¤Ê¤é¡¢secret.html¤òÊ̤Ê̾Á°¤ËÊѹ¹¤·¤Æ¡¢ÀßÄê¤Ç¤½¤Î̾Á°¤ò»ØÄꤷ¤Æ²¼¤µ¤¤¡£
¤Þ¤¿¤Ï¡¢±£¤·¥Ú¡¼¥¸¤¬1¥Ú¡¼¥¸¤·¤«¤Ê¤¤¤Î¤Ç¡¢¤½¤Î¥Ú¡¼¥¸¤òľ¤°¤Ëɽ¼¨¤µ¤»¤¿¤¤¤È¤¤¤¦¤³¤È¤Ç¤¹¤«¡©
¤½¤ì¤Ê¤é¡¢¤½¤Î¥Ú¡¼¥¸¤Î̾Á°¤òsecret.html¤ËÊѹ¹¤¹¤ë¤«¡¢ÀßÄê¤Çsecret.html¤Ç¤Ï¤Ê¤¯¤½¤Î¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤷ¤Æ²¼¤µ¤¤¡£

¤É¤Á¤é¤Ç¤â¤Ê¤¤¤Ê¤é¡¢¤É¤Î¤è¤¦¤Ê»ö¤ò¤·¤¿¤¤¤Î¤«¡¢¤â¤Ã¤È¾Ü¤·¤¯ÀâÌÀ¤·¤Æ²¼¤µ¤¤¡£

> ÄÉ¿­¡§£Ã£Ç£É¤Ë°ìÅÙÈô¤Ö¤È¡¢±£¤·¥Ú¡¼¥¸¤ËÌá¤ì¤º¡¢Ç§¾Ú¥¨¥é¡¼¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

http://www.kent-web.com/pwd/protect.html
²òÀâ¥Ú¡¼¥¸¤Î¡Ö¥¸¥ã¥ó¥×À褬£Ã£Ç£É¤Î¾ì¹ç¡×¤ò¡¢³Îǧ¤·¤Æ¤¤¤Þ¤¹¤«¡©


µ­»öNo¡§ 5906
Åê¹ÆÆü¡§ 2009/06/02(Tue) 21:49:21
¥¿¥¤¥È¥ë¡§ Re^2: Web Protect¤Ë¤Ä¤¤¤Æ
ID¾ðÊó¡§ nod1222
Åê¹Æ¼Ô¡§ natsuki
URL¡§ http://www.morinaga-natsuki.com/

ÀâÌÀ¤¬Â­¤ê¤º¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£
secret.html¤òÊ̤Î̾Á°¤Ë¤«¤¨¤¿¤¤¤Î¤Ç¤Ï¤Ê¤¯¤Æ¡¢
­¡ºÇ½é¤Ë¥í¥°¥¤¥ó¤·¤¿¤È¤­¤Ësecret.html
­¢¼¡¤Ë¥í¥°¥¤¥ó¤·¤¿¤È¤­¤Ë±£¤·¥Ú¡¼¥¸¤Îsecret.html°Ê³°¤Î¥Ú¡¼¥¸¤òɽ¼¨
¤È¤¤¤¦½ç¤Ç¥í¥°¥¤¥ó¤·¤¿²ó¿ô¤Ë¤è¤Ã¤Æɽ¼¨¤¹¤ë¥Ú¡¼¥¸¤òÊѤ¨¤¿¤¤¤Î¤Ç¤¹¡£

ÄÉ¿­¤Ç½ñ¤«¤»¤Æ¤¤¤¿¤À¤¤¤¿Ê䭤Ǥ¹¤¬¡¢

ºÇ½é¤Ï±£¤·¥Õ¥¡¥¤¥ë¤Î¥È¥Ã¥×¥Ú¡¼¥¸¤Ç¤¢¤ë secret.html ¤Ë°ìö¥¸¥ã¥ó¥×¤µ¤»¡¢secret.html¤Ë¤¢¤ëCGI¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯¤ò¥¯¥ê¥Ã¥¯¤µ¤»¤Æ¥¸¥ã¥ó¥×¤µ¤»¤Þ¤¹¡£

¤Î¤è¤¦¤ËÀßÄê¤ò¤·¤Þ¤·¤¿¡£¥¸¥ã¥ó¥×¤·¤¿¤Î¤Ï¥á¡¼¥ëÁ÷¿®¥Õ¥©¡¼¥à¤Ç¤¹¡£¥á¡¼¥ëÁ÷¿®¤¬¤ª¤ï¤ê¡¢¤½¤³¤Ë±£¤·¥Ú¡¼¥¸¤Ø¤Î¥ê¥ó¥¯¡Êsecret.html¤Ç¤Ï¤Ê¤¤¥Ú¡¼¥¸¡Ë¤ò¤Ï¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¤½¤³¤Ç¥ê¥ó¥¯¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤Èǧ¾Ú¥¨¥é¡¼¤¬¤Ç¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

¤ª¼ê¿ô¤ò¤ª¤«¤±¤¤¤¿¤·¤Þ¤¹¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£


µ­»öNo¡§ 5909
Åê¹ÆÆü¡§ 2009/06/03(Wed) 17:32:15
¥¿¥¤¥È¥ë¡§ Re^3: Web Protect¤Ë¤Ä¤¤¤Æ
ID¾ðÊó¡§ teketen
Åê¹Æ¼Ô¡§ ¤Æ¤±¤Æ¤ó

> (2)¼¡¤Ë¥í¥°¥¤¥ó¤·¤¿¤È¤­¤Ë±£¤·¥Ú¡¼¥¸¤Îsecret.html°Ê³°¤Î¥Ú¡¼¥¸¤òɽ¼¨

¤È¤¤¤¦¤Î¤¬¡¢
> ¥á¡¼¥ëÁ÷¿®¤¬¤ª¤ï¤ê¡¢¤½¤³¤Ë±£¤·¥Ú¡¼¥¸¤Ø¤Î¥ê¥ó¥¯¡Êsecret.html¤Ç¤Ï¤Ê¤¤¥Ú¡¼¥¸¡Ë¤ò¤Ï¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¤½¤³¤Ç¥ê¥ó¥¯¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤Èǧ¾Ú¥¨¥é¡¼¤¬¤Ç¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¤Î¤³¤È¤ÈȽÃǤ·¤Þ¤·¤¿¡£

°Ê²¼¤Î½¤Àµ¤ò¹Ô¤Ã¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
2²óÌܤÎˬÌä¤Ç¤â¡¢¥í¥°¥¤¥ó¥Õ¥©¡¼¥à¤«¤éÉáÄÌ¤Ë¥í¥°¥¤¥ó¤·¤¿»þ¤Ï¡¢secret.html¤ÎÆâÍƤòɽ¼¨¤·¤Þ¤¹¡£
ÉÔ¶ñ¹ç¤¬¤¢¤ë¾ì¹ç¤Ï¡¢¸µ¤ËÌᤷ¤Æ¤¯¤À¤µ¤¤¡£
²þ¤¤Ï¡¢¼«¸ÊÀÕǤ¤Ë¤Æ¤ª´ê¤¤¤·¤Þ¤¹¡£

protect.cgi

#-------------------------------------------------
# ǧ¾Ú½èÍý
#-------------------------------------------------

¤Ë¤¢¤ë¡¢

# ¥¯¥Ã¥­¡¼³ÊǼ
if ($mode eq 'enter') {
$time = time;
if ($in{'cook'} eq "") { $in{'cook'} = 0; }
&set_cookie($in{'cook'}, $time);
}

¤ò

# ¥¯¥Ã¥­¡¼³ÊǼ
if ($mode eq 'enter') {
$time = time;
if ($in{'cook'} eq "") { $in{'cook'} = 0; }
&set_cookie($in{'cook'}, $time);
} else {
my $time = time;
my ($id,$pw,$tm) = (get_cookie())[0,1,3];
$cooklimit ||= 1;
if($time - $tm < $cooklimit*3600) {
$in{'id'} ||= $id;
$in{'pw'} ||= $pw;
}
}

¤ËÊѹ¹¤·¤Æ²¼¤µ¤¤¡£
¤½¤·¤Æ¡¢ÀßÄêÉôʬ¤Ë

# ¥¯¥Ã¥­¡¼¤ò»È¤Ã¤Æ¡¢¥æ¡¼¥¶¡¼ID¤È¥Ñ¥¹¥ï¡¼¥É¤Î¾ðÊó¤Î¤Ê¤¤¥ê¥ó¥¯¤ä¥Õ¥©¡¼¥à¤«¤é¡¢±£¤·¥Ú¡¼¥¸¤Ë°ÜÆ°¤Ç¤­¤ëÍ­¸ú»þ´Ö¤ò»ØÄê
# ñ°Ì¤Ï¡¢»þ´Ö¡£
# Í­¸ú»þ´Ö¤Ï¡¢ºÇ¸å¤Ë¥í¥°¥¤¥ó¥Ú¡¼¥¸¤«¤é¥í¥°¥¤¥ó¤·¤¿»þ´Ö¤«¤é¿ô¤¨¤Þ¤¹¡£
$cooklimit = 1;



±£¤·¥Ú¡¼¥¸¤Ø¤ÎÌá¤êÀè¤Ï¡¢
<a href="http://¥µ¥¤¥È¥¢¥É¥ì¥¹/protect.cgi?page=1">Ìá¤ë</a>
¤Î¤è¤¦¤Ë¥ê¥ó¥¯¤òÄ¥¤Ã¤Æ²¼¤µ¤¤¡£

¥¯¥Ã¥­¡¼¤òÍøÍѤ·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢É¬¤º°ìÅÙ¥í¥°¥¤¥ó²èÌ̤è¤ê¥í¥°¥¤¥ó¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¥¯¥Ã¥­¡¼¤ò̵¸ú¤Ë¤·¤Æ¤¤¤ë¥Ö¥é¥¦¥¶¤ä¡¢¥»¥­¥å¥ê¥Æ¥£¥½¥Õ¥È¤Ç¥¯¥Ã¥­¡¼¤ò¼×ÃǤ·¤Æ¤¤¤ë´Ä¶­¤Ç¤Ï¡¢Ç§¾Ú¥¨¥é¡¼¤¬¤Ç¤Þ¤¹¡£


# ¡ûÉÕ¤­Ê¸»ú¤Ï¡¢µ¡¼ï°Í¸ʸ»ú¤Ê¤Î¤Ç¡¢¥Í¥Ã¥È¤Ç¤Ï»È¤ï¤Ê¤¤¤è¤¦¤Ë¤·¤Æ²¼¤µ¤¤¡£


[¸¡º÷¥Ú¡¼¥¸]