Skip to content
KitploitKITPLOIT
ToolsBlog
Einreichen
ToolsBlog
Einreichen

Hacking-, PenTest- und Cybersicherheits-Tools für Ihr Sicherheitsarsenal!

Kitploit ist ein Verzeichnis von Hacking-, Cybersicherheits- und Pentesting-Tools. Entdecken Sie die neuesten Projekt-Updates, um Schwachstellen zu finden, Systeme zu analysieren, Tests zu automatisieren und Ihre Sicherheit zu stärken.

··Feeds·Kontakt·Datenschutz·© 2026 Kitploit

Tool-Verzeichnis

Kategorien

Alle Kategorien anzeigen
Loading categories
unfurl — Teile aus über stdin bereitgestellten URLs extrahieren | Kitploit
Tools/GitHubGitHub/tomnomnom/unfurl
Allgemeine DienstprogrammeAufklärungInformationsbeschaffung
GitHubtomnomnom/unfurl

unfurl

Teile aus über stdin bereitgestellten URLs extrahieren

Repository anzeigen
1.3k136vor 3 JahrenVon Kitploit geprüft

Beliebteste

Alle anzeigen →

Entdecken Sie die meistgenutzten Tools unserer Community.

Alle Tools erkunden

Durchsuchen Sie unsere Tool-Sammlung

Alle Tools anzeigen →
Teilen

unfurl

Extrahiere Teile von URLs, die über stdin bereitgestellt werden

Installation

Wenn Go installiert und konfiguriert ist:

root@kitploit:~
▶ go install github.com/tomnomnom/unfurl@latest

Andernfalls lade die neueste Binärdatei für deine Plattform herunter, entpacke sie und verschiebe sie an einen Ort in deinem $PATH (z. B. /usr/bin/):

root@kitploit:~
▶ wget https://github.com/tomnomnom/unfurl/releases/download/v0.0.1/unfurl-linux-amd64-0.0.1.tgz
▶ tar xzf unfurl-linux-amd64-0.0.1.tgz
▶ sudo mv unfurl /usr/bin/

Verwendung

unfurl arbeitet mit URLs, die über stdin bereitgestellt werden; sie können aus einer Datei wie dieser stammen:

root@kitploit:~
▶ cat urls.txt
https://sub.example.com/users?id=123&name=Sam
https://sub.example.com/orgs?org=ExCo#about
http://example.net/about#contact

Domains

Du kannst die Domains aus den URLs mit dem Modus domains extrahieren:

root@kitploit:~
▶ cat urls.txt | unfurl domains
sub.example.com
sub.example.com
example.net

Wenn du keine doppelten Werte ausgeben möchtest, kannst du das Flag -u oder --unique verwenden:

root@kitploit:~
▶ cat urls.txt | unfurl --unique domains
sub.example.com
example.net

Das Flag -u/--unique funktioniert für alle Modi.

Apex-Domains

