scapy icon indicating copy to clipboard operation
scapy copied to clipboard

Scapy: the Python-based interactive packet manipulation program & library.

Results 304 scapy issues
Sort by recently updated
recently updated
newest added

When using pcap and a ring buffer for receiving packets, it can be useful to specify the snapshot length and the buffer size when receiving packets. For example, if you...

enhancement

@polybassa @gpotter2 Here is the draft PR to add PTP protocol. Currently this includes basic PTP header and Sync message type. Planned additions in future commits: 1. `post_build` function to...

### Brief description Copying a FieldContainer instance yields a copy of the contained field instead of the container itself. This is relevant in cases where a class uses the "field...

**Checklist:** - [x] If you are new to Scapy: I have checked [CONTRIBUTING.md](https://github.com/secdev/scapy/blob/master/CONTRIBUTING.md) (esp. section submitting-pull-requests) - [x] I squashed commits belonging together - [x] I added unit tests or...

The contributing guide says that Python2 is supported: https://github.com/secdev/scapy/blob/42115bf5493e6dd11630692f384a76d4475d1ba6/CONTRIBUTING.md#L140-L142 However, pyproject.toml lists Python3.7 as the minimum version: https://github.com/secdev/scapy/blob/a5dab9efc50af956cf7eac77e47ef3d884c6eb0d/pyproject.toml#L30-L38 Is that section of the contributing guide outdated? If so, would you...

### Brief description Long DHCPv4 options longer than 255 bytes aren't supported out of the box. For example ```python raw(DHCP(options=[('captive-portal', 'a'*256)])) ``` fails with ``` error: While dissecting field 'options':...

PTPv2 is widely used in multiple industries like telecom, broadcasting and finance. Read Wireshark wiki to get more info and sample captures https://wiki.wireshark.org/Protocols/ptp

In RFC 8754, 2.1.1.1, [Pad1](https://datatracker.ietf.org/doc/html/rfc8754#name-pad1) is a single byte. ``` 0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+ | Type | +-+-+-+-+-+-+-+-+ ``` but in the current implementation, Pad1...

### Brief description How am I meant to access the to-DS field in a Dot11.FCfield in a Pythonic way? I can access for example the retry field by using `fcfield.retry`,...

### Brief description Pickling and unpickling of a scapy.contrib.automotive.doip.DoIP package changes the value of `payload_length` ### Scapy version 2.6.1 ### Python version 3.12 ### Operating system Windows 10 ### Additional...