Skip to content
KitploitKITPLOIT
ИнструментыБлог
Отправить
ИнструментыБлог
Отправить

Инструменты для хакинга, пентеста и кибербезопасности — ваш арсенал защиты!

Kitploit — это каталог инструментов для хакинга, кибербезопасности и пентестинга. Находите последние обновления проектов для поиска уязвимостей, анализа систем, автоматизации тестирования и усиления вашей безопасности.

··Ленты·Контакты·Конфиденциальность·© 2026 Kitploit

Каталог инструментов

Категории

Все категории
Loading categories
unfurl — Извлекайте части URL-адресов, поступивших через stdin | Kitploit
Инструменты/GitHubGitHub/tomnomnom/unfurl
Утилиты общего назначенияРазведкаСбор информации
GitHubtomnomnom/unfurl

unfurl

Извлекайте части URL-адресов, поступивших через stdin

Репозиторий
1.3k1363 лет назадПроверено Kitploit

Популярное

Смотреть все →

Откройте для себя самые используемые инструменты нашего сообщества.

Изучить все инструменты

Просмотрите нашу коллекцию инструментов

Смотреть все инструменты →
Поделиться

unfurl

Извлекайте фрагменты URL-адресов, переданных через stdin

Установка

Если у вас установлен и настроен Go:

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

В противном случае скачайте последний бинарный файл для вашей платформы, распакуйте его и переместите в каталог из вашего $PATH (например, /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/

Использование

unfurl работает с URL-адресами, переданными через stdin; они могут поступать из файла, подобного этому:

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

Домены

Вы можете извлечь домены из URL-адресов с помощью режима domains:

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

Если вы не хотите выводить повторяющиеся значения, используйте флаг -u или --unique:

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

Флаг -u/--unique работает во всех режимах.

Apex-домены

Вы можете извлечь apex-часть домена (например, example.com из http://sub.example.com) с помощью режима apexes:

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

Пути

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

Ключи строки запроса

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

Значения строки запроса

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

Пары ключ/значение строки запроса

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":""}

Пользовательские форматы

Вы можете использовать режим format, чтобы указать пользовательский формат вывода:

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

Доступные директивы формата:

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)

Любые символы, не соответствующие директиве формата, остаются без изменений:

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

Обратите внимание: если URL-адрес не содержит запрашиваемых данных, вывод для этого URL-адреса будет пустым:

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

Справка

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
Скачать инструмент