ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Testing dissectors with random data

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Shaun Jackman <sjackman@xxxxxxxxx>
Date: Thu, 24 Jun 2004 22:34:09 -0700
As a real hack, I found a nice alternative. I fired up an ssh  
connection, which generates piles of pseudo-random binary data, 
and told Ethereal to decode it as SIR. It put my dissector 
through the torture test.

Cheers,
Shaun


On Wed June 23, 2004 09h27, Shaun Jackman wrote:
> I'd like to test my dissector against random data to see if
> it behaves properly. What's the easiest way to generate a
> "random" packet dump, and then specify that it be decoded as
> xxx (SIR in my case). To sum it up in a quick command line...
>
> $ dd count=1 if=/dev/urandom of=foo.pkt
> $ ethereal --decode-as=sir foo.pkt
>
> Thanks,
> Shaun