-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRC4.ps1
More file actions
15 lines (15 loc) · 1.28 KB
/
RC4.ps1
File metadata and controls
15 lines (15 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$key1="RC4 40/128"
$key2="RC4 56/128"
$key3="RC4 128/128"
$cipher=(Get-Item "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL").OpenSubkey('Ciphers', $true)
new-item "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0"
new-item "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client"
new-item "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server"
$cipher.CreateSubKey($key1)
$cipher.CreateSubKey($key2)
$cipher.CreateSubKey($key3)
new-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 128/128" -Name "Enabled" -type "DWORD" -value "0"
new-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 40/128" -Name "Enabled" -type "DWORD" -value "0"
new-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 56/128" -Name "Enabled" -type "DWORD" -value "0"
New-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server" -Name "DisabledByDefault" -Value "0" -type "DWORD"
New-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client" -Name "DisabledByDefault" -Value "0" -type "DWORD"