A LKM(Loadable Kernel Module) which when insmod'ed with pid of the target process, make that process run wit root privilege
Do make
and then 'sudo insmod rooter.ko pid=<pid of target>
After that the target will get root privilege.
As insmod can only be done by root, this LKM seems unuseful but i just love to see the whoami
output as root
when the prompt is still $
.
scvishnu7/donate_root
A LKM which when insmod'ed with pid of the target process, make that process run with root privilege
ShellGPL-2.0