Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Packet Crafting #3

Open
dexpota opened this issue May 21, 2020 · 0 comments
Open

Packet Crafting #3

dexpota opened this issue May 21, 2020 · 0 comments

Comments

@dexpota
Copy link

dexpota commented May 21, 2020

I searched for some examples and inside the tests and I was not able to understand if it is possible to craft a packet from zero. My question is if it is possible to create a packet and then have a binary representation of it (a byte array)? Something like the following example from Scapy.

l2 = Ether()
l3 = IP(dst='8.8.8.8/30')
l4 = TCP(dport=53, flags = 'S')

# This will simply nest the packet inside one another
packet = l2/l3/l4

If you could add an example it would be very useful. Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant