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


µ­»öNo¡§ 14939
Åê¹ÆÆü¡§ 2016/06/29(Wed) 03:57:26
¥¿¥¤¥È¥ë¡§ WebPatio5.11¤ËID¼«Æ°À¸À®µ¡Ç½¤ò
ID¾ðÊó¡§ rick7634
Åê¹Æ¼Ô¡§ RICK
URL¡§ http://bbs.dojin-rpg-cheat.com/bbs/patio.cgi

Web Patio¤Ë2ch¤ß¤¿¤¤¤ÊID¤ò¼«Æ°À¸À®¤·¤Æ
̾Á°¤ÎÎÙ¤Ëɽ¼¨¤¹¤ëµ¡Ç½¤òÉÕ¤±¤¿¤¤¤È»×¤¤
¥¹¥ì¤òΩ¤Æ¤µ¤»¤Æ¤¤¤¿¤À¤­¤Þ¤·¤¿¡£

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


µ­»öNo¡§ 14940
Åê¹ÆÆü¡§ 2016/06/29(Wed) 14:09:45
¥¿¥¤¥È¥ë¡§ Re: WebPatio5.11¤ËID¼«Æ°À¸À®µ¡Ç½¤ò
ID¾ðÊó¡§ hirayama
Åê¹Æ¼Ô¡§ hirayama
URL¡§ http://shade-search.com/sts/fsw/wiki.cgi

Kent¤µ¤ó¤Î½ñÀÒÉÕÏ¿ÈǤ˥ȥê¥Ã¥×µ¡Ç½¤äIDɽ¼¨µ¡Ç½¤Î¤¢¤ë
2chÉ÷¤Î·Ç¼¨ÈĤ¬¤¢¤ë¤è¤¦¤Ê¤Î¤Ç¡¢¤½¤ì¤ò»²¹Í¤Ë¤¹¤ë¤Î¤¬Áᤤ¤Î¤«¤âÃΤì¤Þ¤»¤ó¤¬¡¢
ÌÌÇò¤½¤¦¤Ê¤Î¤Ç¹Í¤¨¤Æ¤ß¤Þ¤·¤¿¡£

¤Ê¤ê¤¹¤Þ¤·ËɻߤΤ¿¤á¤ÎIDɽ¼¨¤È¤¤¤¦¤³¤È¤Ê¤é
Ʊ¤¸Åê¹Æ¼Ô¤ÏËè²óƱ¤¸ID¤¬É½¼¨¤µ¤ì¡¢Â¾¿Í¤¬¤½¤ÎID¤òɽ¼¨¤Ç¤­¤Ê¤¤¤â¤Î
¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ë¤«¤È»×¤¤¤Þ¤¹¤¬¡¢¤¤¤¯¤Ä¤«ÊýË¡¤¬¤¢¤ë¤È»×¤¤¤Þ¤¹¡£

(1)IP¥¢¥É¥ì¥¹¤ÈÆüÉÕ¤ò°Å¹æ²½¤·¤ÆID¤òɽ¼¨¡£
Ʊ¤¸¿Í¤¬Ê̤ÎÆü¤ËÅê¹Æ¤¹¤ë¤ÈID¤¬ÊѤï¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¤Þ¤¿¡¢Æ±¤¸IP¥¢¥É¥ì¥¹¤ÎÅê¹Æ¼Ô¤¬¤¤¤ë¤È¡¢Ê̿ͤǤâƱ¤¸ID¤Ë¤Ê¤ë²ÄǽÀ­¤â¤¢¤ê¤Þ¤¹¡£

(2)½é²óÅê¹Æ»þ¤Ë¥é¥ó¥À¥à¤Êʸ»úÎó¤òÀ¸À®¤·¡¢¤³¤ì¤ò¥¯¥Ã¥­¡¼¤ËÊݸ¤·¡¢¤³¤Îʸ»úÎó¤ò°Å¹æ²½¤·¤ÆID¤È¤¹¤ë¡£
Ê̿ͤ¬Æ±¤¸IP¤Ë¤Ê¤ë³ÎΨ¤Ï¸º¤ê¤Þ¤¹¤¬¡¢¤³¤Î¾ì¹ç¤âüËö¤¬ÊѤï¤ë¤ÈID¤¬ÊѤï¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

