{"id":4390,"date":"2021-06-25T16:35:12","date_gmt":"2021-06-25T07:35:12","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=4390"},"modified":"2025-03-31T09:36:01","modified_gmt":"2025-03-31T00:36:01","slug":"windows-%e4%bb%a3%e6%9b%bf%e3%83%87%e3%83%bc%e3%82%bf%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%a0","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/4390","title":{"rendered":"[Windows] \u4ee3\u66ff\u30c7\u30fc\u30bf\u30b9\u30c8\u30ea\u30fc\u30e0"},"content":{"rendered":"<p>NTFS\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u306b\u95a2\u3059\u308b\u526f\u6b21\u7684\u306a\u60c5\u5831\u3092\u8a18\u9332\u3059\u308b\u305f\u3081\u306e\u300c<strong>\u4ee3\u66ff\u30c7\u30fc\u30bf\u30b9\u30c8\u30ea\u30fc\u30e0<\/strong> (<strong>ADS<\/strong> : <strong>Alternate Data Stream<\/strong>)\u300d\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u304c\u5b58\u5728\u3059\u308b\u3002<\/p>\n<p>Web\u30d6\u30e9\u30a6\u30b6\u3084\u30e1\u30fc\u30eb\u306e\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u53d7\u3051\u53d6\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3053\u306eADS\u304c\u4ed8\u52a0\u3055\u308c\u3066\u30b9\u30c8\u30ec\u30fc\u30b8\u4e0a\u306b\u30d5\u30a1\u30a4\u30eb\u672c\u4f53\uff08\u30e1\u30a4\u30f3\u30c7\u30fc\u30bf\u30b9\u30c8\u30ea\u30fc\u30e0\uff09\u3068\u4e26\u3093\u3067\u8a18\u9332\u3055\u308c\u308b\u3002<\/p>\n<p>ADS\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5f8c\u308d\u306b &#8220;<strong>Zone.Identifier<\/strong>&#8221; \u3068\u3044\u3046\u540d\u524d\u304c\u4ed8\u304f\u3002<br \/>\n\u305f\u3060\u3057\u3001\u901a\u5e38\u306e\u30c4\u30fc\u30eb\u3084\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3067ADS\u3092\u898b\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002<br \/>\n<!--more--><\/p>\n<p>dir\u30b3\u30de\u30f3\u30c9\u3084PowerShell\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3053\u3068\u3067ADS\u3092\u53ef\u8996\u5316\u3067\u304d\u308b\u3002<br \/>\n\u307e\u305f<strong>WSL<\/strong> (Windows Subsystem for Linux) \u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u306fADS\u304c\u898b\u3048\u308b\u3002<\/p>\n<h3>dir\u30b3\u30de\u30f3\u30c9\u306e &quot;\/r&quot; \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >&gt;dir \/r\r\n \u30c9\u30e9\u30a4\u30d6 C \u306e\u30dc\u30ea\u30e5\u30fc\u30e0 \u30e9\u30d9\u30eb\u306f Windows \u3067\u3059\r\n \u30dc\u30ea\u30e5\u30fc\u30e0 \u30b7\u30ea\u30a2\u30eb\u756a\u53f7\u306f C28D-B175 \u3067\u3059\r\n\r\n C:\\Users\\Jane.Doe\\Downloads \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\r\n\r\n2018\/05\/29  11:54         5,986,657 jsp-1.4.4.1_full.zip\r\n                                146 jsp-1.4.4.1_full.zip:Zone.Identifier:$DATA\r\n               1 \u500b\u306e\u30d5\u30a1\u30a4\u30eb           5,986,657 \u30d0\u30a4\u30c8\r\n               0 \u500b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea  15,977,590,784 \u30d0\u30a4\u30c8\u306e\u7a7a\u304d\u9818\u57df<\/pre>\n<h3>Get-Item\u30b3\u30de\u30f3\u30c9\u306e &quot;-stream&quot; \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408<\/h3>\n<pre class=\"lang:ps highlight:0 decode:true \" >&gt; Get-Item * -stream *\r\n\r\n\r\nPSPath        : Microsoft.PowerShell.Core\\FileSystem::C:\\Users\\Jane.Doe\\Downloads\\jsp-1.4.4.1_full.zip::$DATA\r\nPSParentPath  : Microsoft.PowerShell.Core\\FileSystem::C:\\Users\\Jane.Doe\\Downloads\r\nPSChildName   : jsp-1.4.4.1_full.zip::$DATA\r\nPSDrive       : C\r\nPSProvider    : Microsoft.PowerShell.Core\\FileSystem\r\nPSIsContainer : False\r\nFileName      : C:\\Users\\Jane.Doe\\Downloads\\jsp-1.4.4.1_full.zip\r\nStream        : :$DATA\r\nLength        : 5986657\r\n\r\nPSPath        : Microsoft.PowerShell.Core\\FileSystem::C:\\Users\\Jane.Doe\\Downloads\\jsp-1.4.4.1_full.zip:Zone.Ide\r\n                ntifier\r\nPSParentPath  : Microsoft.PowerShell.Core\\FileSystem::C:\\Users\\Jane.Doe\\Downloads\r\nPSChildName   : jsp-1.4.4.1_full.zip:Zone.Identifier\r\nPSDrive       : C\r\nPSProvider    : Microsoft.PowerShell.Core\\FileSystem\r\nPSIsContainer : False\r\nFileName      : C:\\Users\\Jane.Doe\\Downloads\\jsp-1.4.4.1_full.zip\r\nStream        : Zone.Identifier\r\nLength        : 146<\/pre>\n<h3>\u4ee3\u66ff\u30c7\u30fc\u30bf\u30b9\u30c8\u30ea\u30fc\u30e0(ADS)\u306e\u4e2d\u8eab\u306e\u4f8b<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >[ZoneTransfer]\r\nZoneId=3\r\nReferrerUrl=https:\/\/www.toppers.jp\/jsp-download.html\r\nHostUrl=https:\/\/www.toppers.jp\/download.cgi\/jsp-1.4.4.1_full.zip<\/pre>\n<h3>\u5916\u90e8\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"https:\/\/learn.microsoft.com\/ja-jp\/powershell\/module\/microsoft.powershell.management\/get-item\">Get-Item (Microsoft.PowerShell.Management)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>NTFS\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u306b\u95a2\u3059\u308b\u526f\u6b21\u7684\u306a\u60c5\u5831\u3092\u8a18\u9332\u3059\u308b\u305f\u3081\u306e\u300c\u4ee3\u66ff\u30c7\u30fc\u30bf\u30b9\u30c8\u30ea\u30fc\u30e0 (ADS : Alternate Data Stream)\u300d\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u304c\u5b58\u5728\u3059\u308b\u3002 Web\u30d6\u30e9\u30a6\u30b6\u3084\u30e1\u30fc\u30eb\u306e\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u53d7\u3051\u53d6\u3063\u305f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[38],"class_list":["post-4390","post","type-post","status-publish","format-standard","hentry","category-1","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=4390"}],"version-history":[{"count":16,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4390\/revisions"}],"predecessor-version":[{"id":7953,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4390\/revisions\/7953"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=4390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=4390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=4390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}