Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/wjsjtu/socket-control
- Owner: WJsjtu
- Created: 2015-01-04T11:27:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T06:01:37.000Z (almost 8 years ago)
- Last Synced: 2024-04-18T09:54:13.261Z (9 months ago)
- Topics: c, kernel, netlink, socket, socket-control, syscall-table, syscalls
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.