First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

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

  • retag add tags

Hi,

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 ?

Thanks,

Usjes.

Usjes's avatar
1
Usjes
asked 2018-03-27 12:55:25 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

See Scapy.

grahamb's avatar
23.8k
grahamb
answered 2018-03-27 12:58:41 +0000
edit flag offensive 0 remove flag delete link

Comments

... or other tools like Network Expect listed under the Traffic Generators section of the Wireshark Tools wiki page.

cmaynard's avatar cmaynard (2018-03-27 13:30:17 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer