-
Notifications
You must be signed in to change notification settings - Fork 7
/
Get-fileHash.reg
47 lines (44 loc) · 9.93 KB
/
Get-fileHash.reg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Windows Registry Editor Version 5.00
; WindowsContextMenuTools created by VincentBounce
;Hash
[-HKEY_CLASSES_ROOT\*\shell\GetFileHash]
[HKEY_CLASSES_ROOT\*\shell\GetFileHash]
"MUIVerb"="Get file &Hash"
"SubCommands"=""
"Icon"="%SystemRoot%\\system32\\certmgr.dll,-447"
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run10SHA1]
"MUIVerb"="SHA-&1"
"Icon"="%SystemRoot%\\system32\\certmgr.dll,-450"
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run10SHA1\command]
@="powershell.exe -command \"New-Variable -Name 'hashType' -Value 'SHA1' -Visibility Public; [console]::WindowWidth=64; [console]::WindowHeight=7; [console]::BufferWidth=[console]::WindowWidth;$host.UI.RawUI.WindowTitle = $hashType; New-Variable -Name 'hashResult' -Visibility Public -Value (Get-FileHash '%1' -Algorithm $hashType); write-output $hashResult.Path; write-output ' '; write-output $hashResult.Hash; Write-Output ' '; Read-Host -Prompt '[Enter] to close'\""
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run20SHA256]
"MUIVerb"="SHA-&256"
"Icon"="%SystemRoot%\\system32\\certmgr.dll,-450"
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run20SHA256\command]
@="powershell.exe -command \"New-Variable -Name 'hashType' -Value 'SHA256' -Visibility Public; [console]::WindowWidth=64; [console]::WindowHeight=7; [console]::BufferWidth=[console]::WindowWidth;$host.UI.RawUI.WindowTitle = $hashType; New-Variable -Name 'hashResult' -Visibility Public -Value (Get-FileHash '%1' -Algorithm $hashType); write-output $hashResult.Path; write-output ' '; write-output $hashResult.Hash; Write-Output ' '; Read-Host -Prompt '[Enter] to close'\""
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run30SHA384]
"MUIVerb"="SHA-&384"
"Icon"="%SystemRoot%\\system32\\certmgr.dll,-450"
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run30SHA384\command]
@="powershell.exe -command \"New-Variable -Name 'hashType' -Value 'SHA384' -Visibility Public; [console]::WindowWidth=64; [console]::WindowHeight=7; [console]::BufferWidth=[console]::WindowWidth;$host.UI.RawUI.WindowTitle = $hashType; New-Variable -Name 'hashResult' -Visibility Public -Value (Get-FileHash '%1' -Algorithm $hashType); write-output $hashResult.Path; write-output ' '; write-output $hashResult.Hash; Write-Output ' '; Read-Host -Prompt '[Enter] to close'\""
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run40SHA512]
"MUIVerb"="SHA-&512"
"Icon"="%SystemRoot%\\system32\\certmgr.dll,-450"
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run40SHA512\command]
@="powershell.exe -command \"New-Variable -Name 'hashType' -Value 'SHA512' -Visibility Public; [console]::WindowWidth=64; [console]::WindowHeight=7; [console]::BufferWidth=[console]::WindowWidth;$host.UI.RawUI.WindowTitle = $hashType; New-Variable -Name 'hashResult' -Visibility Public -Value (Get-FileHash '%1' -Algorithm $hashType); write-output $hashResult.Path; write-output ' '; write-output $hashResult.Hash; Write-Output ' '; Read-Host -Prompt '[Enter] to close'\""
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run50MD5]
"MUIVerb"="&MD5"
"Icon"="%SystemRoot%\\system32\\certmgr.dll,-450"
[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run50MD5\command]
@="powershell.exe -command \"New-Variable -Name 'hashType' -Value 'MD5' -Visibility Public; [console]::WindowWidth=64; [console]::WindowHeight=7; [console]::BufferWidth=[console]::WindowWidth;$host.UI.RawUI.WindowTitle = $hashType; New-Variable -Name 'hashResult' -Visibility Public -Value (Get-FileHash '%1' -Algorithm $hashType); write-output $hashResult.Path; write-output ' '; write-output $hashResult.Hash; Write-Output ' '; Read-Host -Prompt '[Enter] to close'\""
;Below 2 hashes compatibles PowerShell 5 but not PowerShell 7
;[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run60MACTripleDES]
;"MUIVerb"="MAC&TripleDES"
;"Icon"="%SystemRoot%\\system32\\certmgr.dll,-450"
;[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run60MACTripleDES\command]
;@="powershell.exe -command \"New-Variable -Name 'hashType' -Value 'MAC&TripleDES' -Visibility Public; [console]::WindowWidth=64; [console]::WindowHeight=7; [console]::BufferWidth=[console]::WindowWidth;$host.UI.RawUI.WindowTitle = $hashType; New-Variable -Name 'hashResult' -Visibility Public -Value (Get-FileHash '%1' -Algorithm $hashType); write-output $hashResult.Path; write-output ' '; write-output $hashResult.Hash; Write-Output ' '; Read-Host -Prompt '[Enter] to close'\""
;[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run70RIPEMD160]
;"MUIVerb"="&RIPEMD-160"
;"Icon"="%SystemRoot%\\system32\\certmgr.dll,-450"
;[HKEY_CLASSES_ROOT\*\shell\GetFileHash\shell\run70RIPEMD160\command]
;@="powershell.exe -command \"New-Variable -Name 'hashType' -Value 'RIPEMD-160' -Visibility Public; [console]::WindowWidth=64; [console]::WindowHeight=7; [console]::BufferWidth=[console]::WindowWidth;$host.UI.RawUI.WindowTitle = $hashType; New-Variable -Name 'hashResult' -Visibility Public -Value (Get-FileHash '%1' -Algorithm $hashType); write-output $hashResult.Path; write-output ' '; write-output $hashResult.Hash; Write-Output ' '; Read-Host -Prompt '[Enter] to close'\""