Ask Your Question

Revision history [back]

Is it possible for Wireshark to SEND a Frame with a custom payload ?


Am I correct in thinking that Wireshark only analyzes Frames but that it doesn't have the ability to send Frames ? What I am trying to do is to send a Frame with a specific payload. So ideally I would like a function (preferably in Python) or an open source program that will run on Windows where I can just specify the raw contents of the source and destination addresses and len filed and the raw payload contents eg:

[0x08, 0x00, 0x2b, 0x45, 0x11, 0x22, 0x00, 0x02, 0xa9, 0xf4, 0x5c,
               0x53, 0x00, 0x00, 0x00, 0x00, 0xf5, 0x7b, 0x01, 0x00, 0x00, 0x00,
               0x00, 0x00, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 ]

and it would just take these and send them to the Ethernet hardware which would pre-pend the preamble, calculate and append the 4-byte CRC and then send the Frame out on the cable. Is this possible with Wireshark or can anyone suggest where I would find a program or some Python code to do this ?