DEV Community

EPPR
EPPR

Posted on

EPPR - BASH para revisar DNS/TXT & Caducidad SSL

eppr-txt-dns-check

Comando LINUX usando google.com

host -t txt google.com

Programa en BASH

#!/bin/bash
# BASH Para revisar DNS con TXT
main(){
    echo "Ingresa un dominio (o sub):"
    read vardomain
    host -t txt $vardomain
    # FIN
}
main

GITHUB

sudo git clone url

CURL GITHUB+RAW

sudo curl -sSL url | sh

eppr-ssl-check

Comando LINUX usando google.com

echo | openssl s_client -servername google.com -connect google.com:443 2>/dev/null | openssl x509 -noout -dates

Programa en BASH

#!/bin/bash
# BASH para revisar caducidad en certs. SSL
main(){
    echo "Ingresa un dominio (o sub):"
    read vardomain
    echo | openssl s_client -servername $vardomain -connect $vardomain:443 2>/dev/null | openssl x509 -noout -dates
}
main

GITHUB

sudo git clone url

CURL GITHUB+RAW

sudo curl -sSL url | sh

Top comments (0)