
يفحص النطاقات المنتهية صلاحيتها من حيث التصنيف/السمعة وسجل Archive.org لتحديد المرشحين الجيدين لنطاقات التصيد و C2
المؤلفان جو فيست (@joevest) وأندرو تشايلز (@andrewchiles)
اختيار اسم النطاق هو جانب مهم من التحضير لاختبارات الاختراق وخاصة مهام الفريق الأحمر. عادةً، يمكن شراء النطاقات التي استُخدمت سابقًا لأغراض غير ضارة وتم تصنيفها بشكل صحيح ببضعة دولارات فقط. يمكن لمثل هذه النطاقات أن تسمح للفريق بتجاوز عوامل تصفية الويب القائمة على السمعة وقيود الخروج من الشبكة لمهام التصيد والقيادة والتحكم.
تمت كتابة هذه الأداة المبنية على بايثون للاستعلام بسرعة عن محرك بحث Expireddomains.net عن النطاقات المنتهية/المتاحة التي لها سجل استخدام سابق. ثم تقوم اختياريًا بالاستعلام عن سمعة النطاق مقابل خدمات مثل Symantec Site Review (BlueCoat) وIBM X-Force وCisco Talos. المخرجات الرئيسية للأداة هي تقرير بتنسيق HTML على شكل جدول مع طابع زمني.
راجع سجل التغييرات للحصول على تاريخ التحديثات وملاحظات الإصدار!
تثبيت متطلبات بايثون
pip3 install -r requirements.txt
اختياري - تثبيت تبعيات دعم OCR الإضافية
دبيان/أوبونتو: apt-get install tesseract-ocr python3-pil
ماك أو إس إكس: brew install tesseract
pipenv --python 3.7
pipenv install
اختياري - تثبيت تبعيات دعم OCR الإضافية
apt-get install tesseract-ocr python3-pilبناء الصورة
docker build -t domainhunter .
تشغيلها مع وسائطك
docker run -it domainhunter [args]
usage: domainhunter.py [-h] [-a] [-k KEYWORD] [-c] [-f FILENAME] [--ocr]
[-r MAXRESULTS] [-s SINGLE] [-t {0,1,2,3,4,5}]
[-w MAXWIDTH] [-V]
Finds expired domains, domain categorization, and Archive.org history to determine good candidates for C2 and phishing domains
optional arguments:
-h, --help show this help message and exit
-a, --alexa Filter results to Alexa listings
-k KEYWORD, --keyword KEYWORD
Keyword used to refine search results
-c, --check Perform domain reputation checks
-f FILENAME, --filename FILENAME
Specify input file of line delimited domain names to
check
--ocr Perform OCR on CAPTCHAs when challenged
-r MAXRESULTS, --maxresults MAXRESULTS
Number of results to return when querying latest
expired/deleted domains
-s SINGLE, --single SINGLE
Performs detailed reputation checks against a single
domain name/IP.
-t {0,1,2,3,4,5}, --timing {0,1,2,3,4,5}
Modifies request timing to avoid CAPTCHAs. Slowest(0)
= 90-120 seconds, Default(3) = 10-20 seconds,
Fastest(5) = no delay
-w MAXWIDTH, --maxwidth MAXWIDTH
Width of text table
-V, --version show program's version number and exit
Examples:
./domainhunter.py -k apples -c --ocr -t5
./domainhunter.py --check --ocr -t3
./domainhunter.py --single mydomain.com
./domainhunter.py --keyword tech --check --ocr --timing 5 --alexa
./domaihunter.py --filename inputlist.txt --ocr --timing 5
استخدم الإعدادات الافتراضية للتحقق من أحدث 100 نطاق وفحص السمعة
python3 ./domainhunter.py
ابحث عن أحدث 1000 نطاق منتهٍ/محذوف، ولكن لا تفحص السمعة
python3 ./domainhunter.py -r 1000
قم بإجراء جميع فحوصات السمعة لنطاق واحد
python3 ./domainhunter.py -s mydomain.com
[*] Downloading malware domain list from http://mirror1.malwaredomains.com/files/justdomains
[*] Fetching domain reputation for: mydomain.com
[*] BlueCoat: mydomain.com
[+] mydomain.com: Technology/Internet
[*] IBM xForce: mydomain.com
[+] mydomain.com: Communication Services, Software as a Service, Cloud, (Score: 1)
[*] Cisco Talos: mydomain.com
[+] mydomain.com: Web Hosting (Score: Neutral)
قم بإجراء جميع فحوصات السمعة لقائمة من النطاقات بأقصى سرعة مع OCR للكابتشا
python3 ./domainhunter.py -f <domainslist.txt> -t 5 --ocr
ابحث عن النطاقات المتاحة التي تحتوي على الكلمة المفتاحية "dog"، بحد أقصى 25 نتيجة، وافحص السمعة
python3 ./domainhunter.py -k dog -r 25 -c
____ ___ __ __ _ ___ _ _ _ _ _ _ _ _ _____ _____ ____
| _ \ / _ \| \/ | / \ |_ _| \ | | | | | | | | | \ | |_ _| ____| _ \
| | | | | | | |\/| | / _ \ | || \| | | |_| | | | | \| | | | | _| | |_) |
| |_| | |_| | | | |/ ___ \ | || |\ | | _ | |_| | |\ | | | | |___| _ <
|____/ \___/|_| |_/_/ \_\___|_| \_| |_| |_|\___/|_| \_| |_| |_____|_| \_\
Expired Domains Reputation Checker
Authors: @joevest and @andrewchiles
DISCLAIMER: This is for educational purposes only!
It is designed to promote education and the improvement of computer/cyber security.
The authors or employers are not liable for any illegal act or misuse performed by any user of this tool.
If you plan to use this content for illegal purpose, don't. Have a nice day :)
[*] Downloading malware domain list from http://mirror1.malwaredomains.com/files/justdomains
[*] Fetching expired or deleted domains containing "dog"
[*] https://www.expireddomains.net/domain-name-search/?q=dog
[*] Performing domain reputation checks for 8 domains.
[*] BlueCoat: doginmysuitcase.com
[+] doginmysuitcase.com: Travel
[*] IBM xForce: doginmysuitcase.com
[+] doginmysuitcase.com: Not found.
[*] Cisco Talos: doginmysuitcase.com
[+] doginmysuitcase.com: Uncategorized