-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22550de
commit 03461a6
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -393,7 +393,9 @@ function Install-OpenSSH { | |
# It’s by design that files within the C:\Windows\System32\ folder are not modifiable. | ||
# When the OpenSSH Server starts, it copies C:\windows\system32\openssh\sshd_config_default to C:\programdata\ssh\sshd_config, if the file does not already exist. | ||
$OriginalConfigPath = "C:\windows\system32\OpenSSH\sshd_config_default" | ||
$ConfigPath = "C:\programdata\ssh\sshd_config" | ||
$ConfigDirectory = "C:\programdata\ssh" | ||
New-Item -ItemType Directory -Force -Path $ConfigDirectory | ||
$ConfigPath = $ConfigDirectory + "\sshd_config" | ||
Write-Log "Updating $ConfigPath for CVE-2023-48795" | ||
$ModifiedConfigContents = Get-Content $OriginalConfigPath ` | ||
| %{$_ -replace "#RekeyLimit default none", "$&`r`n# Disable cipher to mitigate CVE-2023-48795`r`nCiphers [email protected]`r`nMacs -*[email protected]`r`n"} | ||
|