Skip to content

rwxd/tcpbutcher

Repository files navigation

TCP Butcher

A tcpkill clone in Go with IPv6 support.

Still in development.

libpcap is needed for the gopacket libary.

Usage

The Berkeley Packet Filters syntax can be build with cli args or options.

When the interface cannot be found through the ip of --host, --src or --dst, then a -i or --interface option with the interface name must be passed.

Butcher a outgoing ssh connection to 192.168.2.10 on port 22 on interface eno1.

# BPF syntax
sudo tcpbutcher -i eno1 host host.domain.com and src port 22

# cli options
sudo tcpbutcher -i eno1 --host host.domain.com --src-port 22

Butcher a outgoing ssh connection to 2a02:8188:1640:1af0:dea6:32ff:fe50:5b1a on port 22 on interface eno1.

# BPF syntax
sudo tcpbutcher -i eno1 host 2a02:8188:1640:1af0:dea6:32ff:fe50:5b1a and src port 22

# cli options
sudo tcpbutcher -i eno1 --host 2a02:8188:1640:1af0:dea6:32ff:fe50:5b1a --src-port 22

Butcher ssh connections on interface eno1

sudo tcpbutcher -i eno1 --src-port 22

Help

Display help and all options

tcpbutcher --help

How it works

tcp rst

About

Tcpkill clone in Go to butcher TCP sessions with ease.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors