Hey guys,
I made a custom layer in scapy, here's the code:
# packets.py
class CusPack(Packet):
name = "CusPack1"
fields_desc=XByteField("mode", 0), IntField("data", 108)
And I send a few packets from the scapy terminal:
>>>import packets
>>>x=packets.CusPack()/IP(dst="192.168.0.10")
>>>send(x, count=10)
I used wireshark to see if the packets are sent, and it shows malformed packets (which is okay). How do i receive them with scapy? I'm new to scapy and correct my mistakes if any, thanks in advance :)
Be the First to Respond
Share Your Thoughts