Unbrick/Factory Reset Tool for Hikvision Cameras and NVR’s using Hikvision_tftpd3.py
Prerequisites
Downloads Required:
Hardware Setup
Setup Instructions
Running the Tool
Flashing the Firmware
The firmware will begin uploading (no 32MB limit like older TFTP tools).
Downloads Required:
- Hikvision_tftpd3.py
- hikvision-tftpd_python3/hikvision_tftpd3.py at master · sbeehre/hikvision-tftpd_python3
- TFTPServ
- TFTPServ
- Start.sh
- hikvision-tftpd_python3/start.sh at master · sbeehre/hikvision-tftpd_python3
- Python
- Download Python | Python.org or https://www.python.org/ftp/python/3.13.4/python-3.13.4-amd64.exe
- Firmware File:
Download the correct digicap.dav firmware file for your specific camera or NVR from the Hikvision UK Portal.
Triple-check that you have the correct firmware version.
- Connect an Ethernet cable from your PC/laptop directly to the camera (powered via 12V or PoE switch) or to the NVR’s Ethernet port.
- Do not connect to the wider network or internet.
- Create a Working Folder
Create a folder, e.g., C:\TFTPPH, and place the following files inside:- TFTPServ files (extracted)
- start.sh
- hikvision_tftpd3.py
- digicap.dav
- Install Python
- Run the Python installer.
Ensure you check “Add Python to PATH” during installation.
- Set Static IP Address
- Set your PC’s IP address to match what the device expects:
- Older devices: 192.0.0.128
- Newer devices: 192.168.1.128
- Subnet mask: 255.255.255.0
- Set your PC’s IP address to match what the device expects:
- (Optional) Modify IP in Python Script
If your device expects an IP other than 192.0.0.128, edit hikvision_tftpd3.py:- Right-click > Edit with IDLE (installed with Python)
- Search for the IP address “192” (only one instance) and change it to match your setup.
- Save the file.
- Open Command Prompt.
- Navigate to your working directory:
- Run the start.sh script to initiate the tool, by typing start.sh
- Launch the Python TFTP server: typing hikvision_tftpd3.py
- Restart the Device
- Power cycle the camera (unplug/replug power or Ethernet if PoE) or turn off/on the NVR.
- The device will enter boot mode and attempt to connect to the TFTP server.
- Monitor the Output
- You should see a prompt indicating the connection.
The firmware will begin uploading (no 32MB limit like older TFTP tools).
- After upload, wait for the message:
“Unexpected handshake...”
This indicates success.
- Final Steps
- Close the Command Prompt.
- Power off the device and wait a minute or two.
- Use SADP Tool or a browser to access the device’s Web GUI and complete setup.