ipfacts.sh — WHOIS-Kurzfassung + Netz-Kalkulation für eine IP
Find a file
2026-05-21 19:07:32 +02:00
.gitignore feat: initial commit 2026-05-21 19:01:52 +02:00
.public feat: initial commit 2026-05-21 19:01:52 +02:00
CHANGELOG.md chore(release): v0.1.1 2026-05-21 19:07:32 +02:00
cliff.toml feat: initial commit 2026-05-21 19:01:52 +02:00
ipfacts.sh feat: initial commit 2026-05-21 19:01:52 +02:00
LICENSE feat: initial commit 2026-05-21 19:01:52 +02:00
README.md fix: README.md 2026-05-21 19:07:18 +02:00
release.sh feat: initial commit 2026-05-21 19:01:52 +02:00

ipfacts

License: MIT Linux Bash

WHOIS-Kurzfassung + Netz-Kalkulation für eine IP — auf einen Blick, in Farbe.

Beantwortet die vier Fragen, die man beim Anstarren einer fremden IP immer zuerst stellt: Wer? Wo? Welches Netz? Welches AS? — plus ipcalc-Style-Block (Network, Broadcast, First/Last Host, Netmask, Wildcard).

Features

  • Pure Bash, keine externen Tools ausser whois
  • Termux-safe, kein root, keine Python/bc-Abhängigkeit
  • Farbig wenn TTY, sonst plain (respektiert tput colors)
  • Akzeptiert IP oder CIDR (ipfacts 1.2.3.4 oder ipfacts 1.2.3.0/24)
  • Range→CIDR-Konvertierung falls WHOIS nur inetnum: a - b liefert
  • Korrekt für /31 und /32

Install

git clone https://git@forgejo.mueller.network/holm.tools.public/ipfacts.git \
    ~/git/forgejo.mueller.network/holm.tools.public/ipfacts

ln -sf ~/git/forgejo.mueller.network/holm.tools.public/ipfacts/ipfacts.sh \
       ~/bin/ipfacts

Usage

ipfacts 185.156.46.151
ipfacts 10.0.0.0/24

Dependencies

  • bash ≥ 4
  • whois
  • tput (optional, für Farben)

License

MIT — siehe LICENSE.