Skip to content

A Linux kernel module that locates the system call table in memory and hooks uname. Contributions welcome!

Notifications You must be signed in to change notification settings

ebradbury/linux-syscall-hooker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

linux-syscall-hooker

A Linux kernel module that locates the system call table in memory and hooks uname. http://www.elliotbradbury.com/linux-syscall-hooking-interrupt-descriptor-table/

Prerequisites

  • An x86 installation - does not work on x64.
  • Kernel headers (apt-get install linux-headers-$(uname -r))

Compiling and Running

Note: This module unprotects and overwrites portions of kernel memory space. I recommend testing it in a VM.

  1. git clone https://github.com/ebradbury/linux-syscall-hooker.git
  2. cd linux-syscall-hooker
  3. make
  4. insmod ./my_module.ko
  5. uname

If it worked, the output of uname should be "All ur base r belong to us". If it didn't work, check dmesg for details.

About

A Linux kernel module that locates the system call table in memory and hooks uname. Contributions welcome!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages