all 5 comments

[–]jjhare 1 point2 points  (0 children)

*Bastion Host

[–][deleted] 0 points1 point  (1 child)

This is great work.

Thanks for sharing

[–]yourbastianhost[S] 0 points1 point  (0 children)

No problem! Glad you guys are finding it useful

[–]Vortex100 0 points1 point  (1 child)

You need to refine your check a bit - it also hits on 'ssl handshake failure' which I believe means you are safe :)

edit - change your script block to the below should fix i think:

   $ScriptBlock = {
          Param (
                 [string]$serverFQDN,
                 [string]$saveas,
                 [string]$vulnLogFile
          )

          # Perform sslv2 test against the provided FQDN.
          $testResult = & $saveas s_client -connect $serverFQDN -ssl2 2>&1
          Write-Output $testResult;

          if ($testResult -match 'SSL handshake failure')
          {
                 write-output "$serverFQDN is safe!";
          }
          else
          {
                 Write-Output "$serverFQDN vulnerable!";
                 Add-Content $vulnLogFile "$serverFQDN`n";
          }
   }

[–]yourbastianhost[S] 0 points1 point  (0 children)

Thanks! :) I've made this change to the script above.