All Projects → milabs → drop-tcp-sock

milabs / drop-tcp-sock

Licence: other
This module allows one to kill TCP sockets (including TIME-WAIT state).

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to drop-tcp-sock

Cacule Cpu Scheduler
The CacULE CPU scheduler is based on interactivity score mechanism. The interactivity score is inspired by the ULE scheduler (FreeBSD scheduler).
Stars: ✭ 185 (+218.97%)
Mutual labels:  linux-kernel
Polycube
eBPF/XDP-based software framework for fast network services running in the Linux kernel.
Stars: ✭ 217 (+274.14%)
Mutual labels:  linux-kernel
bpfbox
🐝 BPFBox 📦 Exploring process confinement in eBPF
Stars: ✭ 93 (+60.34%)
Mutual labels:  linux-kernel
Ipftrace2
A packet oriented Linux kernel function call tracer
Stars: ✭ 193 (+232.76%)
Mutual labels:  linux-kernel
Synwall
A zero-configuration (IoT) firewall
Stars: ✭ 219 (+277.59%)
Mutual labels:  linux-kernel
Zenpower
Zenpower is Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs.
Stars: ✭ 237 (+308.62%)
Mutual labels:  linux-kernel
Out Of Tree
out-of-tree kernel {module, exploit} development tool
Stars: ✭ 181 (+212.07%)
Mutual labels:  linux-kernel
devheart
Listen to Tux's heartbeat with this awesome Linux Kernel Module ❤️
Stars: ✭ 58 (+0%)
Mutual labels:  linux-kernel
Kvm Kernel Example
Examples for: Learning KVM - implement your own kernel
Stars: ✭ 221 (+281.03%)
Mutual labels:  linux-kernel
Trojanizer
Trojanize your payload - WinRAR (SFX) automatization - under Linux distros
Stars: ✭ 251 (+332.76%)
Mutual labels:  linux-kernel
Lttng Tools
The lttng-tools project provides a session daemon (lttng-sessiond) that acts as a tracing registry, the "lttng" command line for tracing control, a lttng-ctl library for tracing control and a lttng-relayd for network streaming.
Stars: ✭ 202 (+248.28%)
Mutual labels:  linux-kernel
Prototype Kernel
Prototyping kernel development work outside mainline
Stars: ✭ 214 (+268.97%)
Mutual labels:  linux-kernel
Xrt
Xilinx Run Time for FPGA
Stars: ✭ 236 (+306.9%)
Mutual labels:  linux-kernel
Kernel Exploit Tech
Linux Kernel exploitation Tutorial.
Stars: ✭ 192 (+231.03%)
Mutual labels:  linux-kernel
virtblkiosim
Virtual Linux block device driver for simulating and performing I/O.
Stars: ✭ 30 (-48.28%)
Mutual labels:  linux-kernel
Linux Uek
Oracle Linux UEK: Unbreakable Enterprise Kernel
Stars: ✭ 185 (+218.97%)
Mutual labels:  linux-kernel
Linux Exploit Suggester
Linux privilege escalation auditing tool
Stars: ✭ 3,126 (+5289.66%)
Mutual labels:  linux-kernel
Embedded-Linux-Education-Kit
Embedded Linux Education Kit
Stars: ✭ 66 (+13.79%)
Mutual labels:  linux-kernel
Umbra
A LKM rootkit targeting 4.x and 5.x kernel versions which opens a backdoor that can spawn a reverse shell to a remote host, launch malware and more.
Stars: ✭ 98 (+68.97%)
Mutual labels:  linux-kernel
Kernel exploit world
Tutorial for writing kernel exploits
Stars: ✭ 248 (+327.59%)
Mutual labels:  linux-kernel

0

This module allows one to drop TCP connections and can be usefull for killing TIME-WAIT sockets.

usage

First compile and load the module:

$ make
$ sudo insmod drop-tcp-sock.ko

Single socket killing:

# netstat -n -t | grep WAIT
tcp        0      0 127.0.0.1:50866             127.0.0.1:22                TIME_WAIT

# echo "127.0.0.1:50866 127.0.0.1:22" >/proc/net/tcpdropsock

Multiple sockets killing:

# netstat -n -t | grep WAIT | awk '{print $4"\t"$5}'
127.0.0.1:41278	127.0.0.1:22
127.0.0.1:41276	127.0.0.1:22
127.0.0.1:41274	127.0.0.1:22

# netstat -n -t | grep WAIT | awk '{print $4"\t"$5}' >/proc/net/tcpdropsock

features

  • 2.6.32+ kernels
  • network namespaces support
  • batch socket killing (multiple at once)

credits

Original idea: Roman Arutyunyan

This module implementation: Ilya V. Matveychikov

2018, 2019, 2020

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].