linux kernel module for advanced rickrolling
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits ahead of fpletz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md

README.md

Putting rickrolling in kernel space

If you want to hijack open calls for .mp3 files you can just use

sudo stap -g -e 'probe kernel.function("do_filp_open") { p = kernel_string($pathname); l = strlen(p); if (substr(p, l - 4, l) == ".mp3") { $pathname = %{ (long)"/some/path/rickroll.mp3" %}; } }'

Note: requires the systemtap program. Debian users can use apt-get: sudo apt-get install systemtap.