Hello, everyone!
I have many cameras in my local network that are hacked - pirate users have been added to them.
Downloaded the DAHUA API file. Read it.
Found this command:
http://<ip>/cgi-bin/sysService.cgi?action=getUserInfoAll
If I run this in Internet Explorer for one my camera (192.168.1.85) the camera asks me for login and password.
I enter this and get a response in the form of a web page.
I see all users of this camera.
And all Ok!
For example, I found a user "config"
Use:
Config Tool - CGI Protocol
Select all cameras in the network by marking them
Them use:
Batch CGI Commands
And use this command to delete the user "config":
http://<ip>/cgi-bin/userManager.cgi?action=deleteUser&name=config
But.. many, many cameras..
And find many different bad users in different cameras
How to bulk get users lists from all local cameras to text file?
In "Config Tool - CGI Protocol" found "Table Config"
It uses an Excel file in which the rows are filled in according to a template.
Fill it with a command:
IP_Address Port Username Password /cgi-bin/userManager.cgi?action=getUserInfoAll 0
Start execution and get "SUCCESSED" in result row
Maybe someone knows how to get a list of all the names of all the cameras on my local network?
I have many cameras in my local network that are hacked - pirate users have been added to them.
Downloaded the DAHUA API file. Read it.
Found this command:
http://<ip>/cgi-bin/sysService.cgi?action=getUserInfoAll
If I run this in Internet Explorer for one my camera (192.168.1.85) the camera asks me for login and password.
I enter this and get a response in the form of a web page.
I see all users of this camera.
And all Ok!
For example, I found a user "config"
Use:
Config Tool - CGI Protocol
Select all cameras in the network by marking them
Them use:
Batch CGI Commands
And use this command to delete the user "config":
http://<ip>/cgi-bin/userManager.cgi?action=deleteUser&name=config
But.. many, many cameras..
And find many different bad users in different cameras
How to bulk get users lists from all local cameras to text file?
In "Config Tool - CGI Protocol" found "Table Config"
It uses an Excel file in which the rows are filled in according to a template.
Fill it with a command:
IP_Address Port Username Password /cgi-bin/userManager.cgi?action=getUserInfoAll 0
Start execution and get "SUCCESSED" in result row
Maybe someone knows how to get a list of all the names of all the cameras on my local network?