(3)¥È¥ê¥Ã¥×µ¡Ç½¤òÍøÍѤ¹¤ë¡£
̾Á°ÆþÎÏÍó¤Ç#°Ê¹ß¤Îʸ»úÎó¤òIDÀ¸À®¤Î¤¿¤á¤Î¥Ñ¥¹¥ï¡¼¥É¤È¤·¤Æ¥¯¥Ã¥­¡¼¤ËÊݸ¤·¤Æ
Åê¹Æ»þ¤Ë°Å¹æ²½¤·¤ÆID¤È¤·¤Æɽ¼¨¡£
Ʊ¤¸¥Ñ¥¹¥ï¡¼¥É¤òÆþÎϤ¹¤ì¤ÐÅê¹ÆüËö¤¬ÊѤï¤Ã¤Æ¤âƱ¤¸ID¤òɽ¼¨¤Ç¤­¤ë¡£
¥¯¥Ã¥­¡¼¤ËÊݸ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¼¡²óÅê¹Æ»þ¤Ï̾Á°ÆþÎϤΤߤÇOK¡£
¥¯¥Ã¥­¡¼¤ÎÊݸ´ü´Ö¤¬Àڤ줿¤é¡¢Åê¹Æ¥Õ¥©¡¼¥à¤Ë¤½¤Î»Ýɽ¼¨¤·¤ÆºÆÅ٥ȥê¥Ã¥×ÍÑʸ»úÎó¤ÎºÆÆþÎϤòµá¤á¤ë¡£
ÉÔÆÃÄê¿¿ô¤Î¿Í¤¬ÍøÍѤ¹¤ëüËö¤ÇÅê¹Æ¤¹¤ë¾ì¹ç¤Ï¡¢¥¯¥Ã¥­¡¼¤ò¥ª¥Õ¤Ë¤¹¤ë¤Ê¤É¤ÎÂкö¤¬É¬Íס£

¤¤¤º¤ì¤Ë¤·¤Æ¤â¤±¤Ã¤³¤¦¤Ê²þ¤¥Ü¥ê¥å¡¼¥à¤Ë¤Ê¤ê¤½¤¦¤Ê¤Î¤Ç¡¢
(1)¤ÎÎã¤Î¼ê½ç¤À¤±µ­¤¹¤È¡¢

regist.cgi¤Ë

