Barhoumi, Mohieddine (GE Healthcare) wrote:
with regards to testing ethereal, the webpage
http://wiki.ethereal.com/FuzzTesting gives an outline and a set of tools
used for that purpose that I would like to try out.
I am hoping that I do not have to compile the given source code for randpkt.
My questions are as follows:
1) where can I get the executable randpkt from? (or is the only way is
to download the complete source code from
http://www.ethereal.com/distribution/buildbot-builds/source/ and compile
it?)
2) what are these files under
http://www.ethereal.com/distribution/buildbot-builds/randpkt/ ? (I was
expecting to see the builds for randpkt here)
randpkt isn't an independent program - it's part of the Ethereal
distribution. At least with the current Makefiles, it *appears* that it
should be built by default as part of a standard Ethereal build,
although (as I don't install Ethereal from binary distributions) I don't
know whether it does.
If you're installing Ethereal from a binary build, you might check
whether it installs randpkt in the same directory in which the Ethereal
binary is installed.
If you're building Ethereal from source, it should build randpkt from
source as well, although I infer that you're not building Ethereal from
source.
You won't see randpkt in
http://www.ethereal.com/distribution/buildbot-builds/randpkt/
because
1) it's not a separate independent program, it's a tool that's part of
the Ethereal build (and, although not *completely* useless without
Ethereal - it's useful for testing *other* programs that read
libpcap-format files, such as tcpdump - it's not useful if you don't
have *any* such program)
and
2) that directory might be a bit confusingly located, but "randpkt"
refers to the fact that the buildbot FreeBSD/IA-64 builds use randpkt to
generate random packets to run against the Tethereal built in that build
as a test, and if they produce a crash, the resulting capture file is
saved there for use when finding the cause of the crash.