Compare commits
4
Commits
4863322ee3
...
495713b5c2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
495713b5c2 | ||
|
|
28f6958ae3 | ||
|
|
8685420f24 | ||
|
|
fdfe0f3594 |
@@ -0,0 +1,81 @@
|
||||
# <scriptname>
|
||||
|
||||
Skript zur schnellen Abfrage historischer Domain-Records im json-Format. Zur Abfrage wird ein API-Key von Securitytrails.com benötigt.
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
- Abfrage historischer DNS-Records inklusive TTLs und Prioritäten
|
||||
|
||||
---
|
||||
|
||||
## Installation
|
||||
|
||||
1. Repository klonen oder Skript kopieren:
|
||||
```bash
|
||||
git clone git.int.loki-net.at/esn-support-bash-snippets.git
|
||||
cd esn-support-bash-snippets/domaintools/histodomain
|
||||
chmod +x histodomain
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Nutzung
|
||||
|
||||
### Standardaufruf
|
||||
```bash
|
||||
./histodomain.sh
|
||||
```
|
||||
|
||||
### Beispiele
|
||||
```bash
|
||||
./<scriptname> --option foo
|
||||
./<scriptname> 2025-09-08
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Optionen
|
||||
|
||||
```
|
||||
Usage: ./<scriptname> [OPTIONS]
|
||||
|
||||
--help Zeigt diese Hilfe
|
||||
--option Beispieloption
|
||||
YYYY-MM-DD Beispiel für Datumsargument
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Beispielausgabe
|
||||
|
||||
Hier ein Beispieloutput des Skripts.
|
||||
|
||||
``` bash
|
||||
histodomain
|
||||
> Welche Domain?
|
||||
> domain.tld
|
||||
> Welcher DNS-Typ?
|
||||
> a
|
||||
> API-Key für Securitytrails angeben:
|
||||
```
|
||||
```
|
||||
---
|
||||
|
||||
## Setup-Hinweise
|
||||
|
||||
Falls notwendig, Alias in `~/.bashrc` setzen:
|
||||
```bash
|
||||
alias <scriptname>='~/pfad/zum/repo/domaintools/histodomain/histodomain.sh'
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Free-Version von Securitytrails ermöglicht bis zu 50 kostenlose Abpfragen über die API/Monat
|
||||
- To-Do
|
||||
- Non-interaktive Version bauen
|
||||
|
||||
Executable
+43
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env bash
|
||||
# Domaintool zum Abfragen von historischen DNS-Einträgen über die Securitytrails-API
|
||||
# Maintainer: peignerpausz
|
||||
# Version: 1
|
||||
set -eou pipefail
|
||||
usage() {
|
||||
cat <<USAGE
|
||||
Verwendung:
|
||||
histodomain
|
||||
> Welche Domain? Domain ohne http oder https!
|
||||
> domain.tld
|
||||
> Welcher DNS-Typ? Eintrag in lower case!
|
||||
> a/aaaa/txt/ns/soa/...
|
||||
|
||||
USAGE
|
||||
}
|
||||
echo "Welche Domain? Achtung: Domain ohne http oder https! "
|
||||
read domain
|
||||
if [[ -z "$domain" ]]; then
|
||||
{
|
||||
echo -e "Fehler: keine Domain angegeben. \n" >&2
|
||||
usage
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
echo "Welcher DNS-Typ? Achtung: Eintrag in lower case! "
|
||||
read dnstype
|
||||
if [[ -z "$dnstype" ]]; then
|
||||
{
|
||||
echo -e "Fehler: keinen DNS-Typ angegeben. \n" >&2
|
||||
usage
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
# Prüfung ob Securitytrails-API-Key übergeben wurde oder als Umgebungsvariable existiert.
|
||||
if [[ -z "$SECURITYTRAILSAPI" ]]; then
|
||||
read -rsp "API-Key für Securitytrails angeben: " SECURITYTRAILSAPI
|
||||
echo
|
||||
fi
|
||||
# Hier folgt die eigentliche Abfrage über die Securitytrails-API.
|
||||
curl --request GET --url \
|
||||
https://api.securitytrails.com/v1/history/$domain/dns/$dnstype \
|
||||
--include --header "APIKEY: $SECURITYTRAILSAPI" --header 'Accept: application/json'
|
||||
@@ -1,15 +1,12 @@
|
||||
# <scriptname>
|
||||
# domainchecker
|
||||
|
||||
Kurzbeschreibung des Skripts:
|
||||
<eine Zeile, wofür es gedacht ist>
|
||||
Domainchecker für schnelle Prüfung eines beliebigen DNS-Records für eine beliebige Anzahl an Domains
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
- Punkt 1
|
||||
- Punkt 2
|
||||
- Punkt 3
|
||||
- Ausgabe einer Liste von DNS-Records für eine beliebige in einem Array übergebene Anzahl Domains
|
||||
|
||||
---
|
||||
|
||||
@@ -32,13 +29,212 @@ Kurzbeschreibung des Skripts:
|
||||
|
||||
### Standardaufruf
|
||||
```bash
|
||||
./<scriptname>
|
||||
./domainchecker.sh
|
||||
```
|
||||
|
||||
### Beispiele
|
||||
```bash
|
||||
./<scriptname> --option foo
|
||||
./<scriptname> 2025-09-08
|
||||
for a in filmkontor.at sense-and-soul.at sense-and-soul.com mgoe.at mgoe.immo liahov.at veronikastoeger.eu morningkind.com audioraevents.com bcg-papers.at lylynails.at montafoner-wollwerkstatt-shop.at hmvc.at martingansberger.com soleman.at soleman-shoes.at soleman-shoes.de soleman-shoes.com puventuregroup.at puventuregroup.de puventuregroup.com globale-perspektive.at floraswebwerkstatt.at floraswebwerkstatt.com lechner-studios.de parvinrazavi.at parvinrazavi.com fv16.lu lenz-honorarberatung.at lenz-honorarberatung.com sieglspub.co.at rheintalpraxis.ch rheintal-homöopathie.ch synstro.at medstro.at tecstro.at oefrd.eu hp-rohrreinigung.at batjaferch.com 6gforum.at rbl-consult.com mozzarellaranch.at agentsie.at simoneammarkt.at oglatz-fenster.at billboard-games.at ai4u.at secondunit.at 2ndunit.at oscarperfume.at vitalone.eu ikigai-vienna.at ikigai-europe.com puvg.at puvg.de psychotherapie-weihsengruber.at seitenwind.at creativem.at muck.one beesecure.at siebenunddrei.com audiovision-eventtechnik.at crashncreate.com wizia.at waschfach.at ateliervagant.com; do domain=$(dig +short A mail-in.$a); printf "%s MX-Records: \n⤷%s\n====\n" "$a" "$domain"; done
|
||||
filmkontor.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
sense-and-soul.at MX-Records:
|
||||
⤷91.151.18.26
|
||||
====
|
||||
sense-and-soul.com MX-Records:
|
||||
⤷91.151.18.26
|
||||
====
|
||||
mgoe.at MX-Records:
|
||||
⤷91.151.18.28
|
||||
====
|
||||
mgoe.immo MX-Records:
|
||||
⤷91.151.18.28
|
||||
====
|
||||
liahov.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
veronikastoeger.eu MX-Records:
|
||||
⤷64.29.17.65
|
||||
64.29.17.1
|
||||
====
|
||||
morningkind.com MX-Records:
|
||||
⤷91.151.18.37
|
||||
====
|
||||
audioraevents.com MX-Records:
|
||||
⤷
|
||||
====
|
||||
bcg-papers.at MX-Records:
|
||||
⤷91.151.18.29
|
||||
====
|
||||
lylynails.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
montafoner-wollwerkstatt-shop.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
hmvc.at MX-Records:
|
||||
⤷91.151.18.34
|
||||
====
|
||||
martingansberger.com MX-Records:
|
||||
⤷91.151.18.36
|
||||
====
|
||||
soleman.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
soleman-shoes.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
soleman-shoes.de MX-Records:
|
||||
⤷
|
||||
====
|
||||
soleman-shoes.com MX-Records:
|
||||
⤷
|
||||
====
|
||||
puventuregroup.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
puventuregroup.de MX-Records:
|
||||
⤷
|
||||
====
|
||||
puventuregroup.com MX-Records:
|
||||
⤷
|
||||
====
|
||||
globale-perspektive.at MX-Records:
|
||||
⤷91.151.18.34
|
||||
====
|
||||
floraswebwerkstatt.at MX-Records:
|
||||
⤷91.151.18.35
|
||||
====
|
||||
floraswebwerkstatt.com MX-Records:
|
||||
⤷91.151.18.35
|
||||
====
|
||||
lechner-studios.de MX-Records:
|
||||
⤷
|
||||
====
|
||||
parvinrazavi.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
parvinrazavi.com MX-Records:
|
||||
⤷
|
||||
====
|
||||
fv16.lu MX-Records:
|
||||
⤷
|
||||
====
|
||||
lenz-honorarberatung.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
lenz-honorarberatung.com MX-Records:
|
||||
⤷
|
||||
====
|
||||
sieglspub.co.at MX-Records:
|
||||
⤷91.151.18.37
|
||||
====
|
||||
rheintalpraxis.ch MX-Records:
|
||||
⤷91.151.18.35
|
||||
====
|
||||
rheintal-homöopathie.ch MX-Records:
|
||||
⤷
|
||||
====
|
||||
synstro.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
medstro.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
tecstro.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
oefrd.eu MX-Records:
|
||||
⤷91.151.18.30
|
||||
====
|
||||
hp-rohrreinigung.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
batjaferch.com MX-Records:
|
||||
⤷91.151.18.36
|
||||
====
|
||||
6gforum.at MX-Records:
|
||||
⤷185.3.235.176
|
||||
====
|
||||
rbl-consult.com MX-Records:
|
||||
⤷
|
||||
====
|
||||
mozzarellaranch.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
agentsie.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
simoneammarkt.at MX-Records:
|
||||
⤷91.151.18.37
|
||||
====
|
||||
oglatz-fenster.at MX-Records:
|
||||
⤷91.151.18.34
|
||||
====
|
||||
billboard-games.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
ai4u.at MX-Records:
|
||||
⤷91.151.18.37
|
||||
====
|
||||
secondunit.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
2ndunit.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
oscarperfume.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
vitalone.eu MX-Records:
|
||||
⤷91.151.18.29
|
||||
====
|
||||
ikigai-vienna.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
ikigai-europe.com MX-Records:
|
||||
⤷
|
||||
====
|
||||
puvg.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
puvg.de MX-Records:
|
||||
⤷
|
||||
====
|
||||
psychotherapie-weihsengruber.at MX-Records:
|
||||
⤷91.151.18.35
|
||||
====
|
||||
seitenwind.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
creativem.at MX-Records:
|
||||
⤷91.151.18.37
|
||||
====
|
||||
muck.one MX-Records:
|
||||
⤷91.151.18.37
|
||||
====
|
||||
beesecure.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
siebenunddrei.com MX-Records:
|
||||
⤷91.151.18.22
|
||||
====
|
||||
audiovision-eventtechnik.at MX-Records:
|
||||
⤷91.151.18.28
|
||||
====
|
||||
crashncreate.com MX-Records:
|
||||
⤷91.151.18.26
|
||||
====
|
||||
wizia.at MX-Records:
|
||||
⤷
|
||||
====
|
||||
waschfach.at MX-Records:
|
||||
⤷91.151.18.30
|
||||
====
|
||||
ateliervagant.com MX-Records:
|
||||
⤷
|
||||
====
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
|
||||
for a in domains
|
||||
do domain=$(dig +short MX $a)
|
||||
printf "%s MX-Records: \n⤷%s\n====\n" "$a" "$domain"
|
||||
printf "%s MX-Records: \n⤷%s\n ⤷%s\n====\n" "$a" "$domain"
|
||||
done
|
||||
Reference in New Issue
Block a user