Skip to content

anisse/tcpkill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcpkill

small tool to open a tcp socket from a given pid and shut it down, killing the connection. Does not need traffic on the socket, relies on getting the socket pidfd and calling shutdown() on it after enabling SO_LINGER(0).

Does not need to have any traffic on the socket, like the original tcpkill. Original idea from @bradfitz; his Go PoC

Build with:

cargo build --release

TODO

  • search by connection instead of fd

About

Kill an open TCP connection on your machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages