Source firmware:
----------------
IPC_R6_EN_STD_5.5.53_180730 (Update 26.04.2019)
Changes in repacked firmware:
-----------------------------
* Full-featured busybox v1.28.4 - patched with integraded psh
* PSH (protected shell) is now part of busybox (ash)
* Dropbearmulti v2018.76
* mount.cifs added
* mount.nfs(4) added
* Kernel fs modules added (ext2, ext3, ext4) - see below why
* sqlite3 added (for modifications in the config)
* ldd added
* SSH access enabled (via sqlite3 - tested and working)
* Dropbear host key persists between reboots
* Customizable init script
* Customizable late_init script
* Customizable fstab
* Customizable profile
* Customizable crontab
Also, no Hikvision backdoor in this one. Only 5.4.4 and earlier versions contain the backdoor.
IPC_R6_EN_STD_5.5.53_180730
Thank you to @montecrypto for his hikpack and great ideas. I don't have his knowledge, so I had to go on some points another way (e.g. I can't patch davinci for ssh access enabled or modify header_30 file to add additional files)...
Why kernel modules (ext2, ext3, ext4)?
I have a DS-2CD2442FWD-IW with integraded SD slot. But this SD is formated in vfat, which is useless for me with the planned "opt-ware", means I cannot make links. So I made a binary image file in ext2, which I can mount if I have the kernel module loaded (e.g. use command "modprobe ext2").
The history of making this patch:
With the helping post from here I compiled the suitable toolchain (its an armv7) and the latest dropbear with scp.
Maybe I make a repository, so apt-get for everyone...
If someone need's it, below the links to the toolchains, and here the link to "convert-to-echo".
If you don't want to reflash the firmware, you can "echo" the contend of the file to "/bin", then "chmod 755 scp" and you have a working scp. But don't use putty, it is too fast, I used ZOC7 for this. Remember, after a reboot this file is gone.
If someone is interested on the r6 installed files and toolchain, here some data...
r6:
Linux 3.10.73+
Glibc (linaro) 2.18-2013.09
Dropbear 2016.74
Toolchain, build with crosstool-ng (1.21.0), download here:
Linux 3.10.79
Binutils 2.25
glibc (linaro) 2.20-2014.11
GCC 5.1.0 (needs LDFLAGS "-static-libstdc++" to compile, otherwise some apps not running)
for target little endian, hard-float compiled on virtualbox with Debian Jessi with GCC 4.9.2-10+deb8u1
Toolchain, build with crosstool-ng (1.21.0), download here:
Linux 3.10.79
Binutils 2.25
glibc (linaro) 2.20-2014.11
GCC 4.8.3 (run apps linked to libstdc++.so.6 directly)
for target little endian, hard-float compiled on virtualbox with Debian Jessi with GCC 4.9.2-10+deb8u1
Regards
MCPat
----------------
IPC_R6_EN_STD_5.5.53_180730 (Update 26.04.2019)
Changes in repacked firmware:
-----------------------------
* Full-featured busybox v1.28.4 - patched with integraded psh
* PSH (protected shell) is now part of busybox (ash)
* Dropbearmulti v2018.76
* mount.cifs added
* mount.nfs(4) added
* Kernel fs modules added (ext2, ext3, ext4) - see below why
* sqlite3 added (for modifications in the config)
* ldd added
* SSH access enabled (via sqlite3 - tested and working)
* Dropbear host key persists between reboots
* Customizable init script
* Customizable late_init script
* Customizable fstab
* Customizable profile
* Customizable crontab
Also, no Hikvision backdoor in this one. Only 5.4.4 and earlier versions contain the backdoor.
IPC_R6_EN_STD_5.5.53_180730
Thank you to @montecrypto for his hikpack and great ideas. I don't have his knowledge, so I had to go on some points another way (e.g. I can't patch davinci for ssh access enabled or modify header_30 file to add additional files)...
Why kernel modules (ext2, ext3, ext4)?
I have a DS-2CD2442FWD-IW with integraded SD slot. But this SD is formated in vfat, which is useless for me with the planned "opt-ware", means I cannot make links. So I made a binary image file in ext2, which I can mount if I have the kernel module loaded (e.g. use command "modprobe ext2").
The history of making this patch:
With the helping post from here I compiled the suitable toolchain (its an armv7) and the latest dropbear with scp.
Maybe I make a repository, so apt-get for everyone...
If someone need's it, below the links to the toolchains, and here the link to "convert-to-echo".
If you don't want to reflash the firmware, you can "echo" the contend of the file to "/bin", then "chmod 755 scp" and you have a working scp. But don't use putty, it is too fast, I used ZOC7 for this. Remember, after a reboot this file is gone.
If someone is interested on the r6 installed files and toolchain, here some data...
r6:
Linux 3.10.73+
Glibc (linaro) 2.18-2013.09
Dropbear 2016.74
Toolchain, build with crosstool-ng (1.21.0), download here:
Linux 3.10.79
Binutils 2.25
glibc (linaro) 2.20-2014.11
GCC 5.1.0 (needs LDFLAGS "-static-libstdc++" to compile, otherwise some apps not running)
for target little endian, hard-float compiled on virtualbox with Debian Jessi with GCC 4.9.2-10+deb8u1
Toolchain, build with crosstool-ng (1.21.0), download here:
Linux 3.10.79
Binutils 2.25
glibc (linaro) 2.20-2014.11
GCC 4.8.3 (run apps linked to libstdc++.so.6 directly)
for target little endian, hard-float compiled on virtualbox with Debian Jessi with GCC 4.9.2-10+deb8u1
Regards
MCPat
Last edited: