{"id":227,"date":"2026-04-04T07:29:07","date_gmt":"2026-04-03T22:29:07","guid":{"rendered":"http:\/\/cherryboy.local\/?p=227"},"modified":"2026-04-17T15:41:26","modified_gmt":"2026-04-17T06:41:26","slug":"%e3%80%90%e5%82%99%e5%bf%98%e9%8c%b2%e3%80%91%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%83%ad%e3%82%b0%e7%a2%ba%e8%aa%8d%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%83%8d%e3%83%83%e3%83%88","status":"publish","type":"post","link":"https:\/\/smartlife123.tech\/?p=227","title":{"rendered":"\u3010\u885d\u6483\u3011\u30b5\u30fc\u30d0\u30fc\u306e\u30ed\u30b0\u78ba\u8a8d\u3067\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u6016\u3055\u3092\u77e5\u308b"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><br>\u25a0\u524d\u63d0\u6761\u4ef6<\/h3>\n\n\n\n<p>\u30fb\u30b5\u30fc\u30d0\u30fc\uff1a<a href=\"http:\/\/smartlife123.tech\/\" data-type=\"page\" data-id=\"149\">\u30b9\u30de\u30dbWEB\u30b5\u30fc\u30d0\u30fc\u5316\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u3000\u3067\u4f5c\u6210\u3057\u305f\u3082\u306e<\/p>\n\n\n\n<p>\u30fbCloudflare Tunnel\u3092\u4f7f\u7528<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><br>\u25a0\u30ed\u30b0\u78ba\u8a8d\u7de8<\/h3>\n\n\n\n<p>\u30fb\u4e0b\u8a18\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncd $PREFIX\/var\/log\/apache2\/\n<\/pre><\/div>\n\n\n<p>\u30fb\u30ed\u30b0\u306e\u672b\u5c3e\u3092\u8ffd\u3046<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ntail -f access_log\n<\/pre><\/div>\n\n\n<p>\u203b|&nbsp; grep &#8220;\u25cf&#8221;\u3000\u3092\u8ffd\u52a0\u3059\u308c\u3070\u25cf\u3092\u542b\u3080\u3082\u306e\u306e\u307f\u62bd\u51fa<\/p>\n\n\n\n<p>\u30fb\u4ed6\u30c7\u30d0\u30a4\u30b9\u304b\u3089\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u308b<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u203b127.0.0.1 - - &#x5B;31\/Mar\/2026:19:22:17 +0900] &quot;GET \/ HTTP\/1.1&quot; 200 63616\n<\/pre><\/div>\n\n\n<p><strong>127.0.0.1<\/strong>: \u63a5\u7d9a\u5143IP\u3002Cloudflare Tunnel\u3092\u901a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3059\u3079\u3066\u300c\u81ea\u5206\u81ea\u8eab\u300d\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306b\u898b\u3048\u308b\u3002<\/p>\n\n\n\n<p>\u200b<strong>[31\/Mar\/2026:&#8230;]<\/strong>: \u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u65e5\u6642<\/p>\n\n\n\n<p>\u200b<strong>&#8220;GET \/ HTTP\/1.1&#8221;<\/strong>: <strong>GET<\/strong>\uff08\u3061\u3087\u3046\u3060\u3044\uff09\u3068\u3044\u3046\u547d\u4ee4\u3067\u3001<strong>\/<\/strong>\uff08\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\uff09\u3092\u3001<strong>HTTP\/1.1<\/strong>\u3068\u3044\u3046\u30eb\u30fc\u30eb\u3067\u8981\u6c42\u3057\u305f\u3001\u3068\u3044\u3046\u610f\u5473<\/p>\n\n\n\n<p>\u200b<strong>200<\/strong>: <strong>\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9<\/strong>\u3002\u6210\u529f\uff08OK\uff09\u3092\u610f\u5473<\/p>\n\n\n\n<p>\u200b<strong>63616<\/strong>: \u9001\u4fe1\u3057\u305f\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\uff08\u30d0\u30a4\u30c8\uff09<\/p>\n\n\n\n<p>\u30fb\u3057\u3070\u3089\u304f\u653e\u3063\u3066\u304a\u304f\u3068\u3001\u69d8\u3005\u306a\u653b\u6483\u3092\u5e38\u306b\u53d7\u3051\u3066\u3044\u308b\u3053\u3068\u3092\u5b9f\u611f\u3067\u304d\u308b<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n127.0.0.1 - - &#x5B;31\/Mar\/2026:19:39:43 +0900] &quot;GET \/wp-admin\/setup-config.php HTTP\/1.1&quot; 409 2767\n127.0.0.1 - - &#x5B;31\/Mar\/2026:19:41:25 +0900] &quot;GET \/wordpress\/wp-admin\/setup-config.php HTTP\/1.1&quot; 404 236\n127.0.0.1 - - &#x5B;31\/Mar\/2026:19:42:09 +0900] &quot;GET \/wordpress\/wp-admin\/setup-config.php HTTP\/1.1&quot; 404 236\n127.0.0.1 - - &#x5B;31\/Mar\/2026:19:48:26 +0900] &quot;GET \/wp-admin\/setup-config.php HTTP\/1.1&quot; 409 2767\n127.0.0.1 - - &#x5B;31\/Mar\/2026:20:03:16 +0900] &quot;GET \/wp-admin\/setup-config.php HTTP\/1.1&quot; 409 2767\n27.0.0.1 - - &#x5B;31\/Mar\/2026:20:05:00 +0900] &quot;GET \/robots.txt HTTP\/1.1&quot; 404 236\n127.0.0.1 - - &#x5B;31\/Mar\/2026:20:05:01 +0900] &quot;GET \/sitemap.xml HTTP\/1.1&quot; 404 236\n127.0.0.1 - - &#x5B;31\/Mar\/2026:20:05:51 +0900] &quot;GET \/wordpress\/wp-admin\/setup-config.php HTTP\/1.1&quot; 404 236\n127.0.0.1 - - &#x5B;31\/Mar\/2026:20:06:26 +0900] &quot;GET \/wp-admin\/setup-config.php HTTP\/1.1&quot; 409 2767\n127.0.0.1 - - &#x5B;31\/Mar\/2026:20:06:35 +0900] &quot;GET \/wordpress\/wp-admin\/setup-config.php HTTP\/1.1&quot; 404 236\n<\/pre><\/div>\n\n\n<p><strong>\u30fb<\/strong> <code>\"GET \/wp-admin\/setup-config.php\"<\/code> \u3084 <code>\"GET \/wordpress\/...\"<\/code><\/p>\n\n\n\n<p>WordPress\u306e\u8a2d\u5b9a\u753b\u9762\u3092\u76f4\u63a5\u53e9\u3053\u3046\u3068\u3057\u3066\u3044\u308b<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><br>\u25a0\u30a2\u30af\u30bb\u30b9\u5143\u78ba\u8a8d\u7de8<\/h3>\n\n\n\n<p>\u30fb\u73fe\u72b6\u3001Cloudflare Tunnel\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u90fd\u5408\u4e0a\u30a2\u30af\u30bb\u30b9\u5143IP\u30a2\u30c9\u30ec\u30b9\u306f\u3059\u3079\u3066\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a<\/p>\n\n\n\n<p>\u30fbhttpd.conf\u3092\u898b\u3064\u3051\u3066<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfind $PREFIX\/etc -name &quot;httpd.conf&quot;\n<\/pre><\/div>\n\n\n<p>\u30fbnano\u3068\u304b\u3067\u7de8\u96c6\u3002\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u3042\u308b3\u304b\u6240\u306eLogFormat\u3092\u63a2\u3057\u3066<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \u4fee\u6b63\u524d\nLogFormat &quot;%h %l %u %t \\&quot;%r\\&quot; %&gt;s %b \\&quot;%{Referer}i\\&quot; \\&quot;%{User-Agent}i\\&quot;&quot; combined\n\n# \u4fee\u6b63\u5f8c\uff08%h \u3092 %a \u306b\u5909\u66f4\uff09\nLogFormat &quot;%a %l %u %t \\&quot;%r\\&quot; %&gt;s %b \\&quot;%{Referer}i\\&quot; \\&quot;%{User-Agent}i\\&quot;&quot; combined\n<\/pre><\/div>\n\n\n<p>\u30fb3\u304b\u6240\u3068\u3082%h \u3092 %a \u306b\u5909\u66f4\u3002\u4fdd\u5b58\u3057\u3066\u7d42\u4e86<\/p>\n\n\n\n<p>\u30fb\u518d\u8d77\u52d5<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# \u30d7\u30ed\u30bb\u30b9\u3092\u4e00\u5ea6\u7d42\u4e86\npkill httpd\n\n# \u8d77\u52d5\nhttpd -k start\n<\/pre><\/div>\n\n\n<p>\u30fb\u30ed\u30b0\u3092\u518d\u5ea6\u78ba\u8a8d\u3057\u3066\u307f\u3088\u3046\u3002\u4eca\u5ea6\u306f\u69d8\u3005\u306aIP\u30a2\u30c9\u30ec\u30b9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306f\u305a<\/p>\n\n\n\n<p><br>\u30fb\u6b21\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u56fd\u3092\u8abf\u3079\u3001\u7565\u8a9e\u3067\u8868\u8a18\u3057\u30ed\u30b0\u306b\u4ed8\u968f\u3057\u3066\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b<\/p>\n\n\n\n<p>\u30fb\u30ed\u30b0\u3068\u540c\u3058\u968e\u5c64\uff08\u7b46\u8005\u306e\u74b0\u5883\u3067\u306fapache2\u4ee5\u4e0b\uff09\u306bgeo_tail.py\u3092\u4f5c\u6210<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nimport sys, requests, re\n\n# IP\u30a2\u30c9\u30ec\u30b9\u3092\u62bd\u51fa\u3059\u308b\u6b63\u898f\u8868\u73fe\nip_regex = re.compile(r&#039;^(\\d+\\.\\d+\\.\\d+\\.\\d+|&#x5B;a-fA-F0-9:]+)&#039;)\n\ndef get_country(ip):\n    try:\n        # \u7121\u6599API\u3092\u5229\u7528\uff08\u30ea\u30af\u30a8\u30b9\u30c8\u5236\u9650\u306b\u6ce8\u610f\uff09\n        r = requests.get(f&quot;http:\/\/ip-api.com\/json\/{ip}&quot;, timeout=2).json()\n        return f&quot;&#x5B;{r.get(&#039;countryCode&#039;, &#039;??&#039;)}]&quot;\n    except:\n        return &quot;&#x5B;--]&quot;\n\n# \u6a19\u6e96\u5165\u529b\u304b\u3089\u30ed\u30b0\u3092\u53d7\u3051\u53d6\u3063\u3066\u52a0\u5de5\u3057\u3066\u51fa\u3059\nfor line in sys.stdin:\n    match = ip_regex.match(line)\n    if match:\n        ip = match.group(1)\n        country = get_country(ip)\n        print(f&quot;{country} {line.strip()}&quot;)\n    else:\n        print(line.strip())\n<\/pre><\/div>\n\n\n<p>\u30fb\u5b9f\u884c<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ntail -f access_log | python geo_tail.py\n<\/pre><\/div>\n\n\n<p>\u30fb\u30ed\u30b0\u3092\u78ba\u8a8d\u3002[JP]123.456&#8230;\u3068\u304b\u306b\u306a\u3063\u3066\u308b\u306f\u305a<br><br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u25a0\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30ad\u30e3\u30f3\u7de8<\/h3>\n\n\n\n<p>\u30fbWeb\u30b5\u30fc\u30d0\u30fc\u8106\u5f31\u6027\u30b9\u30ad\u30e3\u30ca\u30fc\u300cNikto\u300d\u3092\u7528\u3044\u3066\u3001\u30b5\u30a4\u30c8\u306e\u8106\u5f31\u6027\u3092\u660e\u3089\u304b\u306b\u3059\u308b<\/p>\n\n\n\n<p><br>\u25a0\u524d\u63d0\u6761\u4ef6<\/p>\n\n\n\n<p>\u30fb\u30b5\u30fc\u30d0\u30fc\u306f\u4e0a\u3068\u540c\u3058<\/p>\n\n\n\n<p>\u30fb\u653b\u6483\u5074\u306e\u7aef\u672b\u3082\u30b9\u30de\u30db\uff08android\uff09\u3092\u60f3\u5b9a\u3002Turmux\u3092\u7528\u3044\u308b\u3002<br><br><br>\u25a0\u653b\u6483\u5074\u7aef\u672b\u306b\u3066<\/p>\n\n\n\n<p>\u30fb\u5fc5\u8981\u306a\u9053\u5177\uff08git\u3068perl\uff09\u3092\u5148\u306b\u5165\u308c\u308b<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npkg install git perl -y\n<\/pre><\/div>\n\n\n<p>\u30fbperl\u95a2\u9023\u3067\u8db3\u308a\u306a\u3044\u3082\u306e\u5165\u308c\u308b<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncpan JSON XML::Writer\n<\/pre><\/div>\n\n\n<p>\u30fbNikto\u306e\u672c\u4f53\u3092\u4e38\u3054\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ngit clone &amp;lt;a href=&quot;https:\/\/github.com\/sullo\/nikto.git&quot;&gt;https:\/\/github.com\/sullo\/nikto.git&amp;lt;\/a&gt;\n<\/pre><\/div>\n\n\n<p>\u30fbNikto\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308b<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncd nikto\/program\n<\/pre><\/div>\n\n\n<p>\u30fb\u5b9f\u884c\uff08.pl \u3068\u3044\u3046\u306e\u304c\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\uff09<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nperl &amp;lt;a href=&quot;http:\/\/nikto.pl&quot;&gt;nikto.pl&amp;lt;\/a&gt; -h \u25cf\u2190\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u30b5\u30a4\u30c8\u306eURL\n<\/pre><\/div>\n\n\n<p>\u203b\u30b5\u30a4\u30c8url\u306fhttp s\u3092\u4ed8\u3051\u308b\u3068\u3046\u307e\u304f\u3044\u304b\u306a\u3044<\/p>\n\n\n\n<p>\u30fb\u6012\u6d9b\u306e\u30a2\u30af\u30bb\u30b9\u304c\u59cb\u307e\u308b\u3002\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u30ed\u30b0\u3092\u898b\u3066\u307f\u3088\u3046<\/p>\n\n\n\n<p>\u30fb\u30b9\u30ad\u30e3\u30f3\u3057\u7d42\u308f\u308b\u3068\u3001\u653b\u6483\u5074\u7aef\u672b\u306b\u4eca\u56de\u767a\u899a\u3057\u305f\u8106\u5f31\u6027\u306b\u3064\u3044\u3066\u306e\u30ec\u30dd\u30fc\u30c8\u304c\u51fa\u529b\u3055\u308c\u308b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0\u524d\u63d0\u6761\u4ef6 \u30fb\u30b5\u30fc\u30d0\u30fc\uff1a\u30b9\u30de\u30dbWEB\u30b5\u30fc\u30d0\u30fc\u5316\u30de\u30cb\u30e5\u30a2\u30eb\u3000\u3067\u4f5c\u6210\u3057\u305f\u3082\u306e \u30fbCloudflare Tunnel\u3092\u4f7f\u7528 \u25a0\u30ed\u30b0\u78ba\u8a8d\u7de8 \u30fb\u4e0b\u8a18\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b \u30fb\u30ed\u30b0\u306e\u672b\u5c3e\u3092\u8ffd\u3046 \u203b|&nbsp; gre [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":229,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/smartlife123.tech\/wp-content\/uploads\/2026\/04\/ae14caa3-6c1a-40da-9b94-d4c1008644a8.jpg","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=227"}],"version-history":[{"count":6,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":274,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions\/274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/media\/229"}],"wp:attachment":[{"href":"https:\/\/smartlife123.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}