Skip to content

Instantly share code, notes, and snippets.

@0xbadjuju
Created January 11, 2018 14:48
Show Gist options
  • Save 0xbadjuju/0ff3b77f160c66c46786306287504750 to your computer and use it in GitHub Desktop.
Save 0xbadjuju/0ff3b77f160c66c46786306287504750 to your computer and use it in GitHub Desktop.
$xml = [xml]Get-Content "nexpose_report.xml"
ForEach ($node in $xml.NexposeReport.nodes.node)
{
Write-Host $node.address "- SSLv3 and TLS v1.0 Enabled"
ForEach ($endpoint in $node.endpoints.endpoint)
{
Write-Host $node.address":"$endpoint.port
ForEach($name in $endpoint.services.service.configuration.config)
{
if($name.name -eq "sslv2.ciphers")
{
Write-Host ""
Write-Host "SSL 2.0 Supported Ciphers: "
Write-Host ($name.'#text' -replace ",","`n")
}
if($name.name -eq "sslv3.ciphers")
{
Write-Host ""
Write-Host "SSL 3.0 Supported Ciphers: "
Write-Host ($name.'#text' -replace ",","`n")
}
if($name.name -eq "tlsv1_0.ciphers")
{
Write-Host ""
Write-Host "TLS 1.0 Supported Ciphers: "
Write-Host ($name.'#text' -replace ",","`n")
}
}
Write-Host ""
Write-Host ""
Write-Host ""
}
Write-Host "================================================================================"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment