You're browsing snippets anonymously. Log in or create an account to save and manage your own snippets.
Public Snippets
Showing
6 snippets
using
language:
Bash
Check if a server has strictsni enabled
curl -v -k https://1.2.3.4
By
xtream1101
•
•
Updated
2025-02-28 14:13
Get domain cert details in cli
DOMAIN=yourdomain.tld
echo | openssl s_client -showcerts -servername $DOMAIN -connect $DOMAIN:443 2>/dev/null | openssl x509 -inform pem -noout -text
By
xtream1101
•
•
Updated
2025-02-12 19:48
List mounted drives
df -h --output=target,size,used,avail,pcent,source | grep -e Mounted -e $1 | awk 'NR<2{print $0;next}{print $0| "sort"}'
By
xtream1101
•
•
Updated
2025-02-08 22:44
Convert image to dxf file
inkscape --export-type=dxf my-image.svg
By
xtream1101
•
•
Updated
2025-02-06 05:18
Clean up empty dirs
# List/print empty dirs (does not delete)
find /mnt/my-data/ -type d -empty -print
# Delete empty dirs
find /mnt/my-data/ -type d -empty -delete
By
xtream1101
•
•
Updated
2025-02-06 05:15
Showing
6 snippets
Snippet
curl -v -k https://1.2.3.4
Description
- Find the ip of the server
nslookup my.domain.tld
- Use that ip in the following command
curl -v -k https://1.2.3.4
- If it returns an ssl cert (valid or not) then strict sni is NOT enabled, it should return something like this if its enabled correctly:
❯ curl -v -k https://1.2.3.4 * Trying 1.2.3.4:443... * Connected to 1.2.3.4 (1.2.3.4) port 443 * ALPN: curl offers h2,http/1.1 * (304) (OUT), TLS handshake, Client hello (1): * LibreSSL/3.3.6: error:1404B458:SSL routines:ST_CONNECT:tlsv1 unrecognized name * Closing connection curl: (35) LibreSSL/3.3.6: error:1404B458:SSL routines:ST_CONNECT:tlsv1 unrecognized name
By
xtream1101
•
•
Updated
2025-02-28 14:13