
CVE-2018-9995_Batch_scanning_exp
Batch-Scan-Skript für DVR-Geräte mit der Schwachstelle CVE-2018-9995
python3, ubuntu
user@ubuntu:~$ sudo pip3 install grequests
user@ubuntu:~$ sudo pip3 install tableprint
Speichern Sie die zu scannenden Geräte im Format "ip:port" in der ersten Spalte einer CSV-Datei.
The equipment to be scanned is stored in "ip:port" form in the first column of CSV file.
csv_file = csv.reader(open('66b2f74b75457f73347f6a840bebc339.csv','r'))
Ändern Sie den obigen Pfad der Gerätelistendatei auf das aktuelle Arbeitsverzeichnis.
Change the list of device list files to the current directory.
user@ubuntu:~$ sudo python3 CVE-2018-9995_Batch_scanning_exp.py
Programm ausführen
run
-----------------------------------501-------------------------------------------------------------
-----------------------------------501-------------------------------------------------------------
-----------------------------------501-------------------------------------------------------------
-----------------------------------NO.1-------------------------------------------------------------
[+] Users List: 1
[+] Users List: 1
[+] Users List: 1
[+] Users List: 1
[+] Users List: 1
[+] Users List: 1
[+] Users List: 2
[+] Users List: 1
Alle 501 IPs wird einmal ausgegeben, "NO" gibt die Runde an, "[+] Users List:" zeigt die Anzahl der Benutzer auf dem Gerät, das die Schwachstelle erfolgreich ausgenutzt hat.
Every 501 IP output is once, "NO" indicates the number of rounds, and "[+] Users List:" indicates the number of users contained in the device that successfully exploited the vulnerability.
Ausgabe erfolgt als CSV-Datei pass.csv
output pass.csv
--------+-----+----+-------+----.......
ip:port |uid1 |pwd1 |role1 |uid2.......
--------+-----+----+-------+----.......
| | | | .......
| | | | .......
1. Behebt das Problem, dass einige Geräte einen 401-Fehler zurückgeben und keine Informationen liefern. (Solved the problem that part of the equipment 401 error can not return information.)
2. Behebt das Problem, dass einige Geräte JSON in falschem Format zurückgeben. (The problem of incorrect JSON format for some devices is solved.)
3. Verwendung asynchroner HTTP-Anfragen, wodurch die Scaneffizienz erheblich gesteigert wird. (Using asynchronous HTTP request greatly improves scanning efficiency.)
1. Laut Ergebnissen von Suchmaschinen für Webgeräte gibt es etwa 50000 Geräte, die von dieser Schwachstelle betroffen sind. Derzeit kann jedes Gerät, das auf Verbindungen reagiert, die Schwachstelle ausnutzen, um Klartext-Anmeldeinformationen zu erhalten.
1.There are about 50000 devices designed for this vulnerability from the results of the search engine query for web equipment. At present, any device with connection response can take advantage of the vulnerability to obtain information on the login account.
2. Beim Scannen innerhalb der chinesischen Firewall antworten nur etwa 6000 Geräte.
2.There are only more than 6000 devices in response to the scan in china
3. Der Schaden durch die Ausnutzung der Schwachstelle ist nicht so schwerwiegend wie erwartet. Es handelt sich lediglich um Zugriffsrechte auf den Videostrom. Die weitere Erlangung der Kontrolle über das Gerätesystem muss noch untersucht werden.
3.The harm of vulnerability is not as serious as expected. It is only the right of access to the screen. Further access to control of the device system remains to be studied.
4. Es gibt wirklich viele schwache Passwörter – 80% der Scanergebnisse verwenden schwache Passwörter.
4.There are many weak passwords, and 80% of the scan results use weak passwords.
Die Liste der anfälligen Geräte bekommt man selbst heraus – mit etwas Nachdenken ist es leicht zu schaffen. Viel Spaß! XD have fun! XD