Basic cam info without logging in?

cdone

n3wb
May 19, 2021
6
5
Seattle, WA
I'm certain I've seen it on this forum before, but can't find it:

Is there a way to grab the camera info (model, s/n, fw version, etc.) from the web API (or any other easy way) without logging in? I thought there was a URL that showed all that without having to authenticate, but I can't find it now.

Also, I was curious if anyone has documentation of the Dahua discovery protocol here. I just did a wireshark capture and it looks interesting, and probably has everything (or almost everything) I'm looking for, but all over some UDP port. I'm considering trying to re-implement the discovery tool as a powershell script, just for fun. There's probably a lot more that could be done after that, but time for "fun" projects (vs. work projects and household/family projects) is limited.
 
In the attached API at bottom I found these. They all (and likely more variations) work with my Amcrest and Dahua cams BUT....
I cannot get them to work with user "anonymous", only with user/pass as in these URL's:

Code:
4.6.11 Get Hardware Version
http://username:password@Camera-IP/cgi-bin/magicBox.cgi?action=getHardwareVersion

4.6.12 Get Serial Number of Device
http://username:password@Camera-IP/cgi-bin/magicBox.cgi?action=getSerialNo

4.6.16 Get Software Information
http://username:password@Camera-IP/cgi-bin/magicBox.cgi?action=getSoftwareVersion
 

Attachments

  • Like
Reactions: VorlonFrog
I'm certain I've seen it on this forum before, but can't find it:

Is there a way to grab the camera info (model, s/n, fw version, etc.) from the web API (or any other easy way) without logging in? I thought there was a URL that showed all that without having to authenticate, but I can't find it now.

Also, I was curious if anyone has documentation of the Dahua discovery protocol here. I just did a wireshark capture and it looks interesting, and probably has everything (or almost everything) I'm looking for, but all over some UDP port. I'm considering trying to re-implement the discovery tool as a powershell script, just for fun. There's probably a lot more that could be done after that, but time for "fun" projects (vs. work projects and household/family projects) is limited.

The Dahua configtool will scan the network and display info about the Dahua devices it finds. From the main screen you can select the cameras you want the info on and export the info to a spreadsheet.
1678314952532.png