Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 127 additions & 115 deletions ContextMenuManager/Properties/Resources/Texts/EnhanceMenusDic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,111 +47,123 @@ Tip属性为鼠标悬浮在开关上时的提示信息,从每个Item节点开
</Command>
</SubKey>
</Item>
<Item KeyName='GetHash'>
<OSVersion Compare="&gt;=">6.3</OSVersion>
<Value>
<REG_SZ MUIVerb='获取哈希值' Icon='imageres.dll,-5372' SubCommands=''/>
<REG_SZ MUIVerb='Get Hash'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Shell>
<SubKey>
<Item0>
<Value>
<REG_SZ MUIVerb='MD5' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='MD5'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm MD5; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'MD5 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"</Arguments>
</Command>
</SubKey>
</Item0>
<Item1>
<Value>
<REG_SZ MUIVerb='SHA1' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='SHA1'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm SHA1; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'SHA1 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"</Arguments>
</Command>
</SubKey>
</Item1>
<Item2>
<Value>
<REG_SZ MUIVerb='SHA256' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='SHA256'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm SHA256; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'SHA256 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"</Arguments>
</Command>
</SubKey>
</Item2>
<Item3>
<Value>
<REG_SZ MUIVerb='SHA384' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='SHA384'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm SHA384; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'SHA384 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"</Arguments>
</Command>
</SubKey>
</Item3>
<Item4>
<Value>
<REG_SZ MUIVerb='SHA512' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='SHA512'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm SHA512; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'SHA512 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"</Arguments>
</Command>
</SubKey>
</Item4>
<Item5>
<Value>
<REG_SZ MUIVerb='全部算法' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='All Algorithms'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host ('-' * 64); 'MD5','SHA1','SHA256','SHA384','SHA512' | ForEach-Object { $h = Get-FileHash '%1' -Algorithm $_; Write-Host ('{0,-8}: ' -f $h.Algorithm) -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow }; Write-Host ('-' * 64)"</Arguments>
</Command>
</SubKey>
</Item5>
</SubKey>
</Shell>
</SubKey>
</Item>
<Item KeyName='GetHash'>
<OSVersion Compare="&gt;=">6.3</OSVersion>
<Value>
<REG_SZ MUIVerb='获取哈希值' Icon='imageres.dll,-5372' SubCommands=''/>
<REG_SZ MUIVerb='Get Hash'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Shell>
<SubKey>
<Item0>
<Value>
<REG_SZ MUIVerb='MD5' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='MD5'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>
-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm MD5; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'MD5 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"
</Arguments>
</Command>
</SubKey>
</Item0>
<Item1>
<Value>
<REG_SZ MUIVerb='SHA1' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='SHA1'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>
-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm SHA1; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'SHA1 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"
</Arguments>
</Command>
</SubKey>
</Item1>
<Item2>
<Value>
<REG_SZ MUIVerb='SHA256' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='SHA256'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>
-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm SHA256; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'SHA256 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"
</Arguments>
</Command>
</SubKey>
</Item2>
<Item3>
<Value>
<REG_SZ MUIVerb='SHA384' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='SHA384'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>
-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm SHA384; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'SHA384 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"
</Arguments>
</Command>
</SubKey>
</Item3>
<Item4>
<Value>
<REG_SZ MUIVerb='SHA512' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='SHA512'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>
-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); $h = Get-FileHash '%1' -Algorithm SHA512; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host 'SHA512 : ' -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow"
</Arguments>
</Command>
</SubKey>
</Item4>
<Item5>
<Value>
<REG_SZ MUIVerb='全部算法' Icon='imageres.dll,-5372'/>
<REG_SZ MUIVerb='All Algorithms'>
<Culture>en-US</Culture>
</REG_SZ>
</Value>
<SubKey>
<Command>
<ShellExecute Verb='open' WindowStyle='1'/>
<FileName>powershell.exe</FileName>
<Arguments>
-NoExit -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host ('-' * 64); 'MD5','SHA1','SHA256','SHA384','SHA512' | ForEach-Object { $h = Get-FileHash '%1' -Algorithm $_; Write-Host ('{0,-8}: ' -f $h.Algorithm) -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow }; Write-Host ('-' * 64)"
</Arguments>
</Command>
</SubKey>
</Item5>
</SubKey>
</Shell>
</SubKey>
</Item>
</Shell>
</Group>

