Skip to content

Instantly share code, notes, and snippets.

@scuderiaf1
Created October 15, 2014 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scuderiaf1/c5be0e6745d8b9834b12 to your computer and use it in GitHub Desktop.
Save scuderiaf1/c5be0e6745d8b9834b12 to your computer and use it in GitHub Desktop.
#!/bin/bash
ret=$(echo Q | timeout 5 openssl s_client -connect "${1-`hostname`}:${2-443}" -ssl3 2> /dev/null)
if echo "${ret}" | grep -q 'Protocol.*SSLv3'; then
if echo "${ret}" | grep -q 'Cipher.*0000'; then
echo "SSL 3.0 disabled"
else
echo "SSL 3.0 enabled"
fi
else
echo "SSL disabled or other error"
fi
@scuderiaf1
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment