Use the $( ... ) construct:
$( ... )
hash=$(genhash --use-ssl -s $IP -p 443 --url $URL | grep MD5 | grep -c $MD5)
1.4m articles
1.4m replys
5 comments
56.9k users