loading...

EPPR - BASH para revisar DNS/TXT & Caducidad SSL

recurs1v0 profile image EPPR ・1 min read

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

Discussion

pic
Editor guide