mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
failed virt_to_phys attempt
This commit is contained in:
8
rootfs_overlay/virt_to_phys.sh
Executable file
8
rootfs_overlay/virt_to_phys.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -ex
|
||||
insmod /virt_to_phys.ko
|
||||
cat /sys/kernel/debug/lkmc_virt_to_phys
|
||||
addr=$(grep virt_to_phys /sys/kernel/debug/lkmc_virt_to_phys | cut -d ' ' -f 2)
|
||||
devmem2 "$addr"
|
||||
devmem2 "$addr" w 0x87654321
|
||||
rmmod virt_to_phys
|
||||
Reference in New Issue
Block a user