Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication not working with newer Dahua models (fw >= 3.x.x) #340

Open
fabioz23 opened this issue Mar 1, 2024 · 2 comments
Open

Authentication not working with newer Dahua models (fw >= 3.x.x) #340

fabioz23 opened this issue Mar 1, 2024 · 2 comments

Comments

@fabioz23
Copy link

fabioz23 commented Mar 1, 2024

Hi,

I've tried with a newer cam (DH-IPC-PFW3849S-A180-AS-PV) with fw ver V3.140.0000000.4.R, Build Date: 2023-11-22 and the auth process seems changed and fails.

I've compared an older webUI and this newer cam webUI and in fact the RPC2_Login and RPC2 calls and handshake are a little bit different. In the newer model there's some AES key received by cam and in the RPC2_Login there's an "opaque" token that in the previous version is absent.

I attach the browser recording of new Dahua fw.

Dahua-fw-v3.x.har.zip

Any idea on what changes are made in the auth process?

@fabioz23
Copy link
Author

Hi @rroller ,

do you've already seen this new auth handshake method?
If you prefer we can take a look deeper, cab be the "opaque" token used for a 2nd hashing phase?

@pamodeo-icb
Copy link

pamodeo-icb commented Mar 26, 2024

Hi @fabioz23,

I experienced a similar problem with another camera (DH-IPC-HDW3549H-AS-PV), and temporarily fixed it by restoring the "Compatibility" Authentication method, see #344 .

However, two DH-IPC-PFW3849S-A180-AS-PV cameras with Firmware: 3.140.0000000.10.R,build:2024-01-16 were installed flawlessly (at least, as for access and basic functions, since I just started working on their integration in HA).

With DH-IPC-PFW3849S-A180-AS-PV cameras I experienced another problem, not directly related to HA integration. While installing/setting them using a Dahua NVR, the firmware was only updated to the most recent version for this model (3.140.0000000.10.R,build:2024-01-16) on the first (out of four) installed cameras. I had to manually download and update it for the other three, although model and starting kernel versions were the same for all four cameras.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants