Skip to content

Instantly share code, notes, and snippets.

@nv1t
Last active August 29, 2015 14:07
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 nv1t/b5c58623e119ff511c29 to your computer and use it in GitHub Desktop.
Save nv1t/b5c58623e119ff511c29 to your computer and use it in GitHub Desktop.
poodle vuln scanner
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