/socket-control

This project is aimed to control the socket connection by hijacking the syscall table, configure file is in JSON format and transferred into kernel by netlink.

Primary LanguageC

socket-control

This is a project to controll the socket syscall using hijacking the syscall table. Configure file is in JSON format and transferred into kernel by netlink.

Working well on ubuntu-14.04.4-desktop-i386, system kernel info

Linux version 4.2.0-27-generic (buildd@lgw01-45) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) )

To compile ccdaemon

gcc -o ccdaemon ccdaemon.c -lm

To compile CCModule.ko

make clean
make

To install module

insmod CCModule.ko

To run ccdaemon

./ccdaemon black.json

Note: This is only a demo project, it may cause make error on x64 platform since some different integer size.