Ask Your Question
0

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

asked 2018-03-27 12:55:25 +0000

Usjes gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-27 12:58:41 +0000

grahamb gravatar image

See Scapy.

edit flag offensive delete link more

Comments

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

cmaynard gravatar imagecmaynard ( 2018-03-27 13:30:17 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-03-27 12:55:25 +0000

Seen: 45 times

Last updated: Mar 27