Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wjsjtu/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.
https://github.com/wjsjtu/socket-control

c kernel netlink socket socket-control syscall-table syscalls

Last synced: 8 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

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
``` c
gcc -o ccdaemon ccdaemon.c -lm
```

To compile CCModule.ko
``` c
make clean
make
```
To install module
``` c
insmod CCModule.ko
```
To run ccdaemon
``` c
./ccdaemon black.json
```
**Note**: This is only a demo project, it may cause make error on x64 platform since some different integer size.