Hikvision G1 5.5+ firmware Exploring the Cam & attempting unlock

rearanger

Getting the hang of it
Joined
Feb 10, 2016
Messages
224
Reaction score
96
Location
Scottish Borders
yes this is leechers hik_repack and i did not modify it. it contains all keys for g1 platform but i have the sourcecode to add new keys once i find or get them. maybe i have just a newer version. i just started for fun with this some days ago and talked with him
i was hoping someone would recode and update then release into public domain. i have leecher's original source and a compiled version that does many of the hik cams.
 

rearanger

Getting the hang of it
Joined
Feb 10, 2016
Messages
224
Reaction score
96
Location
Scottish Borders
you can modify the web gui to call the original minisys unprotected update routine. And install the unprotected update from the sdcard.
 
Joined
Jan 18, 2021
Messages
11
Reaction score
6
Location
dresden
@rearanger yes , but that means that you need to modifiy davinci again. davinci itself contains the update routine and is the webserver and i patched it to ignore the rsa signature if its invalid (you still see the error, but it will still work. if you talk about something different, just tell me
 

rearanger

Getting the hang of it
Joined
Feb 10, 2016
Messages
224
Reaction score
96
Location
Scottish Borders
minisys also has an update routine. If i remember correctly you can utilize the update routine that minsys uses while the cam is live. From a modified web gui or from the shell prompt. You still need to pack the new digicap.dav(without key)

i could be wrong its been a while since i messed with the cam lol

(i remember i needed a method to update a modified firmware without tftp)
 
Joined
Jan 18, 2021
Messages
11
Reaction score
6
Location
dresden
but this isnt neccessary if everything is already modifed you can flash it anyway. he standard minisys has a update routing. but it has a rsa check too. so whatever you want do, you need to modify it.
the only way i know is booting the modified minishell and flashing with tftp (format/update). if the modified variant is one time flashed you are safe
 
Joined
Jun 21, 2021
Messages
2
Reaction score
0
Location
Us
Hi.Does any one have IPC_G1_EN_STD_5.6.5_200316 unpacked? Maybe someone can send the unpacked filesystem?
 
Joined
Jan 18, 2021
Messages
11
Reaction score
6
Location
dresden
yes i have it unpacked and i also modified it to fix the nas storage issue and to disable the certificate check. i also enable ssh and console access at all. and i flashed 6 cameras already with it
 
Joined
Jun 21, 2021
Messages
2
Reaction score
0
Location
Us
yes i have it unpacked and i also modified it to fix the nas storage issue and to disable the certificate check. i also enable ssh and console access at all. and i flashed 6 cameras already with it
Sir can you please help or maybe just put me in right way on how to unpack this. I PM you
 

watchful_ip

Pulling my weight
Joined
Nov 24, 2019
Messages
251
Reaction score
226
Location
london
Sir can you please help or maybe just put me in right way on how to unpack this. I PM you
Are you sure you are in the US? Without trying to cause offense, your writing style doesn't match someone living there. I could be wrong of course, but also a US person would put location as US not Us.
 
Joined
Jan 18, 2021
Messages
11
Reaction score
6
Location
dresden
the author of the unpack tool who sended me the material which allowed me todo the modifications does not want to publish his work officially since some resellers try to buy cheap chinese variants to sell them rebranded for higher prices with international firmwares which is not good for resident companies and it will also lead to even more increased security measures by hikvision. the typical writing style i just know from asian countries gives me a warning here. in addition the unpack tool will not help you in any way since you need to break several security checks. so reverse engineering skills in assembly language are required.
 

sait

n3wb
Joined
Sep 23, 2019
Messages
1
Reaction score
0
Location
turkey
ROLLBACK (Use leechers hik_repack v0.10 or higher)
Test was done on a cam running mini system and active 5.6.1 firmware

./hik_repack10 -u digicap554.dav en (dump 5.5.4 digicap.dav to the "en" directory)
./hik_repack10 -r digicap554.dav en newdav l=1,v=05060001 (repack 5.5.4 digicap.dav to newdav using the files in "en" with language flag 1 and v 5.6.1 version number)

rename newdav to digicap.dav

Must use TTL and montecrypto's minisystem
start putty only
CTRL + U ON BOOT
type "update"
type "format"
setup tftp on PC
Type "update"

let it boot and enjoy.

I have only gone back one version. I am not sure what will happen if you attempt to rollback too far. The cam I rolled back had a manufacture date of 04/2018 and shipping firmware of 5.5.51
hi dear Rearanger
can you share the hik_repack10 as zip file with me?
 

mrpeenut24

n3wb
Joined
Jun 7, 2019
Messages
10
Reaction score
11
Location
Everywhere
Thanks @rearanger and @montecrypto for the mImage! Got some new G1 cube cams (DS-2CD2455FWD-IW) and got root/ash in under a day. The updated mImage worked on my uboot version 3.1.6-540659. Can someone point me in the right direction for rebuilding the firmware with the newer busybox posted? I've scp'd it in, but it disappears upon reboot, hoping for something longer term. Is it possible to repack it into digicap.dav?
 

rearanger

Getting the hang of it
Joined
Feb 10, 2016
Messages
224
Reaction score
96
Location
Scottish Borders
Thanks @rearanger and @montecrypto for the mImage! Got some new G1 cube cams (DS-2CD2455FWD-IW) and got root/ash in under a day. The updated mImage worked on my uboot version 3.1.6-540659. Can someone point me in the right direction for rebuilding the firmware with the newer busybox posted? I've scp'd it in, but it disappears upon reboot, hoping for something longer term. Is it possible to repack it into digicap.dav?
just use a script to copy it across or install from the sd card. think there is an old montecrypto repacked digicap.dav in the forum.
 

mrpeenut24

n3wb
Joined
Jun 7, 2019
Messages
10
Reaction score
11
Location
Everywhere
:facepalm: didn't even think of the SD card. I should hang around here more often. With the executable binaries on that, I'm not sure I even need to bother rebuilding. Thanks.
 

mrpeenut24

n3wb
Joined
Jun 7, 2019
Messages
10
Reaction score
11
Location
Everywhere
I ended up rebuilding the digicap.dav anyway with this modified initrun.sh:

Bash:
if [ -f /mnt/mmc01/busyboxG1-2 ] ; then
    cp /mnt/mmc01/busyboxG1-2 /bin/busybox2
fi
if [ -f /bin/busybox2 ] ; then
    for a in `/bin/busybox2 --list`; do
        if [ -f /bin/$a ] ; then
            /bin/busybox2 rm /bin/$a
        fi
        /bin/busybox2 ln -s /bin/busybox2 /bin/$a
    done
fi
sed -i 's/psh/sh/g' /etc/passwd
 
Top