01304 827609 info@use-ip.co.uk Find us

Unbrick/Factory Reset Tool for Hikvision Cameras and NVR’s using Hikvision_tftpd3.py

Hyperway

Member
Messages
9
Points
1
Unbrick/Factory Reset Tool for Hikvision Cameras and NVR’s using Hikvision_tftpd3.py

✅ Prerequisites

Downloads Required:




Hardware Setup

  • 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.

Setup Instructions

  1. 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
  2. Install Python
    • Run the Python installer.
    • ✅ Ensure you check “Add Python to PATH” during installation.
View attachment 12927
  1. 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
View attachment 12928
  1. (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.

▶️ Running the Tool

  1. Open Command Prompt.
  2. Navigate to your working directory:
  3. Run the start.sh script to initiate the tool, by typing start.sh
  4. Launch the Python TFTP server: typing hikvision_tftpd3.py
View attachment 12929


Flashing the Firmware

  1. 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.
  2. Monitor the Output
    • You should see a prompt indicating the connection.
View attachment 12930

The firmware will begin uploading (no 32MB limit like older TFTP tools).
  • After upload, wait for the message:
    “Unexpected handshake...”
    ✅ This indicates success.
View attachment 12932

  1. 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.
 
Back
Top