https://github.com/kyrol01/sllv2-to-eth
Convert pcap from SLL2 (Linux cooked capture v2) to Ethernet
https://github.com/kyrol01/sllv2-to-eth
Last synced: 6 months ago
JSON representation
Convert pcap from SLL2 (Linux cooked capture v2) to Ethernet
- Host: GitHub
- URL: https://github.com/kyrol01/sllv2-to-eth
- Owner: kYroL01
- License: mit
- Created: 2024-11-14T12:05:46.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-14T12:38:09.000Z (6 months ago)
- Last Synced: 2024-11-14T13:26:15.207Z (6 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/mit-license.php)
[](https://www.python.org/)
[](networking)# SLLv2-to-eth
Convert pcap from SLL2 (Linux cooked capture v2) to Ethernet## Prerequisite
To run the code provided, you need to install Python and the **Scapy** library (https://scapy.net)1. Install Python
```bash
sudo apt update
sudo apt install python3 python3-pip
```
2. Install Scapy
```bash
sudo pip3 install scapy
```## Run
```
python3 sllv2-to-eth.py input.pcap output.pcap --src-mac aa:bb:cc:dd:ee:11 --dst-mac ff:ee:dd:cc:bb:22
```
NOTE: if you don't specify `--src-mac` and `--dst-mac` the default values are `aa:bb:cc:dd:ee:ff` and `ff:ee:dd:cc:bb:aa`### Disclaimer
This script intends to cover the problem of importing pcap with DLT_LINUX_SLL2 as Data Link layer, which is not recognized for some application