This is kernel module used to give root credentials to any running process using PID
Run this command in the source folder
cmake . && make
Create Makefile and run make
obj-m+=main.o
all:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
clean:
make: -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean
After successfully building, main.ko
file will be generated. To install it you have to run this command.
sudo insmod main.ko
sudo rmmod main.ko