Kommandozeile

Gemacht fürs Terminal

Kommandozeilen-Clients (curl, wget, HTTPie, PowerShell) bekommen reinen Text statt HTML. Praktisch auf Servern, in RMM-Skripten und über SSH. Die Ausgabe im Terminal ist englisch.

Alle Befehle

OTW Tools — tools.otw.solutions

My IP
  curl tools.otw.solutions                          your public IP (-4 / -6 to force a family)
  curl tools.otw.solutions/info                     + reverse DNS, network (ASN), country
  curl tools.otw.solutions/json                     as JSON

Domain & DNS
  curl tools.otw.solutions/dns/example.com          registrar, DNS hosting, web & mail, SPF/DMARC/DKIM
  curl tools.otw.solutions/dig/example.com          every record found, as a zone file (AXFR or probing)
  curl tools.otw.solutions/propagation/example.com/MX
                                        record on authoritative NS vs. public resolvers
  curl tools.otw.solutions/m365/example.com         Microsoft 365 tenant ID, region, DNS records

Security
  curl tools.otw.solutions/ssl/example.com          certificate & TLS versions (host:port, STARTTLS on 25/587/143/110)
  curl tools.otw.solutions/ports/22,443,3389        reachability of YOUR public IP from the internet
  curl tools.otw.solutions/blacklist                DNSBL check of your IP (or /blacklist/<ip|domain>)

Utilities
  curl tools.otw.solutions/subnet/10.0.0.0/22       subnet calculator (?split=24)
  curl tools.otw.solutions/cron/*/15_8-17_*_*_1-5   cron explainer, _ instead of spaces (?tz=Europe/Berlin)
  curl tools.otw.solutions/linux                    Linux debugging cheat sheet (?distro=debian, /linux/<filter>)
  curl tools.otw.solutions/docker                   Docker debugging cheat sheet (/docker/<filter>)
  curl tools.otw.solutions/pw                       random password (?len=24&count=5&symbols=0)
  curl tools.otw.solutions/pw/phrase                passphrase (?words=6&sep=-)

Memes
  curl "tools.otw.solutions/oracle?q=is+it+dns"     ask the Online Oracle (&lang=de for German)
  curl "tools.otw.solutions/buzzword?q=we+have+a+problem&level=3"
                                        corporate speak (&lang=de, level 1–3)
  curl "tools.otw.solutions/d20?price=500&mods=klick,freitag"
                                        D20 Price Calculator (&lang=de)

JSON: add ?format=json to any lookup.   PowerShell: irm tools.otw.solutions/<path>

PowerShell (Windows)

PS> irm tools.otw.solutions
PS> irm tools.otw.solutions/json                          # liefert ein Objekt
PS> (irm "tools.otw.solutions/api/dns?d=example.com").mail.providers
PS> (irm "tools.otw.solutions/api/ssl?q=example.com").chain[0].daysLeft
PS> irm tools.otw.solutions/dig/example.com | Out-File example.com.zone
PS> irm tools.otw.solutions/pw | Set-Clipboard

JSON API

/json
Deine IP-Infos
/api/dns?d=
Domain-Report
/api/dig?q=
DNS-Zonen-Export (alle gefundenen Records)
/api/ssl?q=
TLS-Check (Host oder Host:Port)
/api/ports?q=
Port-Check deiner IP (Ports mit Komma getrennt)
/api/blacklist?q=
DNSBL-Check (IP oder Domain; leer = deine IP)
/api/propagation?q=&type=
DNS-Propagation
/api/m365?q=
Microsoft-365-Tenant
/api/subnet?q=&split=
Subnetzberechnung
/api/cron?q=&tz=
Cron-Ausdruck, nächste Ausführungen
/pw?format=json
Passwörter

Abfragen sind pro IP-Adresse begrenzt (z. B. 30 Domain-Reports, 20 SSL-Checks, 10 Port-Checks, 5 Zonen-Exporte pro Minute).