Last active
August 29, 2015 14:07
-
-
Save nv1t/b5c58623e119ff511c29 to your computer and use it in GitHub Desktop.
poodle vuln scanner
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
function poodle() { HOST=$1;PORT=$2;NAME=$(host $1 |cut -d " " -f 5 | tr "\n" ' '| grep -v NXDOMAIN);timeout 1 openssl s_client -connect $HOST:$PORT -ssl3 2> /dev/null > /dev/null; if [[ $? == 124 ]]; then echo "FAIL: ${HOST}:${PORT} - ${NAME}"; else echo "OK: ${HOST}:${PORT} - ${NAME}"; fi; } | |
PORT=$2; RANGE=$1; zmap -p ${PORT} -o /tmp/zmap.results.${PORT}.csv -B 10M $RANGE | |
for i in $(cat /tmp/zmap.results.${PORT}.csv | sort -t . -k 3,3n -k 4,4n); do poodle $i $PORT; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment