Skip to content

Instantly share code, notes, and snippets.

kytta /
Last active Dec 27, 2021
TCP packet built from scratch in Python 3
# -- example of building and sending a raw TCP packet
# Copyright (C) 2020 Nikita Karamov <>
# With code from Scapy (changes documented below)
# Copyright (C) 2019 Philippe Biondi <>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.