speer0

POODLE Test shell script

Oct 15th, 2014
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. #!/bin/bash
  2. ret=$(echo Q | timeout 5 openssl s_client -connect "${1-`hostname`}:${2-443}" -ssl3 2> /dev/null)
  3. if echo "${ret}" | grep -q 'Protocol.*SSLv3'; then
  4.   if echo "${ret}" | grep -q 'Cipher.*0000'; then
  5.     echo "SSL 3.0 disabled"
  6.   else
  7.     echo "SSL 3.0 enabled"
  8.  fi
  9. else
  10.   echo "SSL disabled or other error"
  11. fi
  12.  
  13. # NOTE: This script takes the hostname of the server to check as the first argument and an optional port as the second. By default it will check the local system, port 443.
  14.  
  15. # Resolution: https://access.redhat.com/solutions/1232413
Advertisement
Add Comment
Please, Sign In to add comment