Advertisement
opexxx

check.sh

Jun 17th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. site=$1
  4. echo "quit" | openssl s_client -connect $site:443 -tlsextdebug 2>&1| grep 'server extension "heartbeat" (id=15)' >/dev/null
  5.  
  6. if [ $? == 0 ];then
  7.         echo -e "\033[1;32m[+]\033[0m Target Potentially Vulnerable !";
  8.         [ "$2" ] && echo $site >> $2
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement