oneliners/bash/get-ssl-info.sh

12 lines
327 B
Bash
Raw Normal View History

2021-01-25 15:37:59 +01:00
#!/bin/bash
# get some ssl info from foreign server
# enumerate cipers
nmap --script ssl-enum-ciphers example.com -p 443
# make a connection with openssl
openssl s_client -connect example.com:443 < /dev/null
# make a connection with curl how your browser would (without the webpage)
curl -vk https://example.com > /dev/null