smartscreen 关_了解Windows 8在何处存储用于下载文件的SmartScreen筛选器信息
smartscreen 关
In previous versions of Windows the SmartScreen filter was a feature of Internet Explorer, with Windows 8 it becomes part of the Windows file system. But how does it know which files have been downloaded and which ones originated from your PC? Read on to see how How-To Geek went exploring in the file system.
在Windows的早期版本中,SmartScreen筛选器是Internet Explorer的功能,在Windows 8中,它成为Windows文件系统的一部分。 但是,它如何知道哪些文件已下载以及哪些文件来自您的PC? 继续阅读以了解How-To Geek如何在文件系统中进行探索。
Note: The information provided in this article is for educational purposes only.
注意:本文提供的信息仅用于教育目的。
那么什么是魔术? (So What’s The Magic?)
Well the magic used here actually consists of fairly simple technology, most notably Internet Zones.
好吧,这里使用的魔术实际上是由相当简单的技术组成的,最著名的是Internet区域。
While you can only get access to the settings for these Internet Zones via Internet Explorer, they are used in various places throughout Windows. Whenever you download a file that comes from the Internet zone it gets tagged with a special Zone Identifier, and this identifier is stored in an alternate data stream. To see this I decided to bust open my favorite scripting language, PowerShell. I wrote the following script to see the alternate data streams of each file in my downloads folder.
虽然您只能通过Internet Explorer访问这些Internet区域的设置,但它们在Windows的各个地方都可以使用。 每当您下载来自Internet区域的文件时,都会使用特殊的区域标识符进行标记,并且此标识符存储在备用数据流中。 为此,我决定关闭我最喜欢的脚本语言PowerShell。 我编写了以下脚本,以查看我的下载文件夹中每个文件的备用数据流。
$Files = Get-ChildItem -Path C:\Users\Taylor\Downloads foreach($File in $Files) { Get-Item $File.FullName -Stream * }
$ Files = Get-ChildItem -Path C:\ Users \ Taylor \ Downloads foreach($ Files中的$ File){Get-Item $ File.FullName -Stream *}
You see that last file in the list, it has an additional data stream called Zone.Identifier, that’s what we were are talking about. When you open a file in Windows it checks for this special data stream and triggers the SmartScreen if it exists. In true geek fashion we decided to take a peek inside the data stream to see what information it held.
您会看到列表中的最后一个文件,它还有一个名为Zone.Identifier的附加数据流,这就是我们正在谈论的内容。 在Windows中打开文件时,它会检查此特殊数据流并触发SmartScreen(如果存在)。 我们决定以一种真正的怪胎方式来窥视数据流,以查看其持有的信息。
Get-Item -Path C:\Users\Taylor\Downloads\socketsniff.zip -Stream Zone* | Get-Content
获取项目-Path C:\ Users \ Taylor \ Downloads \ socketsniff.zip -Stream Zone * | 获取内容
While that might not mean anything to us, it certainly got us thinking about how we can get around the SmartScreen.
虽然这对我们可能没有任何意义,但它无疑使我们思考如何绕过SmartScreen。
如何在Windows 8中规避SmartScreen (How to Circumvent the SmartScreen in Windows 8)
The first way to get around it is using the GUI, if you have a file with a Zone.Identifier data stream you can easily unblock it from the properties of the file. Just right click on the file and open its properties from the context menu and then click the Unblock button, so now when you open the file the SmartScreen wont get triggered.
解决该问题的第一种方法是使用GUI,如果您的文件带有Zone.Identifier数据流,则可以轻松地将其从文件属性中解除阻止。 只需右键单击该文件并从上下文菜单中打开其属性,然后单击“取消阻止”按钮,所以现在当您打开文件时,不会触发SmartScreen。
You could also use the new unblock file cmdlet in PowerShell 3, which is the script equivalent of clicking the unblock button.
您还可以在PowerShell 3中使用新的取消阻止文件cmdlet,该脚本等效于单击“取消阻止”按钮。
$Files = Get-ChildItem -Path C:\Users\Taylor\Downloads foreach($File in $Files) { Unblock-File –Path $File.Fullname }
$ Files = Get-ChildItem -Path C:\ Users \ Taylor \ Downloads foreach($ Files中的$ File){取消阻止文件–Path $ File.Fullname}
The final way to get around SmartScreen is to simply add the website you are downloading from to the intranet zone in Internet Explorer.
解决SmartScreen的最后一种方法是简单地将要下载的网站添加到Internet Explorer的Intranet区域中。
Of course we recommend you never do that as that zone is reserved for intranet sites and it would leave you vulnerable to malware that originates from those sites in the list, and on that note I leave you with this script to find files on your PC that originated from the internet zone.
当然,我们建议您不要这样做,因为该区域是为Intranet站点保留的,它会使您容易受到来自列表中那些站点的恶意软件的侵害,并且请注意,我用这个脚本让您在PC上查找文件源自互联网区域。
$Files = Get-ChildItem -Path C:\Users\Taylor\Downloads foreach($File in $Files) { Get-Item $File.FullName -Stream * | %{if($_.Stream -like “Zone*”){$File.Name}} }
$ Files = Get-ChildItem -Path C:\ Users \ Taylor \ Downloads foreach($ Files中的$ File){Get-Item $ File.FullName -Stream * | %{if($ _。Stream -like“ Zone *”){$ File.Name}}}
That’s all there is to it.
这里的所有都是它的。
smartscreen 关