Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utoni/tcp-split
split tcp streams using scapy
https://github.com/utoni/tcp-split
python3 scapy tcp tcp-protocol tcp-segmentation
Last synced: 29 days ago
JSON representation
split tcp streams using scapy
- Host: GitHub
- URL: https://github.com/utoni/tcp-split
- Owner: utoni
- Created: 2022-06-13T12:37:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T13:51:41.000Z (over 2 years ago)
- Last Synced: 2023-03-22T13:18:35.225Z (over 1 year ago)
- Topics: python3, scapy, tcp, tcp-protocol, tcp-segmentation
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
tcp-split
=========This project is mostly used for my personal research and testing purposes.
Split TCP segments of a stream into smaller ones using Scapy and PCAP files.
Inspired and Copy&Paste from [scapy-tcp-extractor](https://github.com/deeso/scapy-tcp-extractor).```shell
usage: TCPSplit.py [-h] [-o OUTPUT] [-s] [-l LENGTH] [-b BPF] inputpositional arguments:
input PCAP input fileoptions:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
PCAP output file
-s, --summary Print found TCP Streams to stdout
-l LENGTH, --length LENGTH
Split TCP payload every n bytes
-b BPF, --bpf BPF BPF filter to apply
```You can use the `example.pcapng` which contains two TCP Streams with some ASCII content by typing:
`./TCPSplit.py -o ./splitted.pcap -l1 -s ./example.pcapng`
This will print a summary of all found TCP streams and split the TCP segments into segments of 1 byte size. The resulting `splitted.pcap` file should contain valid TCP streams.