Du kannst den Apex-Teil der Domain extrahieren (z. B. das example.com in http://sub.example.com) mit dem Modus apexes:

root@kitploit:~
▶ cat urls.txt | unfurl -u apexes
example.com
example.net

Pfade

root@kitploit:~
▶ cat urls.txt | unfurl paths
/users
/orgs
/about

Query-String-Schlüssel

root@kitploit:~
▶ cat urls.txt | unfurl keys
id
name
org

Query-String-Werte

root@kitploit:~
▶ cat urls.txt | unfurl values
123
Sam
ExCo

Query-String-Schlüssel/Wert-Paare

root@kitploit:~
▶ cat urls.txt | unfurl keypairs
id=123
name=Sam
org=ExCo

JSON

root@kitploit:~
▶ cat urls.txt | unfurl json
{"scheme":"https","opaque":"","user":"","host":"sub.example.com","path":"/users","raw_path":"","raw_query":"id=123\u0026name=Sam","fragment":"","parameters":[{"key":"id","value":"123"},{"key":"name","value":"Sam"}],"url":"https://sub.example.com/users?id=123\u0026name=Sam","domain":"sub.example.com","subdomain":"sub","root":"example","tld":"com","apex":"example.com","port":"","extension":""}
{"scheme":"https","opaque":"","user":"","host":"sub.example.com","path":"/orgs","raw_path":"","raw_query":"org=ExCo","fragment":"about","parameters":[{"key":"org","value":"ExCo"}],"url":"https://sub.example.com/orgs?org=ExCo#about","domain":"sub.example.com","subdomain":"sub","root":"example","tld":"com","apex":"example.com","port":"","extension":""}
{"scheme":"http","opaque":"","user":"","host":"example.net","path":"/about","raw_path":"","raw_query":"","fragment":"contact","parameters":null,"url":"http://example.net/about#contact","domain":"example.net","subdomain":"","root":"example","tld":"net","apex":"example.net","port":"","extension":""}

Benutzerdefinierte Formate

Du kannst den Modus format verwenden, um ein benutzerdefiniertes Ausgabeformat festzulegen:

root@kitploit:~
▶ cat urls.txt | unfurl format %d%p
sub.example.com/users
sub.example.com/orgs
example.net/about

Die verfügbaren Formatdirektiven sind:

root@kitploit:~
%%  A literal percent character
%s  The request scheme (e.g. https)
%u  The user info (e.g. user:pass)
%d  The domain (e.g. sub.example.com)
%S  The subdomain (e.g. sub)
%r  The root of domain (e.g. example)
%t  The TLD (e.g. com)
%P  The port (e.g. 8080)
%p  The path (e.g. /users)
%e  The path's file extension (e.g. jpg, html)
%q  The raw query string (e.g. a=1&b=2)
%f  The page fragment (e.g. page-section)
%@  Inserts an @ if user info is specified
%:  Inserts a colon if a port is specified
%?  Inserts a question mark if a query string exists
%#  Inserts a hash if a fragment exists
%a  Authority (alias for %u%@%d%:%P)

Alle Zeichen, die keiner Formatdirektive entsprechen, bleiben unverändert:

root@kitploit:~
▶ cat urls.txt | unfurl -u format "%d (%s)"
sub.example.com (https)
example.net (http)

Beachte: Wenn eine URL die angeforderten Daten nicht enthält, erfolgt für diese URL keine Ausgabe:

root@kitploit:~
▶ echo http://example.com | unfurl format "%P"
▶ echo http://example.com:8080 | unfurl format "%P"
8080

Hilfe

root@kitploit:~
▶ unfurl -h
Format URLs provided on stdin

Usage:
  unfurl [OPTIONS] [MODE] [FORMATSTRING]

Options:
  -u, --unique   Only output unique values
  -v, --verbose  Verbose mode (output URL parse errors)

Modes:
  keys     Keys from the query string (one per line)
  values   Values from the query string (one per line)
  keypairs Key=value pairs from the query string (one per line)
  domains  The hostname (e.g. sub.example.com)
  paths    The request path (e.g. /users)
  apexes   The apex domain (e.g. example.com from sub.example.com)
  json     JSON encoded url/format objects
  format   Specify a custom format (see below)

Format Directives:
  %%  A literal percent character
  %s  The request scheme (e.g. https)
  %u  The user info (e.g. user:pass)
  %d  The domain (e.g. sub.example.com)
  %S  The subdomain (e.g. sub)
  %r  The root of domain (e.g. example)
  %t  The TLD (e.g. com)
  %P  The port (e.g. 8080)
  %p  The path (e.g. /users)
  %e  The path's file extension (e.g. jpg, html)
  %q  The raw query string (e.g. a=1&b=2)
  %f  The page fragment (e.g. page-section)
  %@  Inserts an @ if user info is specified
  %:  Inserts a colon if a port is specified
  %?  Inserts a question mark if a query string exists
  %#  Inserts a hash if a fragment exists
  %a  Authority (alias for %u%@%d%:%P)

Examples:
  cat urls.txt | unfurl keys
  cat urls.txt | unfurl format %s://%d%p?%q
Tool herunterladen