Expand Down Expand Up @@ -1321,8 +1333,8 @@ Tip属性为鼠标悬浮在开关上时的提示信息,从每个Item节点开
<ShellExecute Verb='runas' WindowStyle='0'/>
<FileName>powershell.exe</FileName>
<Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' -and $_.Direction -eq 'Inbound' } | Remove-NetFirewallRule; New-NetFirewallRule -DisplayName '_%1' -Program '%1' -Direction Inbound -Action Block
</Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' -and $_.Direction -eq 'Inbound' } | Remove-NetFirewallRule; New-NetFirewallRule -DisplayName '_%1' -Program '%1' -Direction Inbound -Action Block
</Arguments>
</Command>
</SubKey>
</Item0>
Expand All @@ -1338,8 +1350,8 @@ Tip属性为鼠标悬浮在开关上时的提示信息,从每个Item节点开
<ShellExecute Verb='runas' WindowStyle='0'/>
<FileName>powershell.exe</FileName>
<Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' -and $_.Direction -eq 'Outbound' } | Remove-NetFirewallRule; New-NetFirewallRule -DisplayName '_%1' -Program '%1' -Direction Outbound -Action Block
</Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' -and $_.Direction -eq 'Outbound' } | Remove-NetFirewallRule; New-NetFirewallRule -DisplayName '_%1' -Program '%1' -Direction Outbound -Action Block
</Arguments>
</Command>
</SubKey>
</Item1>
Expand All @@ -1355,8 +1367,8 @@ Tip属性为鼠标悬浮在开关上时的提示信息,从每个Item节点开
<ShellExecute Verb='runas' WindowStyle='0'/>
<FileName>powershell.exe</FileName>
<Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' -and $_.Direction -eq 'Inbound' } | Remove-NetFirewallRule; New-NetFirewallRule -DisplayName '_%1' -Program '%1' -Direction Inbound -Action Allow
</Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' -and $_.Direction -eq 'Inbound' } | Remove-NetFirewallRule; New-NetFirewallRule -DisplayName '_%1' -Program '%1' -Direction Inbound -Action Allow
</Arguments>
</Command>
</SubKey>
</Item2>
Expand All @@ -1372,8 +1384,8 @@ Tip属性为鼠标悬浮在开关上时的提示信息,从每个Item节点开
<ShellExecute Verb='runas' WindowStyle='0'/>
<FileName>powershell.exe</FileName>
<Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' -and $_.Direction -eq 'Outbound' } | Remove-NetFirewallRule; New-NetFirewallRule -DisplayName '_%1' -Program '%1' -Direction Outbound -Action Allow
</Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' -and $_.Direction -eq 'Outbound' } | Remove-NetFirewallRule; New-NetFirewallRule -DisplayName '_%1' -Program '%1' -Direction Outbound -Action Allow
</Arguments>
</Command>
</SubKey>
</Item3>
Expand All @@ -1389,8 +1401,8 @@ Tip属性为鼠标悬浮在开关上时的提示信息,从每个Item节点开
<ShellExecute Verb='runas' WindowStyle='0'/>
<FileName>powershell.exe</FileName>
<Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' } | Remove-NetFirewallRule
</Arguments>
Get-NetFirewallRule -DisplayName '_%1' | Where-Object { ($_ | Get-NetFirewallApplicationFilter).Program -eq '%1' } | Remove-NetFirewallRule
</Arguments>
</Command>
</SubKey>
</Item4>
Expand Down
Loading