Skip to content

Instantly share code, notes, and snippets.

@0xbadjuju
Last active January 11, 2018 14:49
Show Gist options
  • Save 0xbadjuju/50f607a4f5af8dbb70d712a5ff6aaffd to your computer and use it in GitHub Desktop.
Save 0xbadjuju/50f607a4f5af8dbb70d712a5ff6aaffd 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 "- 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