
أداة مبنية على Go لمسح صفحات الويب وملفات JavaScript لاكتشاف النطاقات الفرعية المخفية والأسرار، مع إمكانية الزحف الاختياري وتحليل الوكيل في الوقت الفعلي لأعمال مكافآت الثغرات واختبار الاختراق.

JSubFinder هي أداة مكتوبة بلغة Go للبحث في صفحات الويب وجافا سكريبت عن النطاقات الفرعية المخفية والأسرار في عنوان URL المحدد. تم تطويرها مع مراعاة صيادي BugBounty، تستفيد JSubFinder من أداء Go المذهل مما يسمح لها باستخدام مجموعات بيانات كبيرة وسهولة الربط مع أدوات أخرى.

قم بتثبيت التطبيق وتنزيل التواقيع اللازمة للعثور على الأسرار
باستخدام GO:
go install github.com/ThreatUnkown/jsubfinder@latest
wget https://raw.githubusercontent.com/ThreatUnkown/jsubfinder/master/.jsf_signatures.yaml && mv .jsf_signatures.yaml ~/.jsf_signatures.yaml
أو
ابحث في عناوين URL المعطاة عن النطاقات الفرعية والأسرار
$ jsubfinder search -h
Execute the command specified
Usage:
JSubFinder search [flags]
Flags:
-c, --crawl Enable crawling
-g, --greedy Check all files for URL's not just Javascript
-h, --help help for search
-f, --inputFile string File containing domains
-t, --threads int Ammount of threads to be used (default 5)
-u, --url strings Url to check
Global Flags:
-d, --debug Enable debug mode. Logs are stored in log.info
-K, --nossl Skip SSL cert verification (default true)
-o, --outputFile string name/location to store the file
-s, --secrets Check results for secrets e.g api keys
--sig string Location of signatures for finding secrets
-S, --silent Disable printing to the console
أمثلة (النتائج هي نفسها في هذه الحالة):
$ jsubfinder search -u www.google.com
$ jsubfinder search -f file.txt
$ echo www.google.com | jsubfinder search
$ echo www.google.com | httpx --silent | jsubfinder search$
apis.google.com
ogs.google.com
store.google.com
mail.google.com
accounts.google.com
www.google.com
policies.google.com
support.google.com
adservice.google.com
play.google.com
ملاحظة: --secrets="" سيحفظ نتائج الأسرار في ملف secrets.txt
$ echo www.youtube.com | jsubfinder search --secrets=""
www.youtube.com
youtubei.youtube.com
payments.youtube.com
2Fwww.youtube.com
252Fwww.youtube.com
m.youtube.com
tv.youtube.com
music.youtube.com
creatoracademy.youtube.com
artists.youtube.com
Google Cloud API Key <redacted> found in content of https://www.youtube.com
Google Cloud API Key <redacted> found in content of https://www.youtube.com
Google Cloud API Key <redacted> found in content of https://www.youtube.com
Google Cloud API Key <redacted> found in content of https://www.youtube.com
Google Cloud API Key <redacted> found in content of https://www.youtube.com
Google Cloud API Key <redacted> found in content of https://www.youtube.com
$ echo www.google.com | jsubfinder search -crawl -s "google_secrets.txt" -S -o jsf_google.txt -t 10 -g
-crawl استخدام الزاحف الافتراضي لزحف الصفحات بحثًا عن عناوين URL أخرى لتحليلها-s تمكين JSubFinder من البحث عن الأسرار-S إسكات الإخراج إلى وحدة التحكم-o <file> حفظ الإخراج في الملف المحدد-t 10 استخدام 10 خيوط-g البحث في كل عنوان URL عن JS، حتى تلك التي لا نعتقد أنها تحتوي على أي منهايتيح الوكيل HTTP العلوي مع دعم TLS MITM. يتيح لك ذلك:
$ JSubFinder proxy -h
Execute the command specified
Usage:
JSubFinder proxy [flags]
Flags:
-h, --help help for proxy
-p, --port int Port for the proxy to listen on (default 8444)
--scope strings Url's in scope seperated by commas. e.g www.google.com,www.netflix.com
-u, --upstream-proxy string Adress of upsteam proxy e.g http://127.0.0.1:8888 (default "http://127.0.0.1:8888")
Global Flags:
-d, --debug Enable debug mode. Logs are stored in log.info
-K, --nossl Skip SSL cert verification (default true)
-o, --outputFile string name/location to store the file
-s, --secrets Check results for secrets e.g api keys
--sig string Location of signatures for finding secrets
-S, --silent Disable printing to the console
$ jsubfinder proxy
Proxy started on :8444
Subdomain: out.reddit.com
Subdomain: www.reddit.com
Subdomain: 2Fwww.reddit.com
Subdomain: alb.reddit.com
Subdomain: about.reddit.com
سيقوم Burp Suite الآن بتوجيه كل حركة المرور التي تمر عبره إلى JSubFinder. سيقوم JSubFinder باسترداد الاستجابة، وإعادتها إلى burp، وفي خيط آخر سيبحث عن النطاقات الفرعية والأسرار.
proxify -output logsjsubfinder proxy -u http://127.0.0.1:8443replay -output logs -burp-addr http://127.0.0.1:8444ببساطة، قم بتشغيل JSubFinder في وضع الوكيل على خادم آخر مثل 192.168.1.2. اتبع خطوات الوكيل أعلاه ولكن اضبط الوكيل العلوي لتطبيقاتك على 192.168.1.2:8443
$ jsubfinder proxy --scope www.reddit.com -p 8081 -S -o jsf_reddit.txt
--scope يقيد JSubFinder بحيث يحلل فقط الاستجابات من www.reddit.com-p المنفذ الذي يعمل عليه خادم وكيل JSubFinder-S إسكات الإخراج إلى وحدة التحكم/الإخراج القياسي-o <file> إخراج الأمثلة إلى هذا الملف