Giter VIP home page Giter VIP logo

go-tcp-reset's Introduction

go-tcp-reset

TCP reset attack implementation written in Go for Linux systems.

This attack was discovered many years ago and it's public domain, however it's responsibility of the person who uses this script to know that interfering with other people connections without their consent is unethical, this is just for research and learning purposes.

The TCP/IP protocol has a special reset packet that when is sent in the middle of any connection, knowing the sequence number it terminates immediately the connection. Based on window size it's possible to make a guessing brute force attack for sequence numbers so the reset packet is treated as a legit packet between the connection nodes.

This script, based on Sam Heybey's TCP-Reset python implementation (link below) makes a TCP-Reset attack based on the real traffic, packets are sniffed from a network interface, treated and sent back with the proper modifications to be used as reset. This of course in a local environment without any special treatment will only monitor and terminate your own connections. I don't encourage using this script for messing with other people's network activity so I won't help anyone interested into weaponizing this script.

Any doubts please contact me: [email protected]

Dependencies

  • pcap

  • Go

    sudo apt-get install libpcap-dev

Building

Make sure the script fits your network interface, this is inside main.go file

	// Open connection
	handle, err := pcap.OpenLive(
		"eth0", // network device, CHANGE THIS!
		int32(65535),
		false,
		time.Millisecond,

Get all the go dependencies and build.

go get -d -v

Usage

sudo ./tcp-reset -S <IP-ADDRESS>

Acknowledgments

go-tcp-reset's People

Contributors

kirebyte avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.