use kernel module .ko to run a shell script[/mnt/jffs2/hw/get.sh] on system reboot, but before you need find an exploit in /etc/rc.d/rc.start/1.sdk_init.sh
- logical exploit in line 200-206
- mkdir -p /mnt/jffs2/TranStar/
- cp -rf /lib/modules/hisi_sdk/* /mnt/jffs2/TranStar/
- in order to excute line 261-262, change obj.id = "0x00000001" ; obj.value = "4"; in /mnt/jffs2/hw_boardinfo
- cp getshell.ko to /mnt/jffs2/TranStar/hi_epon.ko
use linux 3.10.53, and change vermagic=3.10.53-HULK2 SMP mod_unload modversions ARMv7 when you compile it
add by hongs. 2019/10/02
modify 2021/1/25
test for HS8545M, V3R017C10S105, 1007.A, SD5116 CPU.
test for HS8545M5, V5R019, SD5117 CPU.
hongs, 0nday and others (see source code for details).