{"id":5827,"date":"2020-12-31T23:36:09","date_gmt":"2020-12-31T14:36:09","guid":{"rendered":"https:\/\/mimumimu.net\/blog\/?p=5827"},"modified":"2021-01-01T12:34:57","modified_gmt":"2021-01-01T03:34:57","slug":"writeup-2020%e5%b9%b4%e3%81%ab%e4%bf%ae%e6%ad%a3%e3%81%95%e3%82%8c%e3%81%9f%e3%81%a8%e3%81%82%e3%82%8b%e8%84%86%e5%bc%b1%e6%80%a7%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/mimumimu.net\/blog\/2020\/12\/31\/writeup-2020%e5%b9%b4%e3%81%ab%e4%bf%ae%e6%ad%a3%e3%81%95%e3%82%8c%e3%81%9f%e3%81%a8%e3%81%82%e3%82%8b%e8%84%86%e5%bc%b1%e6%80%a7%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"Writeup : 2020\u5e74\u306b\u4fee\u6b63\u3055\u308c\u305f\u3068\u3042\u308b\u8106\u5f31\u6027\u306b\u3064\u3044\u3066"},"content":{"rendered":"\n<p>\u3069\u3046\u3082\u307f\u3080\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5e74\u672b\u3067\u3059\u3002\u5f8c\u6570\u6642\u9593\u3067\u5e74\u304c\u5909\u308f\u308a\u307e\u3059\u3002<br>\u79c1\u306f\u3068\u3044\u3048\u3070\u3001\u300c\u5343\u8449\u770c\u5c11\u5e74\u5c11\u5973\u30aa\u30fc\u30b1\u30b9\u30c8\u30e9\u3068\u30a2\u30ad\u30e9\u3055\u3093\u306e\u5927\u767a\u898b\u30b3\u30f3\u30b5\u30fc\u30c82020\u300d\u306e\u653e\u9001\u3092\u898b\u306a\u304c\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u304d\u7d42\u3048\u305f\u3089\u30bd\u30d0\u3092\u3068\u6700\u5f8c\u306e\u529b\u3092\u3075\u308a\u3057\u307c\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5bae\u5ddd\u5f6c\u826f\u3055\u3093\u306e\u30a2\u30eb\u30d0\u30e0\u3001\u6642\u3005\u4ed5\u4e8b\u4e2d\u306b\u3082\u805e\u3044\u3066\u304a\u308a\u307e\u3059\u304c<br>\u97f3\u697d\u306e\u4e2d\u306b\u904a\u3073\u3068\u3044\u3046\u304b\u697d\u3057\u307f\u30dd\u30a4\u30f3\u30c8\u304c\u591a\u6570\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3082\u3042\u3063\u3066\u3001\u3059\u3054\u3044\u4eba\u3060\u306a\u3068\u601d\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30fb\u30fb\u30fb\u3044\u3084\u3001\u4eca\u56de\u306f\u305d\u3046\u3044\u3046\u3053\u3068\u3092\u66f8\u304d\u305f\u3044\u308f\u3051\u3067\u306f\u306a\u304f\u3066\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4eca\u5e74\u30019\u6708\u9803\u306b\u3068\u3042\u308b\u4e00\u3064\u306e\u8106\u8106\u5f31\u6027\u304c\u4fee\u6b63\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u79c1\u304c\u5831\u544a\u8005\u306b\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u3067\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u88fd\u54c1\u306b\u542b\u307e\u308c\u3066\u3044\u305f\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001<br>\u8272\u3005\u306a\u30d9\u30f3\u30c0\u30fc\u3055\u3093\u3067\u3082\u3084\u3063\u3066\u3057\u307e\u3044\u305d\u3046\u306a\u77e5\u898b\u304c\u591a\u3005\u3042\u308a\u307e\u3057\u305f\u306e\u3067<br>\u8efd\u304f\u3054\u7d39\u4ecb\u3067\u304d\u305f\u3089\u306a\u3001\u3068\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u4ed5\u4e8b\u67c4\u8106\u5f31\u6027\u8a3a\u65ad\u306f\u884c\u3063\u3066\u304a\u308a\u307e\u3059\u304c\u3001<br>\u8da3\u5473\u306e\u7bc4\u56f2\u3067\u306e\u767a\u898b\u3067\u65e2\u306b\u4fee\u6b63\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3053\u306e\u8a18\u4e8b\u306f<span style=\"text-decoration: underline;\">\u7279\u5b9a\u306e\u88fd\u54c1\u3084\u30d6\u30e9\u30f3\u30c9\u3092\u8cb6\u3081\u308b\u3053\u3068\u306f\u4e00\u5207\u76ee\u7684\u3068\u3057\u3066\u304a\u308a\u307e\u305b\u3093<\/span>\u3002<br><span style=\"text-decoration: underline;\">\u81ea\u793e\u306e\u88fd\u54c1\u306b\u5bfe\u3057\u3066\u300c\u3053\u3046\u3044\u3046\u8106\u5f31\u6027\u3042\u308b\u304b\u3082\u77e5\u308c\u306a\u3044\u300d\u3068\u3044\u3046\u6c17\u3065\u304d<\/span>\u3068\u3057\u3066\u4f7f\u3063\u3066\u9802\u304f\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u3054\u7406\u89e3\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4eca\u56de\u306e\u8106\u5f31\u6027\u3067\u306f<br>\u300c\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u300d\u306e\u51e6\u7406\u306b\u304a\u3044\u3066\u4e0b\u8a18\u306e\u3088\u3046\u306a\u554f\u984c\u70b9\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u691c\u8a3c\u306b\u4e0d\u5099\u304c\u3042\u308a<br>\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u633f\u5165\u3067\u304d\u305f\u3002<\/li><li>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u51e6\u7406\u306b\u4e0d\u5099\u304c\u3042\u308a<br>\u9ad8\u6a29\u9650\u3067\u4efb\u610f\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u305f\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">1\uff0e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u691c\u8a3c<\/h3>\n\n\n\n<p>\u4eca\u56de\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u65b9\u5f0f\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u30b5\u30fc\u30d0\u304b\u3089\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u30e1\u30bf\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b<\/li><li>\u30e1\u30bf\u60c5\u5831\u306b\u624b\u5143\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3088\u308a\u65b0\u3057\u3044\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304c\u3042\u308c\u3070\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/li><li>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u969b\u3057\u8ffd\u52a0\u306e\u51e6\u7406\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u5b9f\u884c\u3059\u308b<\/li><\/ol>\n\n\n\n<p>\u4eca\u56de\u4e00\u3064\u76ee\u306e\u554f\u984c\u70b9\u3060\u3063\u305f\u306e\u306f<br>\u300c\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u691c\u8a3c\u300d\u304c\u4e0d\u5341\u5206\u3060\u3063\u305f\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u30e1\u30bf\u30c7\u30fc\u30bf\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u69cb\u9020\u3067\u3057\u305f\u3002<br>\uff08\u5b9f\u969b\u306b\u306f\u3082\u3063\u3068\u591a\u304f\u306e\u60c5\u5831\u306a\u3069\u304c\u3042\u308a\u3001\u3053\u306e\u3088\u3046\u306b\u7c21\u6613\u306a\u5f62\u306b\u306f\u306a\u3063\u3066\u3044\u307e\u305b\u3093\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"135\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2020\/12\/image-5.png\" alt=\"\" class=\"wp-image-5832\"\/><\/figure>\n\n\n\n<p>\u3053\u3053\u306b\u304a\u3044\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u30c1\u30a7\u30c3\u30af\u306e\u65b9\u6cd5\u306b\u4e0b\u8a18\u306e\u4e0d\u5099\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br>\uff08\u7e70\u308a\u8fd4\u3057\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u65e2\u306b\u4fee\u6b63\u6e08\u307f\u3067\u3059\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8220;file&#8221; \u8981\u7d20\u3067\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u30c1\u30a7\u30c3\u30af\u3055\u308c\u308b<br>\u2192 <span style=\"text-decoration: underline;\">\u8a18\u8ff0\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306f\u30c1\u30a7\u30c3\u30af\u3055\u308c\u306a\u3044<\/span><\/li><li>&#8220;file&#8221; \u8981\u7d20\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u5185\u5bb9\u304c MD5 \u3084 SHA1\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30cf\u30c3\u30b7\u30e5\u306e\u307f\u3060\u3063\u305f\u3002<br>\u2192 \u30d5\u30a1\u30a4\u30eb\u306e\u6574\u5408\u6027\u306f\u691c\u8a3c\u3067\u304d\u308b\u304c\u3001<br>\u3000\u300c<span style=\"text-decoration: underline;\">\u4fe1\u983c\u51fa\u6765\u308b\u3068\u3053\u308d\u304b\u3089\u306e\u3082\u306e\u304b\u300d\u3092\u691c\u8a3c\u3067\u304d\u306a\u3044<\/span><\/li><\/ul>\n\n\n\n<p>\u4eca\u56de\u306e\u30b1\u30fc\u30b9\u3067\u306f\u3001\u305d\u306e\u5148\u306e\u51e6\u7406\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u4fe1\u983c\u6027\u306e\u691c\u8a3c\u306f\u884c\u308f\u308c\u3066\u3044\u307e\u3057\u305f\u304c<br>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u51e6\u7406\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u4e0a\u8a18\u306e\u3088\u3046\u306a\u9805\u76ee\u306e\u30c6\u30b9\u30c8\u306f<br>\u629c\u3051\u304c\u3061\u306b\u306a\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5bfe\u7b56\u3068\u3057\u3066\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8ffd\u52a0\u306e\u691c\u8a3c\u51e6\u7406\u306e\u8ffd\u52a0\u3084\u3001<br>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u8ffd\u52a0\u304c\u51fa\u6765\u308b\u3068\u3088\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>MD5 \u3084 SHA1 \u306a\u3069\u306e\u6574\u5408\u6027\u30c1\u30a7\u30c3\u30af\u306b\u52a0\u3048\u3066<br><span style=\"text-decoration: underline;\">\u96fb\u5b50\u7f72\u540d\u3092\u7528\u3044\u305f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4fe1\u983c\u6027\u306e\u691c\u8a3c<\/span>\u3092\u4ed8\u52a0\u3059\u308b<\/li><li>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u304c zip \u3084 tar \u3068\u3044\u3063\u305f\u4e00\u822c\u7684\u306a\u30a2\u30fc\u30ab\u30a4\u30d6\u30d5\u30a1\u30a4\u30eb\u3092\u4f75\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306a\u3069\u306f\u3001<span style=\"text-decoration: underline;\">\u30e1\u30bf\u60c5\u5831\u306a\u3069\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u3063\u3066\u3044\u305f\u5834\u5408\u306b\u691c\u8a3c\u3092\u5931\u6557\u3055\u305b\u308b<\/span>\u306a\u3069\u3059\u308b\u3002<\/li><\/ol>\n\n\n\n<p>1\u306b\u95a2\u3057\u3066\u306f\u4f8b\u3048\u3070 OpenSSL \u3092\u7528\u3044\u3066\u4e0b\u8a18\u306e\u3088\u3046\u306a\u51e6\u7406\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\uff1a<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code># \u30d9\u30f3\u30c0\u30fc\u304c\u6301\u3064\u79d8\u5bc6\u9375\u3067\u96fb\u5b50\u7f72\u540d\u3092\u4f5c\u6210\u3059\u308b\n$ openssl dgst -sha256 -sign private-key.pem patch.zip &gt; patch.sig\n\n# \u53d7\u3051\u53d6\u308a\u5074\u3067\u306f\u516c\u958b\u9375\u3068\u63d0\u4f9b\u3055\u308c\u305f\u7f72\u540d (patch.sig) \u3092\u7528\u3044\u3066\u691c\u8a3c\u3059\u308b\n$ openssl dgst -sha256 -verify public-key.pem -signature patch.sig patch.zip<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>C# \u3067\u3059\u3068 &#8220;RSAPKCS1SignatureDeformatter.VerifySignature&#8221; \u306a\u3069\u3092\u7528\u3044\u3066<br>\u5b9f\u73fe\u3059\u308b\u306e\u3082\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u4f8b \/ \u5f15\u7528\u5143 : \u30c7\u30b8\u30bf\u30eb\u7f72\u540d\u3092\u4f5c\u6210\u3001\u691c\u8a3c\u3059\u308b &#8211; .NET Tips (VB.NET,C#&#8230;)<br><a href=\"https:\/\/dobon.net\/vb\/dotnet\/string\/digitalsignature.html\">https:\/\/dobon.net\/vb\/dotnet\/string\/digitalsignature.html<\/a><br>( \u4e00\u90e8\u30b3\u30fc\u30c9\u306e\u4fee\u6b63\u306a\u3069\u3092\u7b46\u8005\u5074\u3067\u52a0\u3048\u3066\u3044\u307e\u3059 )<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-lang=\"C#\"><code>using System;\nusing System.Text;\nusing System.Security.Cryptography;\n\n\/\/\/ &lt;summary&gt;\n\/\/\/ \u30c7\u30b8\u30bf\u30eb\u7f72\u540d\u3092\u4f5c\u6210\u3059\u308b\n\/\/\/ &lt;\/summary&gt;\n\/\/\/ &lt;param name=&quot;message&quot;&gt;\u7f72\u540d\u3092\u4ed8\u3051\u308b\u30e1\u30c3\u30bb\u30fc\u30b8&lt;\/param&gt;\n\/\/\/ &lt;param name=&quot;privateKey&quot;&gt;\u7f72\u540d\u306b\u4f7f\u7528\u3059\u308b\u79d8\u5bc6\u9375&lt;\/param&gt;\n\/\/\/ &lt;returns&gt;\u4f5c\u6210\u3055\u308c\u305f\u7f72\u540d&lt;\/returns&gt;\npublic static string CreateDigitalSignature(\n    string message, string privateKey)\n{\n    \/\/\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30d0\u30a4\u30c8\u578b\u914d\u5217\u306b\u3057\u3066\u3001SHA1\u30cf\u30c3\u30b7\u30e5\u5024\u3092\u8a08\u7b97\n    var msgData = Encoding.UTF8.GetBytes(message);\n    var hashData = (new SHA1Managed()).ComputeHash(msgData);\n\n    \/\/RSACryptoServiceProvider\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\n    var rsa = new RSACryptoServiceProvider();\n    \/\/\u79d8\u5bc6\u9375\u3092\u4f7f\u3063\u3066\u521d\u671f\u5316\n    rsa.FromXmlString(privateKey);\n\n    \/\/RSAPKCS1SignatureFormatter\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\n    var rsaFormatter = new RSAPKCS1SignatureFormatter(rsa);\n    \/\/\u7f72\u540d\u306e\u4f5c\u6210\u306b\u4f7f\u7528\u3059\u308b\u30cf\u30c3\u30b7\u30e5\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u6307\u5b9a\n    rsaFormatter.SetHashAlgorithm(&quot;SHA1&quot;);\n\n    \/\/\u7f72\u540d\u3092\u4f5c\u6210\u3057\u3001\u6587\u5b57\u5217\u306b\u5909\u63db\u3057\u3066\u8fd4\u3059\n    return Convert.ToBase64String(rsaFormatter.CreateSignature(hashData));\n}\n\n\/\/\/ &lt;summary&gt;\n\/\/\/ \u30c7\u30b8\u30bf\u30eb\u7f72\u540d\u3092\u691c\u8a3c\u3059\u308b\n\/\/\/ &lt;\/summary&gt;\n\/\/\/ &lt;param name=&quot;message&quot;&gt;\u7f72\u540d\u306e\u4ed8\u3044\u305f\u30e1\u30c3\u30bb\u30fc\u30b8&lt;\/param&gt;\n\/\/\/ &lt;param name=&quot;signature&quot;&gt;\u7f72\u540d&lt;\/param&gt;\n\/\/\/ &lt;param name=&quot;publicKey&quot;&gt;\u9001\u4fe1\u8005\u306e\u516c\u958b\u9375&lt;\/param&gt;\n\/\/\/ &lt;returns&gt;\u8a8d\u8a3c\u306b\u6210\u529f\u3057\u305f\u6642\u306fTrue\u3002\u5931\u6557\u3057\u305f\u6642\u306fFalse\u3002&lt;\/returns&gt;\npublic static bool VerifyDigitalSignature(\n    string message, string signature, string publicKey)\n{\n    var msgData = Encoding.UTF8.GetBytes(message);\n    var hashData = (new SHA1Managed()).ComputeHash(msgData);\n\n    \/\/RSACryptoServiceProvider\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\n    var rsa = new RSACryptoServiceProvider();\n    \/\/\u516c\u958b\u9375\u3092\u4f7f\u3063\u3066\u521d\u671f\u5316\n    rsa.FromXmlString(publicKey);\n\n    var rsaDeformatter = new RSAPKCS1SignatureDeformatter(rsa);\n    \/\/\u7f72\u540d\u306e\u691c\u8a3c\u306b\u4f7f\u7528\u3059\u308b\u30cf\u30c3\u30b7\u30e5\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u6307\u5b9a\n    rsaDeformatter.SetHashAlgorithm(&quot;SHA1&quot;);\n\n    \/\/\u7f72\u540d\u3092\u691c\u8a3c\u3057\u3001\u7d50\u679c\u3092\u8fd4\u3059\n    return rsaDeformatter.VerifySignature(hashData,\n        Convert.FromBase64String(signature));\n}<\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4f59\u8ac7\u3067\u3059\u304c\u3001\u4eca\u56de\u8106\u5f31\u6027\u3092\u767a\u898b\u3059\u308b\u304d\u3063\u304b\u3051\u306b\u306a\u3063\u305f\u306e\u306f<br>\u300c\u30e1\u30bf\u60c5\u5831\u300d\u306b\u5bb9\u6613\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305f\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"367\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2020\/12\/image-1.png\" alt=\"\" class=\"wp-image-5828\"\/><\/figure>\n\n\n\n<p>\u4eca\u56de\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304c Windows \u306e Proxy \u8a2d\u5b9a\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6642\u306b\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u30d7\u30ed\u30ad\u30b7\u3092\u631f\u3093\u3060\u9014\u7aef\u306b\u4e0a\u8a18\u306e\u3088\u3046\u306b\u901a\u4fe1\u304c\u78ba\u8a8d\u51fa\u6765\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Windows \u3067\u306f Proxy \u8a2d\u5b9a\u306f\u3001\u30b0\u30eb\u30fc\u30d7\u30dd\u30ea\u30b7\u7b49\u3067\u5236\u7d04\u3057\u3066\u3044\u308b\u5834\u5408\u3092\u9664\u304d\u3001<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">KEY : HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\nElement: ProxyServer \nType : REG_SZ<\/pre>\n\n\n\n<p>\u307e\u305f\u3053\u306e\u3068\u304d\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u901a\u4fe1\u306b\u95a2\u3057 HTTPS \u901a\u4fe1\u3067\u884c\u308f\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001<br>HTTPS \u901a\u4fe1\u306e\u8a3c\u660e\u66f8\u306e\u691c\u8a3c\u306f\u884c\u308f\u308c\u3066\u304a\u3089\u305a\u3001\u6539\u7ac4\u3057\u305f\u5185\u5bb9\u304c\u305d\u306e\u307e\u307e\u4fe1\u983c\u3055\u308c\u308b\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>HTTPS \u901a\u4fe1\u306e\u8a3c\u660e\u66f8\u306e\u691c\u8a3c\u306f\u3001\u4e00\u822c\u7684\u306b\u691c\u8a3c\u3092\u3057\u305f\u65b9\u304c\u4e0d\u5fc5\u8981\u306a\u30ea\u30b9\u30af\u304b\u3089\u5b88\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u5834\u5408\u304c\u591a\u3044\u305f\u3081\u884c\u3063\u305f\u65b9\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u4eca\u56de\u306e\u3088\u3046\u306a\u300c\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u300d\u306e\u5834\u5408\u306f\u3001\u691c\u8a3c\u306b\u5931\u6557\u3057\u305f\u3053\u3068\u306b\u3088\u3063\u3066\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u51fa\u6765\u306a\u304f\u306a\u308b\u3068\u3044\u3046\u53ef\u80fd\u6027\u3082\u8003\u3048\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u3069\u3061\u3089\u306e\u30ea\u30b9\u30af\u3092\u53d6\u308b\u304b\u306f\u691c\u8a0e\u3057\u305f\u65b9\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3057\u3001\u5148\u8ff0\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3059\u308b\u96fb\u5b50\u7f72\u540d\u3092\u4fe1\u983c\u3057\u3066\u3001HTTPS \u901a\u4fe1\u306e\u8a3c\u660e\u66f8\u306e\u691c\u8a3c\u306f\u3057\u306a\u3044\u3068\u3044\u3046\u9078\u629e\u3082\u3042\u308a\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u307e\u305f\u3001\u4eca\u56de\u306e\u8106\u5f31\u6027\u3092\u5916\u90e8\u304b\u3089\u60aa\u7528\u3059\u308b\u5834\u5408\u3001DNS \u306e\u5909\u66f4\u304b Proxy \u306e\u5909\u66f4\u304c\u5fc5\u8981\u3067\u3057\u305f\u3002<br>\uff08\u305d\u306e\u4ed6\u306e\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u304c\u5272\u611b\u3057\u307e\u3059\uff09<\/p>\n\n\n\n<p>\u4e16\u306e\u4e2d\u3092\u898b\u6e21\u3057\u3066\u307f\u307e\u3059\u3068\u300c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u9ad8\u901f\u5316\u300d\u306a\u3069\u3092\u507d\u3063\u3066\u3001\u30ed\u30fc\u30ab\u30eb\u306e DNS \u8a2d\u5b9a\u3092\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3046\u30de\u30eb\u30a6\u30a7\u30a2 ( \u4f8b\uff1a<a href=\"https:\/\/eset-info.canon-its.jp\/malware_info\/trend\/detail\/161017.html\">\u30e6\u30fc\u30b6\u30fc\u306b\u6c17\u4ed8\u304b\u308c\u305a\u306b\u3072\u305d\u304b\u306bDNS\u8a2d\u5b9a\u3092\u5909\u3048\u3066\u3057\u307e\u3046\u300cDNS\u30a2\u30f3\u30ed\u30c3\u30ab\u30fc\u300d<\/a> \/ \u30de\u30eb\u30a6\u30a7\u30a2\u60c5\u5831\u5c40 ) \u3084 \u8106\u5f31\u306a\u30eb\u30fc\u30bf\u3092\u7a81\u3044\u3066\u8a2d\u5b9a\u3092\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3046\u653b\u6483 (\u4f8b\uff1a <a href=\"https:\/\/blog.kaspersky.co.jp\/hacked-routers-dns-hijacking\/23100\/\">\u30eb\u30fc\u30bf\u30fc\u3092\u30cf\u30c3\u30ad\u30f3\u30b0\u3057\u3001\u5229\u7528\u8005\u3092\u30d5\u30a3\u30c3\u30b7\u30f3\u30b0\u30b5\u30a4\u30c8\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u653b\u6483 <\/a>\/ \u30ab\u30b9\u30da\u30eb\u30b9\u30ad\u30fc\u516c\u5f0f\u30d6\u30ed\u30b0 ) \u3082\u51fa\u3066\u3044\u308b\u80cc\u666f\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001<br>\u5fc5\u305a\u3057\u3082\u304b\u306a\u308a\u96e3\u3057\u3044\u653b\u6483\u3067\u306f\u306a\u3044\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3059\u306e\u3067\u3001DNS \u3084 HTTPS \u306e\u8a3c\u660e\u66f8\u3068\u3044\u3063\u305f\u7d4c\u8def\u306b\u5bfe\u3057\u3066\u4fe1\u983c\u3092\u4ed8\u4e0e\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u901a\u4fe1\u5185\u5bb9\uff08\u4eca\u56de\u306e\u5834\u5408\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\uff09\u306b\u3064\u3044\u3066\u300c\u30a8\u30f3\u30c9-\u30a8\u30f3\u30c9\u300d\u3067\u306e\u4fe1\u983c\u3092\u524d\u63d0\u3068\u3057\u3066\u3001\u305d\u306e\u4e0a\u3067 HTTPS \u306e\u8a3c\u660e\u66f8\u691c\u8a3c\u3092\u3059\u308b\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u5f62\u304c\u3088\u3044\u3068\u8003\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2\uff0e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u51e6\u7406\u304c\u9ad8\u6a29\u9650\u3067\u8d70\u3063\u3066\u3044\u308b<\/h3>\n\n\n\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u51e6\u7406\u304c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u5185\u3067\u4e00\u756a\u9ad8\u3044\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u3067\u5b9f\u884c\u3055\u308c\u3066\u304a\u308a\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u51e6\u7406\u3092\u7d30\u5de5\u3059\u308b\u3053\u3068\u3067\u4efb\u610f\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4e00\u756a\u9ad8\u3044\u6a29\u9650\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5c55\u958b\u51e6\u7406\u306a\u3069\u304c\u9ad8\u3044\u6a29\u9650\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u5834\u5408<br>\u30a2\u30fc\u30ab\u30a4\u30d6\u30d5\u30a1\u30a4\u30eb\u306e\u7d30\u5de5 (\u4f8b : <a href=\"https:\/\/www.jpcert.or.jp\/newsflash\/2018060601.html\">Zip Slip<\/a> \/ \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30c8\u30e9\u30d0\u30fc\u30b5\u30eb\u304c\u767a\u751f\u3059\u308b zip \u30d5\u30a1\u30a4\u30eb\u3092\u7528\u3044\u3066\u3001\u610f\u56f3\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u63db\u3048\u3092\u884c\u3048\u3066\u3057\u307e\u3046 ) \u3092\u306f\u3058\u3081\u3068\u3057\u305f\u8272\u3005\u306a\u8981\u56e0\u306b\u3088\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u306e\u610f\u56f3\u3057\u306a\u3044\u5909\u66f4\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5bfe\u7b56\u3068\u3057\u3066\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u691c\u8a3c\u306f\u4f4e\u3044\u6a29\u9650\u3067\u884c\u3046\u306a\u3069\u3001\u4e0d\u5fc5\u8981\u306b\u9ad8\u3044\u6a29\u9650\u3092\u4e0e\u3048\u306a\u3044\u3088\u3046\u306b\u8a2d\u8a08\u3059\u308b\u306e\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u4eca\u56de\u306e\u4f8b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c<br>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u51e6\u7406\u304c\u66f8\u304b\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\uff09\u3092\u914d\u5e03\u30d5\u30a1\u30a4\u30eb\u306b\u542b\u3081\u3066\u3044\u308b\u5b9f\u88c5\u3082\u3044\u304f\u3064\u304b\u898b\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u3001\u53ef\u80fd\u3067\u3042\u308c\u3070\u65e2\u306b\u7a3c\u50cd\u4e2d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u51e6\u7406\u3092\u5165\u308c\uff08\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u63db\u3048\u3092\u7a3c\u50cd\u4e2d\u306e\u4fe1\u983c\u51fa\u6765\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3088\u3063\u3066\u884c\u3046\u3088\u3046\u306b\u3057\uff09\u6a29\u9650\u3092\u5f90\u3005\u306b\u4e0e\u3048\u308b\u3068\u3044\u3046\u5f62\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u305d\u3070\u304c\u98df\u3079\u305f\u3044\u4e00\u5fc3\u3067\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u3001<br>\u9014\u4e2d\u8aa4\u5b57\u3084\u8a2d\u8a08\u3068\u3057\u3066\u305d\u308c\u306f\u30aa\u30ab\u30b7\u30a4\uff01\u3068\u3044\u3046\u70b9\u3082\u3042\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<br>\u6307\u6458\u7b49\u306f\u53d7\u3051\u4ed8\u3051\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u6c17\u517c\u306d\u306a\u304f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4f59\u8ac7\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u300c\u8106\u5f31\u6027\u60c5\u5831\u300d\u3068\u805e\u304f\u3068\u305d\u306e\u88fd\u54c1\u3092\u53e9\u3044\u305f\u308a\u300c\u3053\u3093\u306a\u5371\u967a\u306a\u3082\u306e\u306f\u4f7f\u3048\u306a\u3044\uff01\u300d\u3068\u601d\u308f\u308c\u308b\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u306f\u9055\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9006\u306b\u300c\u5b9f\u306f\u3042\u308b\u306e\u306b\u3001\u307f\u3093\u306a\u9ed9\u3063\u3066\u3044\u308b\u4e16\u754c\u300d\u3068\u3044\u3046\u306e\u3092\u8003\u3048\u3066\u307f\u305f\u3089\u3001\u305d\u3063\u3061\u306e\u65b9\u304c\u6016\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3057\u3001\u305d\u308c\u3067\u3057\u305f\u3089\u300c\u3069\u3046\u3044\u3046\u3053\u3068\u304c\u3042\u3063\u3066\u72d9\u308f\u308c\u308b\u3001\u3053\u3046\u3044\u3046\u98a8\u306b\u3059\u308b\u3053\u3068\u3067\u4fee\u6b63\u3067\u304d\u308b\u300d\u3068\u3044\u3046\u8a71\u3092\u512a\u3057\u304f\u5e83\u3052\u3066\u3044\u304f\u3053\u3068\u304c\u5927\u4e8b\u306a\u306e\u3067\u306f\u306a\u3044\u304b\u306a\u3068\u3002<\/p>\n\n\n\n<p>\u79c1\u81ea\u8eab\u3001\u5143\u3005\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30c7\u30a3\u30d9\u30ed\u30c3\u30d1\u30fc\u304b\u3089\u3001\u4eca\u306f\u60c5\u5831\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u95a2\u4fc2\u3092\u4e3b\u8ef8\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6b63\u76f4\u300c\u60c5\u5831\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u4eba\u305f\u3061\u3059\u3054\u304f\u6016\u3044\u306a\u30fb\u30fb\u300d\u3068\u3044\u3046\u306e\u306f\u304b\u3064\u3066\u3042\u308a\u307e\u3057\u3066\u3001\u4eca\u3082\u6642\u3005\u611f\u3058\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300c\u3053\u308c\u304c\u5206\u304b\u3063\u3066\u3066\u5f53\u7136\u300d\u300c\u3053\u308c\u304c\u51fa\u6765\u306a\u3044\u306e\u306f\u30aa\u30ab\u30b7\u30a4\u300d\u3068\u3044\u3046\u8a71\u304c\u3088\u304f\u51fa\u3066\u304f\u308b\u4e16\u306e\u4e2d\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u5931\u6557\u3057\u3066\u3082\u6cbb\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u305d\u308c\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u306a\u3001\u3068\u304b\u3064\u3066\u306e\u7d4c\u9a13\u3068\u304b\u3092\u632f\u308a\u8fd4\u308a\u306a\u304c\u3089\u601d\u3046\u4eca\u65e5\u3053\u306e\u9803\u3067\u3059\u3002<br>\uff08\u4f55\u304b\u3042\u308a\u307e\u3057\u305f\u3089\u6c17\u517c\u306d\u306a\u304f\u805e\u3044\u3066\u3082\u3089\u3048\u308c\u3070\u3068\uff01\uff09<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u3001\u3088\u3044\u304a\u5e74\u3092\u304a\u8fce\u3048\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u307f\u3080\u3089\u3067\u3059\u3002 \u5e74\u672b\u3067\u3059\u3002\u5f8c\u6570\u6642\u9593\u3067\u5e74\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u79c1\u306f\u3068\u3044\u3048\u3070\u3001\u300c\u5343\u8449\u770c\u5c11\u5e74\u5c11\u5973\u30aa\u30fc\u30b1\u30b9\u30c8\u30e9\u3068\u30a2\u30ad\u30e9\u3055\u3093\u306e\u5927\u767a\u898b\u30b3\u30f3\u30b5\u30fc\u30c82020\u300d\u306e\u653e\u9001\u3092\u898b\u306a\u304c\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u304d\u7d42\u3048\u305f\u3089\u30bd\u30d0\u3092\u3068\u6700\u5f8c\u306e\u529b\u3092\u3075\u308a\u3057\u307c\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u3067 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5827","post","type-post","status-publish","format-standard","hentry","category-other"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/comments?post=5827"}],"version-history":[{"count":0,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5827\/revisions"}],"wp:attachment":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/media?parent=5827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/categories?post=5827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/tags?post=5827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}