Skip to content

WJsjtu/socket-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published