sub create_id {
my($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
$year += 1900;
$mon += 1;
my $ip = $ENV{'REMOTE_ADDR'};
use Digest::MD5 qw/md5_hex/;

# MD5¤ÇÀ¸À®¤·¤¿Ê¸»úÎó¤¬Ä¹¤¤¤Î¤Ç¡¢ÀèƬ¤«¤é10ʸ»ú¤À¤±¼è¤ê½Ð¤¹
my $id = substr(md5_hex($ip . $year . sprintf("%02d",$mon) . sprintf("%02d",$mday)),0,10);
return $id;
}

¤Î¤è¤¦¤Ê´Ø¿ô¤òÄɲ䷤ơ¢regist.cgi¤Îsub registÆâ¤ÇÊݸ¤µ¤ì¤ë¥í¥°¤ÎËöÈø¤Ë
create_id()¤ÇÆÀ¤é¤ì¤ëid¤òÊݸ¤¹¤ë¤è¤¦½¤Àµ¡£

ID¤òɽ¼¨¤·¤¿¤¤¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤Ç¡¢Äɲä·¤¿¤¤¤È¤³¤í¤Ë !id! ¤ÈÄɲ乤롣

patio.cgi¤Ç¡¢sub bbs_list¡¢sub read_log¡¢sub search¡¢sub past_page¤Ê¤É¤Î
¥í¥°Æɤ߹þ¤ßÉôʬ¤ÇID¤ÎÃͤâÆɤ߹þ¤à¤è¤¦¤Ë½¤Àµ¤¹¤ë¡£
ID¤ò$id¤ËÊݸ¤·¤¿¤Ê¤é¡¢
$¡û¡û =~ s/!name!/$nam/g;
¤Î¤è¤¦¤ÊÊÑ´¹Éôʬ¤Î¶á¤¯¤Ë
$¡û¡û =~ s/!id!/$id/g;
¤Î¤è¤¦¤Êʸ¤òÄɲ乤롣


µ­»öNo¡§ 14992
Åê¹ÆÆü¡§ 2016/07/09(Sat) 06:19:49
¥¿¥¤¥È¥ë¡§ Re^2: WebPatio5.11¤ËID¼«Æ°À¸À®µ¡Ç½¤ò
ID¾ðÊó¡§ rick7634
Åê¹Æ¼Ô¡§ ROCK

¤¤¤º¤ì¤Ë¤·¤Æ¤â°ì¶ÚÆì¤Ç¤Ï¹Ô¤­¤½¤¦¤Ë¤Ê¤¤¤Ç¤¹¤Í¡£
¸Ä¿ÍŪ¤Ë¤Ï2È֤ǹԤ­¤¿¤¤¤Î¤Ç¤¹¤¬·ë¹½¤Ê¥Ü¥ê¥å¡¼¥à¤Ë¤Ê¤ê¤Þ¤¹¤«¡©


µ­»öNo¡§ 14996
Åê¹ÆÆü¡§ 2016/07/09(Sat) 18:45:33
¥¿¥¤¥È¥ë¡§ Re^3: WebPatio5.11¤ËID¼«Æ°À¸À®µ¡Ç½¤ò
ID¾ðÊó¡§ hirayama
Åê¹Æ¼Ô¡§ hirayama
URL¡§ http://shade-search.com/sts/fsw/wiki.cgi

> ¤¤¤º¤ì¤Ë¤·¤Æ¤â°ì¶ÚÆì¤Ç¤Ï¹Ô¤­¤½¤¦¤Ë¤Ê¤¤¤Ç¤¹¤Í¡£
> ¸Ä¿ÍŪ¤Ë¤Ï2È֤ǹԤ­¤¿¤¤¤Î¤Ç¤¹¤¬·ë¹½¤Ê¥Ü¥ê¥å¡¼¥à¤Ë¤Ê¤ê¤Þ¤¹¤«¡©

¤½¤ì¤Û¤ÉÂ礭¤Ê°ã¤¤¤Ï¤Ê¤¤¤È»×¤¤¤Þ¤¹¤¬¡¢¥¯¥Ã¥­¡¼¤¬¤é¤ß¤Ç¾¯¤·ÌÌÅݤˤʤ뤫¤â¤·¤ì¤Þ¤»¤ó¡£
(2)¤Î¾ì¹ç¡¢ID¤òȯ¹Ô¤¹¤ë´Ø¿ô¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ë¤È»×¤¤¤Þ¤¹¡£

sub create_id2 {
my ($ck_nam,$ck_eml,$ck_url,$ck_mlo,$salt) = &get_cookie;
if (!$salt) {
my $length = 10;
my @seed = ('a'..'z', 'A'..'Z', 0..9);
$salt = '';
while(length($salt) < $length) {
$salt .= @seed[int rand(scalar @seed)];
}
&set_cookie('SALT',$salt);
}
use Digest::MD5 qw/md5_hex/;

# MD5¤ÇÀ¸À®¤·¤¿Ê¸»úÎó¤¬Ä¹¤¤¤Î¤Ç¡¢ÀèƬ¤«¤é10ʸ»ú¤À¤±¼è¤ê½Ð¤¹
my $id = substr(md5_hex($salt),0,10);
return $id;
}

¤Û¤«¤Ï´ðËÜŪ¤Ë¤Ï(1)¤Î¥±¡¼¥¹¤ÈƱ¤¸¤Ç¤¹¤¬¡¢¤³¤ì¤À¤±¤Ç¤Ï¥¯¥Ã¥­¡¼¤ò̵¸ú¤Ë¤·¤Æ¤¤¤ë¥Ö¥é¥¦¥¶¤Î¾ì¹ç
Ëè²óID¤¬ÊѤï¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¡¢¤½¤Î¾ì¹ç¤ÎÂкö¤âɬÍפÀ¤È»×¤¤¤Þ¤¹¡£
¥¯¥Ã¥­¡¼¤¬»È¤¨¤Ê¤¤¾ì¹ç¡¢(1)¤Î½èÍý¤ËÀÚ¤êÂؤ¨¤ë¤È¤¤¤¦¤Î¤â1°Æ¤Ç¤¹¡£

ÌäÂê¤Ï¥¯¥Ã¥­¡¼¤¬»È¤¨¤ë¤«¤É¤¦¤«¤ò¤É¤¦È½Äꤹ¤ë¤«¤Ç¤¹¤Í¡£
1²ó¤Î¥¢¥¯¥»¥¹¤À¤±¤Ç¤ÏÆñ¤·¤½¤¦¤Ê¤Î¤Ç¡¢
¥Õ¥©¡¼¥àɽ¼¨»þ¤Ë¥À¥ß¡¼¤Î¥¯¥Ã¥­¡¼¤òȯ¹Ô¤·¡¢Åê¹Æ¥Ü¥¿¥ó¤ò²¡¤·¤¿ºÝ¡¢¤½¤Î¥¯¥Ã¥­¡¼Ãͤ¬Êݸ¤µ¤ì¤Æ¤¤¤¿¤é
»È¤¨¤ë¤ÈȽÄꤷ¤Æcreate_id2¤ò¼Â¹Ô¤·¡¢»È¤¨¤Ê¤«¤Ã¤¿¤é(1)¤Î½èÍý¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ë¤«¤È»×¤¤¤Þ¤¹¡£


µ­»öNo¡§ 14998
Åê¹ÆÆü¡§ 2016/07/10(Sun) 05:29:26
¥¿¥¤¥È¥ë¡§ Re^4: WebPatio5.11¤ËID¼«Æ°À¸À®µ¡Ç½¤ò
ID¾ðÊó¡§ rick7634
Åê¹Æ¼Ô¡§ ROCK

¤ï¤«¤ê¤Þ¤·¤¿¡£°Ê²¼¤Î½èÍý¤Îµ­½ÒÊýË¡¤ò¶µ¤¨¤Æ¤Û¤·¤¤¤Ç¤¹¡£

­¡regist.cgi¤Îsub registÆâ¤ÇÊݸ¤µ¤ì¤ë¥í¥°¤ÎËöÈø¤Ëcreate_id()¤ÇÆÀ¤é¤ì¤ëid¤òÊݸ¤¹¤ë¤è¤¦½¤Àµ¡£

­¢patio.cgi¤Ç¡¢sub bbs_list¡¢sub read_log¡¢sub search¡¢sub past_page¤Ê¤É¤Î¥í¥°Æɤ߹þ¤ßÉôʬ¤ÇID¤ÎÃͤâÆɤ߹þ¤à¤è¤¦¤Ë½¤Àµ¤¹¤ë¡£
ID¤ò$id¤ËÊݸ¤·¤¿¤Ê¤é¡¢
$¡û¡û =~ s/!name!/$nam/g;
¤Î¤è¤¦¤ÊÊÑ´¹Éôʬ¤Î¶á¤¯¤Ë
$¡û¡û =~ s/!id!/$id/g;
¤Î¤è¤¦¤Êʸ¤òÄɲ乤롣

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


µ­»öNo¡§ 14999
Åê¹ÆÆü¡§ 2016/07/10(Sun) 16:30:39
¥¿¥¤¥È¥ë¡§ Re^5: WebPatio5.11¤ËID¼«Æ°À¸À®µ¡Ç½¤ò
ID¾ðÊó¡§ hirayama
Åê¹Æ¼Ô¡§ hirayama
URL¡§ http://shade-search.com/sts/fsw/wiki.cgi

>¤ï¤«¤ê¤Þ¤·¤¿¡£°Ê²¼¤Î½èÍý¤Îµ­½ÒÊýË¡¤ò¶µ¤¨¤Æ¤Û¤·¤¤¤Ç¤¹¡£

½¤Àµ²Õ½ê¤¬Ê£¿ô¤Ë¤Ê¤ë¤Î¤Ç¡¢¤½¤ì¤°¤é¤¤¤Ï¼«Ê¬¤Ç½ñ¤±¤Ê¤¤¤È
¤ï¤±¤ï¤«¤é¤Ê¤¯¤Ê¤ë¶²¤ì¤¬¤¢¤ê¤Þ¤¹¤¬¡¢°ì±þ½ñ¤¤¤Æ¤ª¤­¤Þ¤¹¡£

­¡¤ÎÊý¤Ï¡¢³ä¤È´Êñ¤Ç¡¢sub regist ¤ÎºÇ½é¤ÎÊý¤Ë

my $id = create_id();

¤òÄɲä·¤Þ¤¹¡£¤½¤·¤Æ¡¢¿·µ¬Åê¹Æ¤Î¥¹¥ì¥Ã¥É¹¹¿·½èÍý¤Î
print OUT "0<>$in{sub}<>$name<>$in{email}<>$in{comment}<>$date<>$host<>$pwd<>$in{url}<>$in{mlo}<>$au{id}<>$time<>$ex{1},$w{1},$h{1}<>$ex{2},$w{2},$h{2}<>$ex{3},$w{3},$h{3}<>\n";
¤ò
print OUT "0<>$in{sub}<>$name<>$in{email}<>$in{comment}<>$date<>$host<>$pwd<>$in{url}<>$in{mlo}<>$au{id}<>$time<>$ex{1},$w{1},$h{1}<>$ex{2},$w{2},$h{2}<>$ex{3},$w{3},$h{3}<>$id<>\n";

ÊÖ¿®Åê¹Æ¤Î¥¹¥ì¥Ã¥É¹¹¿·½èÍý¤â
push(@log,"$newno<>$in{sub}<>$name<>$in{email}<>$in{comment}<>$date<>$host<>$pwd<>$in{url}<>$in{mlo}<>$au{id}<>$time<>$ex{1},$w{1},$h{1}<>$ex{2},$w{2},$h{2}<>$ex{3},$w{3},$h{3}<>\n");
¤ò
push(@log,"$newno<>$in{sub}<>$name<>$in{email}<>$in{comment}<>$date<>$host<>$pwd<>$in{url}<>$in{mlo}<>$au{id}<>$time<>$ex{1},$w{1},$h{1}<>$ex{2},$w{2},$h{2}<>$ex{3},$w{3},$h{3}<>$id<>\n");
¤È½¤Àµ¤·¤Þ¤¹¡£

regist.cgi¤Ë¤ÏÀè¤Ëµ­¤·¤¿sub create_id¤òÄɲ䷤Ƥª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£(2)¤Î½èÍý¤ò¹Ô¤¦¤Ê¤é¡¢¤µ¤é¤Ësub create_id¡¢sub get_cookie¡¢sub set_cookie¤âÄɲä·¤Þ¤¹¡£
sub get_cookie¤Èsub set_cookie¤Ïpatio.cgi¤Îʬ¤ò¤½¤Î¤Þ¤Þ¥³¥Ô¥Ú¤¹¤ì¤Ð¤¤¤¤¤Ç¤¹¡£
°Ê¾å¤Î½¤Àµ¤ÇÅê¹Æ»þ¤ËID¤¬¥í¥°¤ËÊݸ¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

­¢¤ÎÊý¤Ï¤«¤Ê¤ê½¤Àµ²Õ½ê¤¬Â¿¤¤¤Î¤Ç¡¢½¤Àµ¤Î¼ê½ç¤òµ­¤¹¤Ë¤È¤É¤á¤Þ¤¹¡£
¤Þ¤º¡¢tmpl¥Ç¥£¥ì¥¯¥È¥êÆâ¤Îhtml¥Õ¥¡¥¤¥ë¤«¤é !name! ¤ä !res_name! ¤Îµ­½Ò¤¬¤¢¤ëÉôʬ¤òÁܤ·¤Þ¤¹¡£
¥¨¥Ç¥£¥¿¤Î¸¡º÷µ¡Ç½¤ò»È¤¨¤Ð¤¤¤¤¤È»×¤¤¤Þ¤¹¡£
!name! Éôʬ¤¬Åê¹Æ¼Ô̾¤¬É½¼¨¤µ¤ì¤ëÉôʬ¤Ê¤Î¤Ç¡¢¤³¤Î¶á¤¯¤ÎID¤òɽ¼¨¤·¤¿¤¤Éôʬ¤Ë !id! ¤òµ­½Ò¤·¤Þ¤¹¡£
!res_name! ¤Î¶á¤¯¤ÎID¤Ï !res_id! ¤È¤·¤Æ¤ª¤­¤Þ¤¹¡£

º£ÅÙ¤Ïpatio.cgi¤ò³«¤­¡¢¤³¤Á¤é¤â !name! ¤ä !res_name! ¤Îµ­½Ò¤¬¤¢¤ëÉôʬ¤òÁܤ·¤Þ¤¹¡£
$tmpl =~ s/!name!/$nam/g;
¤Î¤è¤¦¤Ë !name! ¤ò$nam¤Ê¤É¤ÇÊÑ´¹¤¹¤ëÉôʬ¤¬¤¢¤ë¤È»×¤¤¤Þ¤¹¡£$nam¤¬Åê¹Æ¼Ô̾¤Ç¤¹¤¬¡¢
¤³¤Î¹Ô¤è¤êÁ°¤Ë¡¢¥í¥°¥Õ¥¡¥¤¥ë¤«¤é$nam¤ò¼è¤ê½Ð¤¹½èÍý¤ò¤·¤Æ¤¤¤ëÉôʬ¤¬¤¢¤ë¤Ï¤º¤Ç¡¢¤½¤ì¤òÁܤ·¤Þ¤¹¡£
º£ÅÙ¤Ï $nam ¤Ç¾åÊý¸þ¤Ë¸¡º÷¤¹¤ë¤È¤¹¤°¸«¤Ä¤«¤ë¤È»×¤¤¤Þ¤¹¡£

my ($no2,$sub,$nam,$eml,$com,$date,$ho,$pw,$url,$mlo,$myid,$tim,$up1,$up2,$up3) = split(/<>/, $par);

¤È¤¤¤¦¤è¤¦¤ÊÉôʬ¤Ç¤¹¡£ID¤Ï¤³¤Î¥í¥°¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤ËÊݸ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢

my ($no2,$sub,$nam,$eml,$com,$date,$ho,$pw,$url,$mlo,$myid,$tim,$up1,$up2,$up3,$id) = split(/<>/, $par);

¤ÈÊѹ¹¤·¤Æ$id¤ËID¤òÊݸ¤·¤Þ¤¹¡£

¤½¤·¤ÆÀè¤Û¤É¤Î

$tmpl =~ s/!name!/$nam/g;
¤Î²¼¤ËID¤òÃÖ¤­´¹¤¨¤ë½èÍý
$tmpl =~ s/!id!/$id/g;

¤òÄɲä·¤Þ¤¹¡£

!res_name! ¤Ë¤Ä¤¤¤Æ¤âƱÍͤË
$tmp =~ s/!res_name!/$nam/g;
¤Î¤è¤¦¤Ê¾ì½ê¤òÁܤ·¡¢¤½¤Î¾¯¤·Á°¤Î¥í¥°¤«¤é¤Î¥Ç¡¼¥¿Ãê½Ð½èÍý

my ($no,$sub,$nam,$eml,$com,$date,$ho,$pw,$url,$mlo,$myid,$tim,$up1,$up2,$up3) = split(/<>/);

¤Î¤è¤¦¤ÊÉôʬ¤ò

my ($no,$sub,$nam,$eml,$com,$date,$ho,$pw,$url,$mlo,$myid,$tim,$up1,$up2,$up3,$res_id) = split(/<>/);

¤È½ñ¤­´¹¤¨¡¢

$tmp =~ s/!res_name!/$nam/g;
¤Î²¼¤Ë
$tmp =~ s/!res_id!/$res_id/g;

¤òÄɲ乤롣
¤È¤¤¤Ã¤¿´¶¤¸¤Ç¤¹¡£
¤É¤Î´Ø¿ôÆâ¤Î½èÍý¤ò½ñ¤­´¹¤¨¤ë¤Ù¤­¤«¤Ï¡¢¸¡¾Ú¤·¤Æ¤¤¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î¤¢¤¿¤ê¤Ï¤´¼«Ê¬¤Ç»î¹Ôºø¸í¤·¤Æ¤¯¤À¤µ¤¤¡£


µ­»öNo¡§ 15000
Åê¹ÆÆü¡§ 2016/07/10(Sun) 18:31:35
¥¿¥¤¥È¥ë¡§ Re^6: WebPatio5.11¤ËID¼«Æ°À¸À®µ¡Ç½¤ò
ID¾ðÊó¡§ hirayama
Åê¹Æ¼Ô¡§ hirayama
URL¡§ http://shade-search.com/sts/fsw/wiki.cgi

¤¹¤ß¤Þ¤»¤ó¡£»ä¤â¤¹¤Ç¤Ë¤ï¤±¤ï¤«¤é¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤ë¤è¤¦¤Ç¡¢
¥¯¥Ã¥­¡¼¤Ë¤Ä¤¤¤Æ¤«¤Ê¤ê¤¤¤¤²Ã¸º¤Ê¤³¤È¤ò½ñ¤¤¤Æ¤¤¤Þ¤·¤¿¡£
patio.cgi¤Ë¤¢¤ë¥¯¥Ã¥­¡¼´Ø¿ô¤ÎήÍѤǤϤ¦¤Þ¤¯¤¤¤«¤Ê¤¤¤È¤¤¤¦¤«¡¢¤«¤Ê¤êÌÌÅݤʤ³¤È¤ò¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤Î¤Ç¡¢
Ê̤ËIDÀìÍѤΥ¯¥Ã¥­¡¼´Ø¿ô¤òºî¤Ã¤¿¤Û¤¦¤¬º®Í𤻤º¤ËºÑ¤ß¤½¤¦¤Ç¤¹¡£
¤½¤·¤Æ¥¯¥Ã¥­¡¼Êݸ¤Ïpatio.cgi¡¢regist.cgi¤½¤ì¤¾¤ì¤Ç¹Ô¤¦É¬Íפ¬¤¢¤ë¤Î¤Ç¡¢
regist.cgi ¤Ç¤Ï¤Ê¤¯¡¢init.cgi¤ËÄɲ䷤Ƥ·¤Þ¤¦¤Î¤¬Îɤµ¤½¤¦¤Ç¤¹¡£Ì¾Á°¤âÊѤ¨¤Þ¤¹¡£

sub set_idcookie {
my @data = @_;

my ($sec,$min,$hour,$mday,$mon,$year,$wday,undef,undef) = gmtime(time + 60*24*60*60);
my @mon = qw|Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec|;
my @week = qw|Sun Mon Tue Wed Thu Fri Sat|;

# »þ¹ï¥Õ¥©¡¼¥Þ¥Ã¥È
my $gmt = sprintf("%s, %02d-%s-%04d %02d:%02d:%02d GMT",
$week[$wday],$mday,$mon[$mon],$year+1900,$hour,$min,$sec);

# URL¥¨¥ó¥³¡¼¥É
my $cook;
foreach (@data) {
s/(\W)/sprintf("%%%02X", unpack("C", $1))/eg;
$cook .= "$_<>";
}

print "Set-Cookie: FORID=$cook; expires=$gmt\n";
}

sub get_idcookie {
# ¥¯¥Ã¥­¡¼¼èÆÀ
my $cook = $ENV{HTTP_COOKIE};

# ³ºÅöID¤ò¼è¤ê½Ð¤¹
my %cook;
foreach ( split(/;/, $cook) ) {
my ($key,$val) = split(/=/);
$key =~ s/\s//g;
$cook{$key} = $val;
}

# URL¥Ç¥³¡¼¥É
my @cook;
foreach ( split(/<>/, $cook{'FORID'}) ) {
s/%([0-9A-Fa-f][0-9A-Fa-f])/pack("H2", $1)/eg;
s/[&"'<>]//g;

push(@cook,$_);
}
return @cook;
}

¤³¤Î2¸Ä¤òinit.cgi¤ËÄɲä·¤Þ¤¹¡£
¤³¤ì¤Ë¹ç¤ï¤»¤Æsub create_id2¤â°Ê²¼¤Î¤è¤¦¤ËÊѤï¤ê¤Þ¤¹¡£

sub create_id2 {
my ($test,$salt) = &get_idcookie;
if (!$salt) {
my $length = 8;
my @seed = ('a'..'z', 'A'..'Z', 0..9);
$salt = '';
while(length($salt) < $length) {
$salt .= @seed[int rand(scalar @seed)];
}
&set_idcookie($test,$salt);
}
use Digest::MD5 qw/md5_hex/;

# MD5¤ÇÀ¸À®¤·¤¿Ê¸»úÎó¤¬Ä¹¤¤¤Î¤Ç¡¢ÀèƬ¤«¤é10ʸ»ú¤À¤±¼è¤ê½Ð¤¹
my $id = substr(md5_hex($salt),0,10);
return $id;
}


µ­»öNo¡§ 15001
Åê¹ÆÆü¡§ 2016/07/13(Wed) 05:59:33
¥¿¥¤¥È¥ë¡§ Re^7: WebPatio5.11¤ËID¼«Æ°À¸À®µ¡Ç½¤ò
ID¾ðÊó¡§ rick7634
Åê¹Æ¼Ô¡§ RICK

Ĺ¡¹¤È¾Ü¤·¤¤ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
¤¿¤À¡¢¤Á¤ç¤Ã¤ÈÆñ¤·¤½¤¦¤Ë´¶¤¸¤¿¤Î¤Çº£²ó¤Ï¸«Á÷¤í¤¦¤È»×¤¤¤Þ¤¹¡£
ËÜÅö¤ËÍ­Æñ¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£


[¸¡º÷¥Ú¡¼¥¸] [·Ç¼¨ÈÄ]