mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
13 lines
168 B
Bash
Executable File
13 lines
168 B
Bash
Executable File
#!/bin/sh
|
|
set -ex
|
|
insmod /fops.ko
|
|
mkdir -p /fops
|
|
mount -t debugfs none /fops
|
|
cd /fops/kernel_module_cheat
|
|
cat fops
|
|
# => open
|
|
# => read
|
|
# => close
|
|
# TODO.
|
|
#echo a >fops
|