Last active
January 11, 2018 14:49
-
-
Save 0xbadjuju/50f607a4f5af8dbb70d712a5ff6aaffd to your computer and use it in GitHub Desktop.
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
$xml = [xml]Get-Content "nexpose_report.xml" | |
ForEach ($node in $xml.NexposeReport.nodes.node) | |
{ | |
Write-Host $node.address "- Weak Ciphers Supported" | |
ForEach ($endpoint in $node.endpoints.endpoint) | |
{ | |
Write-Host $node.address":"$endpoint.port | |
$output = ForEach($test in $endpoint.services.service.tests.test) | |
{ | |
if($test.Status -like "vulnerable-exploited") | |
{ | |
if ($test.id -like "ssl-des-ciphers" -or | |
$test.id -like "ssl-export-ciphers" -or | |
$test.id -like "ssl-null-ciphers" -or | |
$test.id -like "rc4-cve-2013-2566" -or | |
$test.id -like "ssl-only-weak-ciphers" -or | |
$test.id -like "ssl-3des-ciphers") | |
{ | |
ForEach ($item in $test.Paragraph.UnorderedList.ListItem.Paragraph.UnorderedList.ListItem.UnorderedList.ListItem) | |
{ | |
$item | |
} | |
} | |
} | |
} | |
$output | Sort-Object | Get-Unique | Select-String -NotMatch "AES" | |
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