{"id":33,"date":"2009-06-28T18:50:42","date_gmt":"2009-06-28T09:50:42","guid":{"rendered":"https:\/\/kimassi.net\/zak\/?p=33"},"modified":"2009-06-28T18:50:42","modified_gmt":"2009-06-28T09:50:42","slug":"%e6%8e%b2%e7%a4%ba%e6%9d%bf%e3%81%ae%e3%82%b9%e3%83%91%e3%83%a0%e6%8a%95%e7%a8%bf%e5%af%be%e7%ad%96%ef%bc%88%e9%80%a3%e7%b6%9a%e6%8a%95%e7%a8%bf%e7%a6%81%e6%ad%a2%e6%83%85%e5%a0%b1%e3%81%ae%e5%85%b1","status":"publish","type":"post","link":"https:\/\/kimassi.net\/zak\/?p=33","title":{"rendered":"\u63b2\u793a\u677f\u306e\u30b9\u30d1\u30e0\u6295\u7a3f\u5bfe\u7b56\uff08\u9023\u7d9a\u6295\u7a3f\u7981\u6b62\u60c5\u5831\u306e\u5171\u6709\uff09"},"content":{"rendered":"<p>\u304d\u307e\u3063\u3057\u91d1\u6ca2\u95a2\u9023\u306e\u30b5\u30a4\u30c8\u3067\u306f\u63b2\u793a\u677f\u306fkent-web\u306eYY-BOARD\u3092\u5229\u7528\u3057\u3066\u307e\u3059\u3002\u591a\u304f\u306e\u30b5\u30a4\u30c8\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u3060\u3051\u306b\u30b9\u30d1\u30e0\u6295\u7a3f\u306b\u72d9\u308f\u308c\u308b\u4e8b\u3082\u591a\u3044\u306e\u304c\u96e3\u70b9\u3067\u3059\u3002<\/p>\n<p>\u30b9\u30d1\u30e0\u6295\u7a3f\u5bfe\u7b56\u3068\u3057\u3066\uff0c<a href=\"http:\/\/flatray.com\/bbs-antispam\/yy-board\/\">YY-BOARD spam \u5bfe\u7b56\u6539\u9020<\/a>\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u81ea\u52d5\u6295\u7a3f\u306f\u9632\u3050\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u304d\u307e\u3063\u3057\u91d1\u6ca2\u306e\u95a2\u9023\u30b5\u30a4\u30c8\u3067\u306f\uff13\uff10\u500b\u306e\u63b2\u793a\u677f\u3092\u8a2d\u7f6e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u591a\u304f\u306e\u63b2\u793a\u677f\u306b\u624b\u52d5\u3067\uff11\u4ef6\u305a\u3064\u30b9\u30d1\u30e0\u6295\u7a3f\u3092\u3057\u3088\u3046\u3068\u3059\u308b\u4f8b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306f\u6295\u7a3f\u7981\u6b62IP\u3092\u767b\u9332\u3057\u3066\u5168\u3066\u306e\u63b2\u793a\u677f\u3067\u7981\u6b62IP\u3067\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u307e\u3059\u304c\uff0c\u30c1\u30a7\u30c3\u30af\u3067\u304d\u306a\u3044\u6642\u9593\u306e\u65b0\u305f\u306aIP\u3067\u306e\u6295\u7a3f\u306b\u306f\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u72b6\u614b\u3067\u3057\u305f\u3002<br \/>\n\u305d\u3046\u3044\u3046\u8a33\u3067<a href=\"http:\/\/flatray.com\/bbs-antispam\/yy-board\/\">YY-BOARD spam \u5bfe\u7b56\u6539\u9020<\/a>\u306e\u540c\u4e00\uff29\uff30\u30a2\u30c9\u30ec\u30b9\u306e\u77ed\u6642\u9593\u3067\u306e\u9023\u7d9a\u6295\u7a3f\u7981\u6b62\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\uff0c\u304d\u307e\u3063\u3057\u91d1\u6ca2\u95a2\u9023\u306e\uff11\u3064\u306e\u63b2\u793a\u677f\u306b\u6295\u7a3f\u3057\u305f\u5834\u5408\u306b\u306f\u4e00\u5b9a\u6642\u9593\u305f\u305f\u306a\u3044\u3068\u4ed6\u306e\u63b2\u793a\u677f\u306b\u3082\u6295\u7a3f\u3067\u304d\u306a\u3044\u3088\u3046\u306a\u5236\u9650\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u63b2\u793a\u677f\u3092\u6539\u9020\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u5b9f\u969b\u306b\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u304c\uff0c\u306a\u3093\u3068\u304b\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u5168\u3066\u306e\u63b2\u793a\u677f\u306eyyini.cgi\u3092<br \/>\n# \u5236\u9650\u6295\u7a3f\u9593\u9694\uff08\u79d2\u6570\uff09<br \/>\n#  \u2192 $regCtl \u3067\u306e\u6295\u7a3f\u9593\u9694<br \/>\n$wait = 120;<br \/>\n\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u5168\u3066\u306e\u63b2\u793a\u677f\u306eyybbs.cgi\u306b<br \/>\n#IP\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<br \/>\nopen(IN2,&#8221;$logfile2&#8243;) || &#038;error(&#8220;Open Error: $logfile2&#8243;);<br \/>\n\u3092\u8a2d\u7f6e\u3057\u307e\u3059\u3002<br \/>\n\u5177\u4f53\u7684\u306b\u306f<br \/>\nlocal($no,$re,$dat,$nam,$eml,$sub,$com,$url,$hos,$pw,$col,$ico);<br \/>\n#IP\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<br \/>\nopen(IN2,&#8221;$logfile2&#8221;) || &#038;error(&#8220;Open Error: $logfile2&#8243;);<br \/>\n# \u8a18\u4e8b\u3092\u5c55\u958b<br \/>\n$i = 0;<br \/>\n$flag = 0;<br \/>\nopen(IN,&#8221;$logfile&#8221;) || &#038;error(&#8220;Open Error: $logfile&#8221;);<br \/>\n\u3068\u3044\u3046\u5177\u5408\u3067\u3059\u3002<br \/>\n\u6700\u5f8c\u306b\u5168\u3066\u306e\u63b2\u793a\u677f\u306eyyregi.cgi\u3092\u6539\u9020\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305a<br \/>\n# IP\u30ed\u30b0\u3092\u958b\u304f<br \/>\nopen(IN2,&#8221;$logfile2&#8243;) || &#038;error(&#8220;Open Error: $logfile&#8221;);<br \/>\n@lines2 = <IN2>;<br \/>\nclose(IN2);<br \/>\n# IP\u30ed\u30b0\u306e\u30c7\u30fc\u30bf\u66f8\u304d\u51fa\u3057<br \/>\n$top2 = shift(@lines2);<br \/>\nlocal($ip2,$tim2) = split(\/<>\/, $top2);<br \/>\n\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u5177\u4f53\u7684\u306b\u306f<br \/>\n# \u30d5\u30a1\u30a4\u30eb\u30ed\u30c3\u30af<br \/>\nif ($lockkey) { &lock; }<br \/>\n# \uff29\uff30\u30ed\u30b0\u3092\u958b\u304f<br \/>\nopen(IN2,&#8221;$logfile2&#8243;) || &#038;error(&#8220;Open Error: $logfile&#8221;);<br \/>\n@lines2 = <IN2>;<br \/>\nclose(IN2);<br \/>\n# \uff29\uff30\u30ed\u30b0\u306e\u30c7\u30fc\u30bf\u53d6\u308a\u51fa\u3057<br \/>\n$top2 = shift(@lines2);<br \/>\nlocal($ip2,$tim2) = split(\/<>\/, $top2);<br \/>\n# \u30ed\u30b0\u3092\u958b\u304f<br \/>\nopen(IN,&#8221;$logfile&#8221;) || &#038;error(&#8220;Open Error: $logfile&#8221;);<br \/>\n@lines = <IN>;<br \/>\nclose(IN);<br \/>\n# \u8a18\u4e8bNO\u51e6\u7406<br \/>\n$top = shift(@lines);<br \/>\nlocal($no,$ip,$tim) = split(\/<>\/, $top);<br \/>\n$no++;<br \/>\n\u3068\u3044\u3046\u5177\u5408\u3067\u3059\u3002<br \/>\n\u9023\u7d9a\u6295\u7a3f\u30c1\u30a7\u30c3\u30af\u306e\u5f15\u6570\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\uff08$ip\u3092$ip2\u306b\uff0c$tim\u3092$tim2\u306b\u5909\u66f4\u3057\u307e\u3059\uff09<br \/>\n\u5177\u4f53\u7684\u306b\u306f<br \/>\n# \u9023\u7d9a\u6295\u7a3f\u30c1\u30a7\u30c3\u30af<br \/>\n$flag=0;<br \/>\nif ($regCtl == 1) {<br \/>\nif ($addr eq $ip2 &#038;&#038; $times &#8211; $tim2 < $wait) { $flag=1; }\n} elsif ($regCtl == 2) {\nif ($times - $tim2 < $wait) { $flag=1; }\n}\nif ($flag) {\n&#038;error(\"\u73fe\u5728\u6295\u7a3f\u5236\u9650\u4e2d\u3067\u3059\u3002\u3082\u3046\u3057\u3070\u3089\u304f\u305f\u3063\u3066\u304b\u3089\u6295\u7a3f\u3092\u304a\u9858\u3044\u3057\u307e\u3059\");\n}\n\u3068\u3044\u3046\u5177\u5408\u3067\u3059\u3002\n\u6700\u5f8c\u306b# \u89aa\u8a18\u4e8b\u306e\u5834\u5408\u4e2d\u306e#\u66f4\u65b0\u306e\u5f8c\u306b\uff08\uff11\uff14\uff10\u884c\u524d\u5f8c\uff09\u306b\n# \uff29\uff30\u30ed\u30b0\u66f4\u65b0\n@new=\"$addr<>$times<>\\n&#8221;;<br \/>\nopen(OUT2,&#8221;>$logfile2&#8243;) || &#038;error(&#8220;Write Error: $logfile2&#8243;);<br \/>\nprint OUT2 @new;<br \/>\nclose(OUT2);<br \/>\n\u3092\u8ffd\u52a0\u3057\u307e\u3059\uff08\u4e0a\u8a18\u306e\\n\u306f\uffe5\uff4e\u306e\u534a\u89d2\u3067\u3059\uff09\u3002<br \/>\n\u5177\u4f53\u7684\u306b\u306f<br \/>\n# \u904e\u53bb\u30ed\u30b0\u66f4\u65b0<br \/>\nif (@data > 0) { &#038;pastlog(@data); }<br \/>\n# \u66f4\u65b0<br \/>\nopen(OUT,&#8221;>$logfile&#8221;) || &#038;error(&#8220;Write Error: $logfile&#8221;);<br \/>\nprint OUT @new;<br \/>\nclose(OUT);<br \/>\n# \uff29\uff30\u30ed\u30b0\u66f4\u65b0<br \/>\n@new=&#8221;$addr<>$times<>\\n&#8221;;<br \/>\nopen(OUT2,&#8221;>$logfile2&#8243;) || &#038;error(&#8220;Write Error: $logfile2&#8221;);<br \/>\nprint OUT2 @new;<br \/>\nclose(OUT2);<br \/>\n\u3068\u3044\u3046\u5177\u5408\u3067\u3059\u3002\uff08\u4e0a\u8a18\u306e\\n\u306f\uffe5\uff4e\u306e\u534a\u89d2\u3067\u3059\uff09<br \/>\nyyregi.cgi\u306e\u6539\u9020\u306f\u308f\u304b\u308a\u306b\u304f\u3044\u306e\u3067<a href=\"https:\/\/kimassi.net\/zakki\/yyregi.lzh\">\u6539\u9020\u6e08\u307f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u304d\u307e\u3063\u3057\u91d1\u6ca2\u95a2\u9023\u306e\u30b5\u30a4\u30c8\u3067\u306f\u63b2\u793a\u677f\u306fkent-web\u306eYY-BOARD\u3092\u5229\u7528\u3057\u3066\u307e\u3059\u3002\u591a\u304f\u306e\u30b5\u30a4\u30c8\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u3060\u3051\u306b\u30b9\u30d1\u30e0\u6295\u7a3f\u306b\u72d9\u308f\u308c\u308b\u4e8b\u3082\u591a\u3044\u306e\u304c\u96e3\u70b9\u3067\u3059\u3002 \u30b9\u30d1\u30e0\u6295\u7a3f\u5bfe\u7b56\u3068\u3057\u3066\uff0cYY-BOARD spam \u5bfe\u7b56\u6539\u9020 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[17,19,18],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-17","category-19","category-18"],"_links":{"self":[{"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":0,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}