Skip to content
KitploitKITPLOIT
أدواتالمدونة
إرسال
أدواتالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

··الخلاصات·اتصال·الخصوصية·© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
unfurl — استخراج أجزاء من عناوين URL المقدّمة عبر stdin | Kitploit
أدوات/GitHubGitHub/tomnomnom/unfurl
أدوات عامةالاستطلاعجمع المعلومات
GitHubtomnomnom/unfurl

unfurl

استخراج أجزاء من عناوين URL المقدّمة عبر stdin

عرض المستودع
1.3k136منذ 3 سنواتتمت المراجعة من قبل 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

النطاقات (Domains)

يمكنك استخراج النطاقات من عناوين 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 Domains)

يمكنك استخراج الجزء القمّي من النطاق (مثل example.com في http://sub.example.com) باستخدام وضع apexes:

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

المسارات (Paths)

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 لا يتضمن البيانات المطلوبة، فلن يكون هناك أي إخراج لذلك العنوان:

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
تنزيل الأداة